Passed
Push — master ( c8eef5...05c3b4 )
by Davide
56s queued 10s
created
src/DavidePastore/Ipinfo/Ipinfo.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function getYourOwnIpDetails()
125 125
     {
126
-        $response = $this->makeCurlRequest($this::BASE_URL.'json');
126
+        $response = $this->makeCurlRequest($this::BASE_URL . 'json');
127 127
         $response = $this->jsonDecodeResponse($response);
128 128
 
129 129
         return new Host($response);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function getFullIpDetails($ipAddress)
142 142
     {
143
-        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress);
143
+        $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress);
144 144
         $response = $this->jsonDecodeResponse($response);
145 145
 
146 146
         return new Host($response);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function getSpecificField($ipAddress, $field)
162 162
     {
163
-        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field);
163
+        $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress . '/' . $field);
164 164
         $response = $this->checkGeo($field, $response);
165 165
 
166 166
         return $response;
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function getYourOwnIpSpecificField($field)
181 181
     {
182
-        $response = $this->makeCurlRequest($this::BASE_URL.$field);
182
+        $response = $this->makeCurlRequest($this::BASE_URL . $field);
183 183
         $response = $this->checkGeo($field, $response);
184 184
 
185 185
         return $response;
@@ -237,11 +237,11 @@  discard block
 block discarded – undo
237 237
         $curl = curl_init();
238 238
 
239 239
         if (!empty($this->settings['token'])) {
240
-            $address .= '?token='.$this->settings['token'];
240
+            $address .= '?token=' . $this->settings['token'];
241 241
         }
242 242
 
243 243
         if ($this->settings['debug']) {
244
-            echo 'Request address: '.$address."\n";
244
+            echo 'Request address: ' . $address . "\n";
245 245
         }
246 246
 
247 247
         curl_setopt_array(
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
         if ($response === false && $this->settings['debug']) {
261 261
             $error = curl_error($curl);
262
-            echo "The error is".$error;
262
+            echo "The error is" . $error;
263 263
         }
264 264
 
265 265
         curl_close($curl);
Please login to merge, or discard this patch.