From 1762809ba3b38dcab6241e150d58e7dc8f2b2bb6 Mon Sep 17 00:00:00 2001 From: Xavier Roussel Date: Mon, 18 Jun 2018 11:01:13 +0200 Subject: [PATCH] Apply fixes from StyleCI (#12) --- src/ApiDataFetcher.php | 4 ++-- tests/Integration/ApiDataFetcherTest.php | 2 +- tests/Integration/ArxivDataExtractorTest.php | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ApiDataFetcher.php b/src/ApiDataFetcher.php index 2b43d9d..5bd6b79 100644 --- a/src/ApiDataFetcher.php +++ b/src/ApiDataFetcher.php @@ -84,7 +84,7 @@ public function getErrors(): array * * @param int $index * - * @return Resource + * @return resource */ protected function getResourceAtIndex(int $index): Resource { @@ -96,7 +96,7 @@ protected function getResourceAtIndex(int $index): Resource * * @param string $resourceClass * - * @return Resource + * @return resource */ protected function instantiateResource($resourceClass): Resource { diff --git a/tests/Integration/ApiDataFetcherTest.php b/tests/Integration/ApiDataFetcherTest.php index 9c0b9f5..d2b0881 100644 --- a/tests/Integration/ApiDataFetcherTest.php +++ b/tests/Integration/ApiDataFetcherTest.php @@ -111,7 +111,7 @@ public function it_can_extract_pubmed_ids_from_id_converter() $merged = ApiDataMerger::handle($extracted); $identifiers = array_merge(...$merged['identifiers']); - $this->assertTrue(count(array_filter($identifiers, function($identifier) { + $this->assertTrue(count(array_filter($identifiers, function ($identifier) { return $identifier['type'] === 'pubmed'; })) > 0); } diff --git a/tests/Integration/ArxivDataExtractorTest.php b/tests/Integration/ArxivDataExtractorTest.php index 378d22f..f6037c1 100644 --- a/tests/Integration/ArxivDataExtractorTest.php +++ b/tests/Integration/ArxivDataExtractorTest.php @@ -2,7 +2,6 @@ namespace PubPeerFoundation\PublicationDataExtractor\Test\Integration; -use PubPeerFoundation\PublicationDataExtractor\ApiDataMerger; use PubPeerFoundation\PublicationDataExtractor\Test\TestCase; use PubPeerFoundation\PublicationDataExtractor\Test\TestHelpers; use PubPeerFoundation\PublicationDataExtractor\Resources\Extractors\Arxiv;