From 7871b5a4e30a0ee209cb6eebbdad0a3b5b80552b Mon Sep 17 00:00:00 2001 From: Xavier Roussel Date: Thu, 22 Feb 2024 11:08:20 +0100 Subject: [PATCH] Apply fixes from StyleCI (#27) --- src/Resources/Crossref.php | 2 +- src/Resources/CrossrefUpdates.php | 2 +- src/Schema.php | 2 +- tests/Unit/CrossrefPublicationExtractorTest.php | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Resources/Crossref.php b/src/Resources/Crossref.php index 9fccb74..9fc2416 100644 --- a/src/Resources/Crossref.php +++ b/src/Resources/Crossref.php @@ -16,7 +16,7 @@ class Crossref extends Resource */ protected $queryStringParameters = [ 'headers' => [ - 'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:contact@pubpeer.com)', + 'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:contact@pubpeer.com)', ], ]; diff --git a/src/Resources/CrossrefUpdates.php b/src/Resources/CrossrefUpdates.php index 56e8c0c..62fab11 100644 --- a/src/Resources/CrossrefUpdates.php +++ b/src/Resources/CrossrefUpdates.php @@ -16,7 +16,7 @@ class CrossrefUpdates extends Resource */ protected $queryStringParameters = [ 'headers' => [ - 'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:contact@pubpeer.com)', + 'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:contact@pubpeer.com)', ], ]; diff --git a/src/Schema.php b/src/Schema.php index 6a1e4d5..9cc38c5 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -75,7 +75,7 @@ class Schema '_type' => 'string', ], ], - 'types' => [ + 'types' => [ '_type' => 'nested_array', 'name' => [ '_type' => 'string', diff --git a/tests/Unit/CrossrefPublicationExtractorTest.php b/tests/Unit/CrossrefPublicationExtractorTest.php index cf33350..116479c 100644 --- a/tests/Unit/CrossrefPublicationExtractorTest.php +++ b/tests/Unit/CrossrefPublicationExtractorTest.php @@ -37,10 +37,10 @@ public function it_can_extract_a_title_as_an_array() // Assert $this->assertArraySubset([ 'publication' => [ - 'title' => 'blabla', + 'title' => 'blabla', 'abstract' => 'blibli', - 'url' => 'bloblo', - 'published_at' => '2010-12', + 'url' => 'bloblo', + 'published_at' => '2010-12', ], ], $this->getProtectedProperty($extractor, 'resourceOutput')); } @@ -70,10 +70,10 @@ public function it_can_extract_a_title_as_a_string() // Assert $this->assertArraySubset([ 'publication' => [ - 'title' => 'blabla', + 'title' => 'blabla', 'abstract' => 'blibli', - 'url' => 'bloblo', - 'published_at' => '2010-12', + 'url' => 'bloblo', + 'published_at' => '2010-12', ], ], $this->getProtectedProperty($extractor, 'resourceOutput')); }