From 43f1048d8bb010c461ad1fbc891731fb441f49ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Mom=C4=8Dilovi=C4=87?= Date: Fri, 17 May 2024 08:43:49 +0200 Subject: [PATCH 1/3] provider: BingMaps: required and optional params order (phpstan) --- src/Provider/BingMaps/BingMaps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/BingMaps/BingMaps.php b/src/Provider/BingMaps/BingMaps.php index 2eecb6e77..f0469554f 100644 --- a/src/Provider/BingMaps/BingMaps.php +++ b/src/Provider/BingMaps/BingMaps.php @@ -82,7 +82,7 @@ public function getName(): string return 'bing_maps'; } - private function executeQuery(string $url, ?string $locale = null, int $limit): Collection + private function executeQuery(string $url, ?string $locale = null, int $limit = 1): Collection { if (null !== $locale) { $url = sprintf('%s&culture=%s', $url, str_replace('_', '-', $locale)); From ca9984e8e4a463b9d4106283adc9d32f1494e0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Mom=C4=8Dilovi=C4=87?= Date: Fri, 17 May 2024 08:43:56 +0200 Subject: [PATCH 2/3] provider: GoogleMaps: required and optional params order (phpstan) --- src/Provider/GoogleMaps/GoogleMaps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/GoogleMaps/GoogleMaps.php b/src/Provider/GoogleMaps/GoogleMaps.php index 0aa75edd8..fd58fe8bb 100644 --- a/src/Provider/GoogleMaps/GoogleMaps.php +++ b/src/Provider/GoogleMaps/GoogleMaps.php @@ -197,7 +197,7 @@ private function buildQuery(string $url, ?string $locale = null, ?string $region * @throws InvalidServerResponse * @throws InvalidCredentials */ - private function fetchUrl(string $url, ?string $locale = null, int $limit, ?string $region = null): AddressCollection + private function fetchUrl(string $url, ?string $locale = null, int $limit = 1, ?string $region = null): AddressCollection { $url = $this->buildQuery($url, $locale, $region); $content = $this->getUrlContents($url); From 0ced17f2f884c63d2b27d1973e7ea435c407876e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Mom=C4=8Dilovi=C4=87?= Date: Fri, 17 May 2024 08:45:00 +0200 Subject: [PATCH 3/3] provider: GeoIP2: php-cs-fixer: fix identation --- src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php b/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php index 6ec154847..1a3be5cac 100644 --- a/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php +++ b/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php @@ -150,14 +150,14 @@ protected function getGeoIP2ModelMock($geoIP2Model) 'city' => [ 'geoname_id' => 2911298, 'names' => [ - 'de' => 'Hamburg', - 'en' => 'Hamburg', - 'es' => 'Hamburgo', - 'fr' => 'Hambourg', - 'ja' => 'ハンブルク', - 'pt-BR' => 'Hamburgo', - 'ru' => 'Гамбург', - 'zh-CN' => '汉堡市', + 'de' => 'Hamburg', + 'en' => 'Hamburg', + 'es' => 'Hamburgo', + 'fr' => 'Hambourg', + 'ja' => 'ハンブルク', + 'pt-BR' => 'Hamburgo', + 'ru' => 'Гамбург', + 'zh-CN' => '汉堡市', ], ], ]