From 137057b6b3ef2569a9cdc66c7ea1380e16c10d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Beli=C3=ABn?= Date: Fri, 1 Jun 2018 12:49:16 +0200 Subject: [PATCH] Apply fixes from StyleCI (#1) --- Geo6.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } }