| @@ -36,18 +36,18 @@ discard block | ||
| 36 | 36 | private function createUrl(array $parameters): string | 
| 37 | 37 |      { | 
| 38 | 38 | // define url | 
| 39 | - $url = ($this->https ? 'https://' : 'http://') . self::API_URL . '?'; | |
| 39 | + $url = ($this->https ? 'https://' : 'http://').self::API_URL.'?'; | |
| 40 | 40 | |
| 41 | 41 | // add every parameter to the url | 
| 42 | 42 |          foreach ($parameters as $key => $value) { | 
| 43 | - $url .= $key . '=' . urlencode($value) . '&'; | |
| 43 | + $url .= $key.'='.urlencode($value).'&'; | |
| 44 | 44 | } | 
| 45 | 45 | |
| 46 | 46 | // trim last & | 
| 47 | 47 | $url = trim($url, '&'); | 
| 48 | 48 | |
| 49 | 49 |          if ($this->apiKey) { | 
| 50 | - $url .= '&key=' . $this->apiKey; | |
| 50 | + $url .= '&key='.$this->apiKey; | |
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | 53 | return $url; | 
| @@ -139,7 +139,7 @@ discard block | ||
| 139 | 139 | |
| 140 | 140 | // define result | 
| 141 | 141 | $addressSuggestions = $this->doCall(array( | 
| 142 | - 'latlng' => $latitude . ',' . $longitude, | |
| 142 | + 'latlng' => $latitude.','.$longitude, | |
| 143 | 143 | 'sensor' => 'false' | 
| 144 | 144 | )); | 
| 145 | 145 | |
| @@ -171,7 +171,7 @@ discard block | ||
| 171 | 171 |      ): Coordinates { | 
| 172 | 172 | $items = []; | 
| 173 | 173 | $variables = [$street, $streetNumber, $city, $zip, $country]; | 
| 174 | -        for ($i = 0; $i < count($variables); $i ++) { | |
| 174 | +        for ($i = 0; $i < count($variables); $i++) { | |
| 175 | 175 |              if (empty($variables[$i])) { | 
| 176 | 176 | continue; | 
| 177 | 177 | } |