Completed
Pull Request — master (#7)
by
unknown
02:05
created
src/Geolocation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
         }
43 43
 
44 44
         // define url
45
-        $url = ($this->https ? 'https://' : 'http://') . self::API_URL . '?';
45
+        $url = ($this->https ? 'https://' : 'http://').self::API_URL.'?';
46 46
 
47 47
         // add every parameter to the url
48
-        foreach ($parameters as $key => $value) $url .= $key . '=' . urlencode($value) . '&';
48
+        foreach ($parameters as $key => $value) $url .= $key.'='.urlencode($value).'&';
49 49
 
50 50
         // trim last &
51 51
         $url = trim($url, '&');
52 52
 
53 53
         if ($this->api_key) {
54
-            $url .= '&key=' . $this->api_key;
54
+            $url .= '&key='.$this->api_key;
55 55
         }
56 56
 
57 57
         // init curl
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         // define result
113 113
         $addressSuggestions = $this->doCall(array(
114
-            'latlng' => $latitude . ',' . $longitude,
114
+            'latlng' => $latitude.','.$longitude,
115 115
             'sensor' => 'false'
116 116
         ));
117 117
 
Please login to merge, or discard this patch.