Test Failed
Push — fix-22 ( b0221b )
by Davide
04:48
created
src/DavidePastore/Ipinfo/Ipinfo.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function getYourOwnIpDetails()
121 121
     {
122
-        $response = $this->makeCurlRequest($this::BASE_URL.'json');
122
+        $response = $this->makeCurlRequest($this::BASE_URL . 'json');
123 123
         $response = $this->jsonDecodeResponse($response);
124 124
 
125 125
         return new Host($response);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function getFullIpDetails($ipAddress)
136 136
     {
137
-        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress);
137
+        $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress);
138 138
         $response = $this->jsonDecodeResponse($response);
139 139
 
140 140
         return new Host($response);
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function getSpecificField($ipAddress, $field)
154 154
     {
155
-        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field);
155
+        $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress . '/' . $field);
156 156
         $response = $this->checkGeo($field, $response);
157 157
 
158 158
         return $response;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function getYourOwnIpSpecificField($field)
171 171
     {
172
-        $response = $this->makeCurlRequest($this::BASE_URL.$field);
172
+        $response = $this->makeCurlRequest($this::BASE_URL . $field);
173 173
         $response = $this->checkGeo($field, $response);
174 174
 
175 175
         return $response;
@@ -222,11 +222,11 @@  discard block
 block discarded – undo
222 222
         $curl = curl_init();
223 223
 
224 224
         if (!empty($this->settings['token'])) {
225
-            $address .= '?token='.$this->settings['token'];
225
+            $address .= '?token=' . $this->settings['token'];
226 226
         }
227 227
 
228 228
         if ($this->settings['debug']) {
229
-            echo 'Request address: '.$address."\n";
229
+            echo 'Request address: ' . $address . "\n";
230 230
         }
231 231
 
232 232
         curl_setopt_array($curl, array(
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     {
252 252
         if ($response) {
253 253
             // Check if the response contains an error message
254
-            if(strpos($response, 'Rate limit exceeded.')) {
254
+            if (strpos($response, 'Rate limit exceeded.')) {
255 255
                 throw new RateLimitExceedException("You exceed the rate limit. The complete response is $response");
256 256
             } else {
257 257
                 $response = json_decode($response, true);
Please login to merge, or discard this patch.