Completed
Push — master ( 952889...eed020 )
by Jeroen
01:57
created
src/Geolocation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,18 +36,18 @@  discard block
 block discarded – undo
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->api_key) {
50
-            $url .= '&key=' . $this->api_key;
50
+            $url .= '&key='.$this->api_key;
51 51
         }
52 52
 
53 53
         return $url;
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.