@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function getYourOwnIpDetails() |
| 126 | 126 | { |
| 127 | - $response = $this->makeCurlRequest($this::BASE_URL.'json'); |
|
| 127 | + $response = $this->makeCurlRequest($this::BASE_URL . 'json'); |
|
| 128 | 128 | $response = $this->jsonDecodeResponse($response); |
| 129 | 129 | |
| 130 | 130 | return new Host($response); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function getFullIpDetails($ipAddress) |
| 143 | 143 | { |
| 144 | - $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress); |
|
| 144 | + $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress); |
|
| 145 | 145 | $response = $this->jsonDecodeResponse($response); |
| 146 | 146 | |
| 147 | 147 | return new Host($response); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public function getSpecificField($ipAddress, $field) |
| 163 | 163 | { |
| 164 | - $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field); |
|
| 164 | + $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress . '/' . $field); |
|
| 165 | 165 | $response = $this->checkGeo($field, $response); |
| 166 | 166 | |
| 167 | 167 | return $response; |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | public function getYourOwnIpSpecificField($field) |
| 182 | 182 | { |
| 183 | - $response = $this->makeCurlRequest($this::BASE_URL.$field); |
|
| 183 | + $response = $this->makeCurlRequest($this::BASE_URL . $field); |
|
| 184 | 184 | $response = $this->checkGeo($field, $response); |
| 185 | 185 | |
| 186 | 186 | return $response; |
@@ -238,11 +238,11 @@ discard block |
||
| 238 | 238 | $curl = curl_init(); |
| 239 | 239 | |
| 240 | 240 | if (!empty($this->settings['token'])) { |
| 241 | - $address .= '?token='.$this->settings['token']; |
|
| 241 | + $address .= '?token=' . $this->settings['token']; |
|
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | if ($this->settings['debug']) { |
| 245 | - echo 'Request address: '.$address."\n"; |
|
| 245 | + echo 'Request address: ' . $address . "\n"; |
|
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | curl_setopt_array( |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | $errorMessage = curl_error($curl); |
| 263 | 263 | |
| 264 | 264 | if ($this->settings['debug']) { |
| 265 | - echo "The error is".$errorMessage; |
|
| 265 | + echo "The error is" . $errorMessage; |
|
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | |