From 20a382839b156bad2245cc0ed24076fb6d1119bd Mon Sep 17 00:00:00 2001 From: Lars Eijman Date: Fri, 5 Mar 2021 16:29:06 +0100 Subject: [PATCH] Refactoring --- config/fmp.php | 2 +- src/Calendars/DividendCalendar.php | 4 +-- src/Calendars/EarningsCalendar.php | 4 +-- src/Calendars/EconomicCalendar.php | 4 +-- src/Calendars/HistoricalEarningsCalendar.php | 2 +- src/Calendars/IpoCalendar.php | 4 +-- src/Calendars/StockSplitCalendar.php | 4 +-- src/CompanyValuation/StockScreener.php | 34 +++++++++---------- src/Contracts/Fmp.php | 2 +- src/Exceptions/InvalidData.php | 2 +- .../CompanyValuation/DiscountedCashFlow.php | 2 +- .../CompanyValuation/EarningsSurprises.php | 2 +- src/Facades/CompanyValuation/EtfsList.php | 2 +- .../CompanyValuation/KeyExecutives.php | 2 +- .../CompanyValuation/MarketCapitalization.php | 2 +- src/Facades/CompanyValuation/Profile.php | 2 +- src/Facades/CompanyValuation/Quote.php | 2 +- src/Facades/CompanyValuation/Rating.php | 2 +- .../CompanyValuation/StockScreener.php | 2 +- src/Facades/CompanyValuation/SymbolsList.php | 2 +- .../CompanyValuation/TradableSymbolsList.php | 2 +- src/InstitutionalFunds/Form13F.php | 2 +- src/InstitutionalFunds/SecRssFeed.php | 2 +- src/StockMarket/SectorsPerformance.php | 2 +- tests/BaseTestCase.php | 2 +- .../HistoricalEarningsCalendarTest.php | 4 +-- .../DiscountedCashFlowTest.php | 2 +- .../EarningsSurprisesTest.php | 2 +- tests/CompanyValuation/KeyExecutivesTest.php | 2 +- .../MarketCapitalizationTest.php | 2 +- tests/CompanyValuation/ProfileTest.php | 2 +- tests/CompanyValuation/QuoteTest.php | 2 +- tests/CompanyValuation/RatingTest.php | 2 +- tests/CompanyValuation/SymbolsListTest.php | 2 +- .../TradableSymbolsListTest.php | 2 +- 35 files changed, 57 insertions(+), 57 deletions(-) diff --git a/config/fmp.php b/config/fmp.php index 55704d7..97fc925 100644 --- a/config/fmp.php +++ b/config/fmp.php @@ -25,4 +25,4 @@ 'base_url' => env('FMP_BASE_URL', 'https://financialmodelingprep.com/api/v3/'), -]; \ No newline at end of file +]; diff --git a/src/Calendars/DividendCalendar.php b/src/Calendars/DividendCalendar.php index 09f079d..16d4ac2 100644 --- a/src/Calendars/DividendCalendar.php +++ b/src/Calendars/DividendCalendar.php @@ -51,7 +51,7 @@ protected function getFullEndpoint(): string public function setFromDate(string $fromDate): self { $this->fromDate = $fromDate; - array_push($this->query_string, ['from' => $fromDate]); + $this->query_string['from'] = $fromDate; return $this; } @@ -64,7 +64,7 @@ public function setFromDate(string $fromDate): self public function setToDate(string $toDate): self { $this->toDate = $toDate; - array_push($this->query_string, ['to' => $toDate]); + $this->query_string['to'] = $toDate; return $this; } diff --git a/src/Calendars/EarningsCalendar.php b/src/Calendars/EarningsCalendar.php index 1804c4a..5e35774 100644 --- a/src/Calendars/EarningsCalendar.php +++ b/src/Calendars/EarningsCalendar.php @@ -51,7 +51,7 @@ protected function getFullEndpoint(): string public function setFromDate(string $fromDate): self { $this->fromDate = $fromDate; - array_push($this->query_string, ['from' => $fromDate]); + $this->query_string['from'] = $fromDate; return $this; } @@ -64,7 +64,7 @@ public function setFromDate(string $fromDate): self public function setToDate(string $toDate): self { $this->toDate = $toDate; - array_push($this->query_string, ['to' => $toDate]); + $this->query_string['to'] = $toDate; return $this; } diff --git a/src/Calendars/EconomicCalendar.php b/src/Calendars/EconomicCalendar.php index d43effb..8bfb79e 100644 --- a/src/Calendars/EconomicCalendar.php +++ b/src/Calendars/EconomicCalendar.php @@ -51,7 +51,7 @@ protected function getFullEndpoint(): string public function setFromDate(string $fromDate): self { $this->fromDate = $fromDate; - array_push($this->query_string, ['from' => $fromDate]); + $this->query_string['from'] = $fromDate; return $this; } @@ -64,7 +64,7 @@ public function setFromDate(string $fromDate): self public function setToDate(string $toDate): self { $this->toDate = $toDate; - array_push($this->query_string, ['to' => $toDate]); + $this->query_string['to'] = $toDate; return $this; } diff --git a/src/Calendars/HistoricalEarningsCalendar.php b/src/Calendars/HistoricalEarningsCalendar.php index abd7c87..76d1e87 100644 --- a/src/Calendars/HistoricalEarningsCalendar.php +++ b/src/Calendars/HistoricalEarningsCalendar.php @@ -38,7 +38,7 @@ protected function getFullEndpoint(): string */ public function setLimit(int $limit): self { - array_push($this->query_string, ['limit' => $limit]); + $this->query_string['limit'] = $limit; return $this; } diff --git a/src/Calendars/IpoCalendar.php b/src/Calendars/IpoCalendar.php index 92d2243..1791a4b 100644 --- a/src/Calendars/IpoCalendar.php +++ b/src/Calendars/IpoCalendar.php @@ -51,7 +51,7 @@ protected function getFullEndpoint(): string public function setFromDate(string $fromDate): self { $this->fromDate = $fromDate; - array_push($this->query_string, ['from' => $fromDate]); + $this->query_string['from'] = $fromDate; return $this; } @@ -64,7 +64,7 @@ public function setFromDate(string $fromDate): self public function setToDate(string $toDate): self { $this->toDate = $toDate; - array_push($this->query_string, ['to' => $toDate]); + $this->query_string['to'] = $toDate; return $this; } diff --git a/src/Calendars/StockSplitCalendar.php b/src/Calendars/StockSplitCalendar.php index dae0155..331e936 100644 --- a/src/Calendars/StockSplitCalendar.php +++ b/src/Calendars/StockSplitCalendar.php @@ -51,7 +51,7 @@ protected function getFullEndpoint(): string public function setFromDate(string $fromDate): self { $this->fromDate = $fromDate; - array_push($this->query_string, ['from' => $fromDate]); + $this->query_string['from'] = $fromDate; return $this; } @@ -64,7 +64,7 @@ public function setFromDate(string $fromDate): self public function setToDate(string $toDate): self { $this->toDate = $toDate; - array_push($this->query_string, ['to' => $toDate]); + $this->query_string['to'] = $toDate; return $this; } diff --git a/src/CompanyValuation/StockScreener.php b/src/CompanyValuation/StockScreener.php index eb1e74b..15484a1 100644 --- a/src/CompanyValuation/StockScreener.php +++ b/src/CompanyValuation/StockScreener.php @@ -37,7 +37,7 @@ protected function getFullEndpoint(): string */ public function setMarketCapMoreThan(int $market_cap_more_than): self { - array_push($this->query_string, ['marketCapMoreThan' => $market_cap_more_than]); + $this->query_string['marketCapMoreThan'] = $market_cap_more_than; return $this; } @@ -49,7 +49,7 @@ public function setMarketCapMoreThan(int $market_cap_more_than): self */ public function setMarketCapLowerThan(int $market_cap_lower_than): self { - array_push($this->query_string, ['marketCapLowerThan' => $market_cap_lower_than]); + $this->query_string['marketCapLowerThan'] = $market_cap_lower_than; return $this; } @@ -61,7 +61,7 @@ public function setMarketCapLowerThan(int $market_cap_lower_than): self */ public function setPriceMoreThan(int $price_more_than): self { - array_push($this->query_string, ['priceMoreThan' => $price_more_than]); + $this->query_string['priceMoreThan'] = $price_more_than; return $this; } @@ -73,7 +73,7 @@ public function setPriceMoreThan(int $price_more_than): self */ public function setPriceLowerThan(int $price_lower_than): self { - array_push($this->query_string, ['priceLowerThan' => $price_lower_than]); + $this->query_string['priceLowerThan'] = $price_lower_than; return $this; } @@ -85,7 +85,7 @@ public function setPriceLowerThan(int $price_lower_than): self */ public function setBetaMoreThan(int $beta_more_than): self { - array_push($this->query_string, ['betaMoreThan' => $beta_more_than]); + $this->query_string['betaMoreThan'] = $beta_more_than; return $this; } @@ -97,7 +97,7 @@ public function setBetaMoreThan(int $beta_more_than): self */ public function setBetaLowerThan(int $beta_lower_than): self { - array_push($this->query_string, ['betaLowerThan' => $beta_lower_than]); + $this->query_string['betaLowerThan'] = $beta_lower_than; return $this; } @@ -109,7 +109,7 @@ public function setBetaLowerThan(int $beta_lower_than): self */ public function setVolumeMoreThan(int $volume_more_than): self { - array_push($this->query_string, ['volumeMoreThan' => $volume_more_than]); + $this->query_string['volumeMoreThan'] = $volume_more_than; return $this; } @@ -121,7 +121,7 @@ public function setVolumeMoreThan(int $volume_more_than): self */ public function setVolumeLowerThan(int $volume_lower_than): self { - array_push($this->query_string, ['volumeLowerThan' => $volume_lower_than]); + $this->query_string['volumeLowerThan'] = $volume_lower_than; return $this; } @@ -133,7 +133,7 @@ public function setVolumeLowerThan(int $volume_lower_than): self */ public function setDividendMoreThan(int $dividend_more_than): self { - array_push($this->query_string, ['dividendMoreThan' => $dividend_more_than]); + $this->query_string['dividendMoreThan'] = $dividend_more_than; return $this; } @@ -145,7 +145,7 @@ public function setDividendMoreThan(int $dividend_more_than): self */ public function setDividendLowerThan(int $dividend_lower_than): self { - array_push($this->query_string, ['dividendLowerThan' => $dividend_lower_than]); + $this->query_string['dividendLowerThan'] = $dividend_lower_than; return $this; } @@ -157,7 +157,7 @@ public function setDividendLowerThan(int $dividend_lower_than): self */ public function setExchange(string $exchanges): self { - array_push($this->query_string, ['exchange' => $exchanges]); + $this->query_string['exchange'] = $exchanges; return $this; } @@ -169,7 +169,7 @@ public function setExchange(string $exchanges): self */ public function setLimit(int $limit): self { - array_push($this->query_string, ['limit' => $limit]); + $this->query_string['limit'] = $limit; return $this; } @@ -181,7 +181,7 @@ public function setLimit(int $limit): self */ public function setCountries(string $countries): self { - array_push($this->query_string, ['country' => $countries]); + $this->query_string['country'] = $countries; return $this; } @@ -193,7 +193,7 @@ public function setCountries(string $countries): self */ public function setIndustries(string $industries): self { - array_push($this->query_string, ['industry' => $industries]); + $this->query_string['industry'] = $industries; return $this; } @@ -205,7 +205,7 @@ public function setIndustries(string $industries): self */ public function setSectors(string $sectors): self { - array_push($this->query_string, ['sector' => $sectors]); + $this->query_string['sector'] = $sectors; return $this; } @@ -217,7 +217,7 @@ public function setSectors(string $sectors): self */ public function setIsActivelyTrading(bool $is_actively_trading): self { - array_push($this->query_string, ['isActivelyTrading' => $is_actively_trading]); + $this->query_string['isActivelyTrading'] = $is_actively_trading; return $this; } @@ -229,7 +229,7 @@ public function setIsActivelyTrading(bool $is_actively_trading): self */ public function setIsEtf(bool $is_etf): self { - array_push($this->query_string, ['isEtf' => $is_etf]); + $this->query_string['isEtf'] = $is_etf; return $this; } diff --git a/src/Contracts/Fmp.php b/src/Contracts/Fmp.php index 6f5a367..6336a82 100644 --- a/src/Contracts/Fmp.php +++ b/src/Contracts/Fmp.php @@ -14,4 +14,4 @@ interface Fmp * @return ResponseInterface */ public function send(RequestInterface $request, array $options = []): ResponseInterface; -} \ No newline at end of file +} diff --git a/src/Exceptions/InvalidData.php b/src/Exceptions/InvalidData.php index ffb8f6b..a11399c 100644 --- a/src/Exceptions/InvalidData.php +++ b/src/Exceptions/InvalidData.php @@ -10,4 +10,4 @@ public static function invalidDataProvided(string $message) { return new static($message); } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/DiscountedCashFlow.php b/src/Facades/CompanyValuation/DiscountedCashFlow.php index 86a7f26..0d7176f 100644 --- a/src/Facades/CompanyValuation/DiscountedCashFlow.php +++ b/src/Facades/CompanyValuation/DiscountedCashFlow.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\DiscountedCashFlow::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/EarningsSurprises.php b/src/Facades/CompanyValuation/EarningsSurprises.php index c560485..a96e0a4 100644 --- a/src/Facades/CompanyValuation/EarningsSurprises.php +++ b/src/Facades/CompanyValuation/EarningsSurprises.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\EarningsSurprises::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/EtfsList.php b/src/Facades/CompanyValuation/EtfsList.php index 406bbd9..a8e0810 100644 --- a/src/Facades/CompanyValuation/EtfsList.php +++ b/src/Facades/CompanyValuation/EtfsList.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\EtfsList::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/KeyExecutives.php b/src/Facades/CompanyValuation/KeyExecutives.php index c17a4e7..585ab7f 100644 --- a/src/Facades/CompanyValuation/KeyExecutives.php +++ b/src/Facades/CompanyValuation/KeyExecutives.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\KeyExecutives::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/MarketCapitalization.php b/src/Facades/CompanyValuation/MarketCapitalization.php index fd1a264..9f67927 100644 --- a/src/Facades/CompanyValuation/MarketCapitalization.php +++ b/src/Facades/CompanyValuation/MarketCapitalization.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\MarketCapitalization::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/Profile.php b/src/Facades/CompanyValuation/Profile.php index e4d0852..4f93a4c 100644 --- a/src/Facades/CompanyValuation/Profile.php +++ b/src/Facades/CompanyValuation/Profile.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\Profile::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/Quote.php b/src/Facades/CompanyValuation/Quote.php index b4b653a..c63b2b3 100644 --- a/src/Facades/CompanyValuation/Quote.php +++ b/src/Facades/CompanyValuation/Quote.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\Quote::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/Rating.php b/src/Facades/CompanyValuation/Rating.php index c061141..5d26742 100644 --- a/src/Facades/CompanyValuation/Rating.php +++ b/src/Facades/CompanyValuation/Rating.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\Rating::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/StockScreener.php b/src/Facades/CompanyValuation/StockScreener.php index 472d432..1d1231b 100644 --- a/src/Facades/CompanyValuation/StockScreener.php +++ b/src/Facades/CompanyValuation/StockScreener.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\StockScreener::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/SymbolsList.php b/src/Facades/CompanyValuation/SymbolsList.php index 92af80f..3fcecb8 100644 --- a/src/Facades/CompanyValuation/SymbolsList.php +++ b/src/Facades/CompanyValuation/SymbolsList.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\SymbolsList::class; } -} \ No newline at end of file +} diff --git a/src/Facades/CompanyValuation/TradableSymbolsList.php b/src/Facades/CompanyValuation/TradableSymbolsList.php index 2f89002..fd514a3 100644 --- a/src/Facades/CompanyValuation/TradableSymbolsList.php +++ b/src/Facades/CompanyValuation/TradableSymbolsList.php @@ -10,4 +10,4 @@ protected static function getFacadeAccessor() { return \Leijman\FmpApiSdk\CompanyValuation\TradableSymbolsList::class; } -} \ No newline at end of file +} diff --git a/src/InstitutionalFunds/Form13F.php b/src/InstitutionalFunds/Form13F.php index 34178ad..c9e873a 100644 --- a/src/InstitutionalFunds/Form13F.php +++ b/src/InstitutionalFunds/Form13F.php @@ -62,7 +62,7 @@ protected function getFullEndpoint(): string public function setDate(string $date): self { $this->date = $date; - array_push($this->query_string, ['date' => $date]); + $this->query_string['date'] = $date; return $this; } diff --git a/src/InstitutionalFunds/SecRssFeed.php b/src/InstitutionalFunds/SecRssFeed.php index 936fb32..aba9502 100644 --- a/src/InstitutionalFunds/SecRssFeed.php +++ b/src/InstitutionalFunds/SecRssFeed.php @@ -37,7 +37,7 @@ protected function getFullEndpoint(): string */ public function setLimit(int $limit): self { - array_push($this->query_string, ['limit' => $limit]); + $this->query_string['limit'] = $limit; return $this; } diff --git a/src/StockMarket/SectorsPerformance.php b/src/StockMarket/SectorsPerformance.php index a9f0e61..817a80a 100644 --- a/src/StockMarket/SectorsPerformance.php +++ b/src/StockMarket/SectorsPerformance.php @@ -33,7 +33,7 @@ public function __construct(Fmp $api) */ public function setLimit(int $limit): self { - array_push($this->query_string, ['limit' => $limit]); + $this->query_string['limit'] = $limit; return $this; } diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php index 707245c..4180bc2 100644 --- a/tests/BaseTestCase.php +++ b/tests/BaseTestCase.php @@ -32,7 +32,7 @@ protected function setupMockedClient(Response $response) $handler = HandlerStack::create($mock); $client = new Client(['handler' => $handler]); - return new \Leijman\FmpApiSdk\Client($client); + return new \Leijman\FmpApiSdk\Client($client); } protected function getPackageProviders($app) diff --git a/tests/Calendars/HistoricalEarningsCalendarTest.php b/tests/Calendars/HistoricalEarningsCalendarTest.php index f3267b3..62de8f2 100644 --- a/tests/Calendars/HistoricalEarningsCalendarTest.php +++ b/tests/Calendars/HistoricalEarningsCalendarTest.php @@ -52,11 +52,11 @@ protected function setUp(): void /** @test */ public function it_should_fail_without_a_symbol() { - $quote = new \Leijman\FmpApiSdk\Calendars\HistoricalEarningsCalendar($this->client); + $historical_earnings_calendar = new \Leijman\FmpApiSdk\Calendars\HistoricalEarningsCalendar($this->client); $this->expectException(InvalidData::class); - $quote->get(); + $historical_earnings_calendar->get(); } /** @test */ diff --git a/tests/CompanyValuation/DiscountedCashFlowTest.php b/tests/CompanyValuation/DiscountedCashFlowTest.php index 1c71127..e649adc 100644 --- a/tests/CompanyValuation/DiscountedCashFlowTest.php +++ b/tests/CompanyValuation/DiscountedCashFlowTest.php @@ -63,4 +63,4 @@ public function it_can_call_the_facade() DiscountedCashFlow::setSymbol('AAPL'); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/EarningsSurprisesTest.php b/tests/CompanyValuation/EarningsSurprisesTest.php index 203a26f..f3a8eb0 100644 --- a/tests/CompanyValuation/EarningsSurprisesTest.php +++ b/tests/CompanyValuation/EarningsSurprisesTest.php @@ -108,4 +108,4 @@ public function it_can_call_the_facade() EarningsSurprises::setSymbol('AAPL'); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/KeyExecutivesTest.php b/tests/CompanyValuation/KeyExecutivesTest.php index 409a39a..343f062 100644 --- a/tests/CompanyValuation/KeyExecutivesTest.php +++ b/tests/CompanyValuation/KeyExecutivesTest.php @@ -138,4 +138,4 @@ public function it_can_call_the_facade() KeyExecutives::setSymbol('AAPL'); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/MarketCapitalizationTest.php b/tests/CompanyValuation/MarketCapitalizationTest.php index d801960..bde3b30 100644 --- a/tests/CompanyValuation/MarketCapitalizationTest.php +++ b/tests/CompanyValuation/MarketCapitalizationTest.php @@ -62,4 +62,4 @@ public function it_can_call_the_facade() MarketCapitalization::setSymbol('AAPL'); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/ProfileTest.php b/tests/CompanyValuation/ProfileTest.php index 83256cc..a956e5b 100644 --- a/tests/CompanyValuation/ProfileTest.php +++ b/tests/CompanyValuation/ProfileTest.php @@ -93,4 +93,4 @@ public function it_can_call_the_facade() Profile::setSymbol('AAPL'); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/QuoteTest.php b/tests/CompanyValuation/QuoteTest.php index 8564a7d..9897da9 100644 --- a/tests/CompanyValuation/QuoteTest.php +++ b/tests/CompanyValuation/QuoteTest.php @@ -81,4 +81,4 @@ public function it_can_call_the_facade() Quote::setSymbol('AAPL'); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/RatingTest.php b/tests/CompanyValuation/RatingTest.php index 43858cf..a57c481 100644 --- a/tests/CompanyValuation/RatingTest.php +++ b/tests/CompanyValuation/RatingTest.php @@ -76,4 +76,4 @@ public function it_can_call_the_facade() Rating::setSymbol('AAPL'); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/SymbolsListTest.php b/tests/CompanyValuation/SymbolsListTest.php index e93b646..f801465 100644 --- a/tests/CompanyValuation/SymbolsListTest.php +++ b/tests/CompanyValuation/SymbolsListTest.php @@ -75,4 +75,4 @@ public function it_can_call_the_facade() $this->assertInstanceOf(Collection::class, $response); $this->assertCount(5, $response); } -} \ No newline at end of file +} diff --git a/tests/CompanyValuation/TradableSymbolsListTest.php b/tests/CompanyValuation/TradableSymbolsListTest.php index 11fc99a..95c208e 100644 --- a/tests/CompanyValuation/TradableSymbolsListTest.php +++ b/tests/CompanyValuation/TradableSymbolsListTest.php @@ -75,4 +75,4 @@ public function it_can_call_the_facade() $this->assertInstanceOf(Collection::class, $response); $this->assertCount(5, $response); } -} \ No newline at end of file +}