From 63cece658d80f64ab8fca5d0a61f3f121fb3dc49 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Tue, 17 Oct 2023 15:48:58 +0000 Subject: [PATCH] Fix styling --- src/Geocoder.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Geocoder.php b/src/Geocoder.php index dcb81a7..618cb3d 100644 --- a/src/Geocoder.php +++ b/src/Geocoder.php @@ -115,19 +115,19 @@ public function getAllAddressesForCoordinates(float $lat, float $lng): array $payload = $this->getRequestPayload([ 'latlng' => "$lat,$lng", ]); - + $response = $this->client->request('GET', $this->endpoint, $payload); - + if ($response->getStatusCode() !== 200) { throw CouldNotGeocode::couldNotConnect(); } - + $reverseGeocodingResponse = json_decode($response->getBody()); - + if (! empty($reverseGeocodingResponse->error_message)) { throw CouldNotGeocode::serviceReturnedError($reverseGeocodingResponse->error_message); } - + if (! count($reverseGeocodingResponse->results)) { return $this->emptyResponse(); }