@@ -123,7 +123,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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($curl, |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | |
| 258 | 258 | if ($response === false && $this->settings['debug']) { |
| 259 | 259 | $error = curl_error($curl); |
| 260 | - echo "The error is".$error; |
|
| 260 | + echo "The error is" . $error; |
|
| 261 | 261 | } |
| 262 | 262 | |
| 263 | 263 | curl_close($curl); |