Completed
Push — response-null-check ( fea7d0...d8b860 )
by Davide
08:04 queued 05:47
created
src/DavidePastore/Ipinfo/Ipinfo.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getYourOwnIpDetails()
119 119
     {
120
-        $response = $this->makeCurlRequest($this::BASE_URL.'json');
120
+        $response = $this->makeCurlRequest($this::BASE_URL . 'json');
121 121
         $response = $this->jsonDecodeResponse($response);
122 122
 
123 123
         return new Host($response);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function getFullIpDetails($ipAddress)
134 134
     {
135
-        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress);
135
+        $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress);
136 136
         $response = $this->jsonDecodeResponse($response);
137 137
 
138 138
         return new Host($response);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function getSpecificField($ipAddress, $field)
152 152
     {
153
-        $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field);
153
+        $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress . '/' . $field);
154 154
         $response = $this->checkGeo($field, $response);
155 155
 
156 156
         return $response;
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function getYourOwnIpSpecificField($field)
169 169
     {
170
-        $response = $this->makeCurlRequest($this::BASE_URL.$field);
170
+        $response = $this->makeCurlRequest($this::BASE_URL . $field);
171 171
         $response = $this->checkGeo($field, $response);
172 172
 
173 173
         return $response;
@@ -220,11 +220,11 @@  discard block
 block discarded – undo
220 220
         $curl = curl_init();
221 221
 
222 222
         if (!empty($this->settings['token'])) {
223
-            $address .= '?token='.$this->settings['token'];
223
+            $address .= '?token=' . $this->settings['token'];
224 224
         }
225 225
 
226 226
         if ($this->settings['debug']) {
227
-            echo 'Request address: '.$address."\n";
227
+            echo 'Request address: ' . $address . "\n";
228 228
         }
229 229
 
230 230
         curl_setopt_array($curl, array(
Please login to merge, or discard this patch.