Skip to content

Commit

Permalink
Apply fixes from StyleCI (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
XavRsl authored Feb 22, 2024
1 parent 20a3291 commit 7871b5a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Resources/Crossref.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Crossref extends Resource
*/
protected $queryStringParameters = [
'headers' => [
'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:[email protected])',
'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:[email protected])',
],
];

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/CrossrefUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CrossrefUpdates extends Resource
*/
protected $queryStringParameters = [
'headers' => [
'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:[email protected])',
'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:[email protected])',
],
];

Expand Down
2 changes: 1 addition & 1 deletion src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Schema
'_type' => 'string',
],
],
'types' => [
'types' => [
'_type' => 'nested_array',
'name' => [
'_type' => 'string',
Expand Down
12 changes: 6 additions & 6 deletions tests/Unit/CrossrefPublicationExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down Expand Up @@ -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'));
}
Expand Down

0 comments on commit 7871b5a

Please sign in to comment.