diff --git a/Geo6.php b/Geo6.php index 9e040f9..5d3ba6e 100644 --- a/Geo6.php +++ b/Geo6.php @@ -161,9 +161,9 @@ private function executeQuery(string $url): \stdClass * * @param string $url * - * @return string - * * @throws InvalidServerResponse + * + * @return string */ protected function getUrlContents(string $url): string { @@ -188,6 +188,7 @@ protected function getUrlContents(string $url): string if (empty($body)) { throw InvalidServerResponse::emptyResponse($url); } + return $body; } @@ -200,7 +201,7 @@ private function getToken() { $time = time(); - $t = $this->clientId.'__'; + $t = $this->clientId.'__'; $t .= $time.'__'; $t .= parse_url(self::GEOCODE_ENDPOINT_URL, PHP_URL_HOST).'__'; $t .= 'GET'.'__'; @@ -257,7 +258,5 @@ private function extractComponents(object $feature, string $language) 'countryCode' => 'BE', ]); } - - return NULL; } }