@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function getYourOwnIpDetails() |
| 122 | 122 | { |
| 123 | - $response = $this->makeCurlRequest($this::BASE_URL.'json'); |
|
| 123 | + $response = $this->makeCurlRequest($this::BASE_URL . 'json'); |
|
| 124 | 124 | $response = $this->jsonDecodeResponse($response); |
| 125 | 125 | |
| 126 | 126 | return new Host($response); |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | public function getFullIpDetails($ipAddress) |
| 137 | 137 | { |
| 138 | - $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress); |
|
| 138 | + $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress); |
|
| 139 | 139 | $response = $this->jsonDecodeResponse($response); |
| 140 | 140 | |
| 141 | 141 | return new Host($response); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | */ |
| 154 | 154 | public function getSpecificField($ipAddress, $field) |
| 155 | 155 | { |
| 156 | - $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field); |
|
| 156 | + $response = $this->makeCurlRequest($this::BASE_URL . $ipAddress . '/' . $field); |
|
| 157 | 157 | $response = $this->checkGeo($field, $response); |
| 158 | 158 | |
| 159 | 159 | return $response; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | */ |
| 171 | 171 | public function getYourOwnIpSpecificField($field) |
| 172 | 172 | { |
| 173 | - $response = $this->makeCurlRequest($this::BASE_URL.$field); |
|
| 173 | + $response = $this->makeCurlRequest($this::BASE_URL . $field); |
|
| 174 | 174 | $response = $this->checkGeo($field, $response); |
| 175 | 175 | |
| 176 | 176 | return $response; |
@@ -224,11 +224,11 @@ discard block |
||
| 224 | 224 | $curl = curl_init(); |
| 225 | 225 | |
| 226 | 226 | if (!empty($this->settings['token'])) { |
| 227 | - $address .= '?token='.$this->settings['token']; |
|
| 227 | + $address .= '?token=' . $this->settings['token']; |
|
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | if ($this->settings['debug']) { |
| 231 | - echo 'Request address: '.$address."\n"; |
|
| 231 | + echo 'Request address: ' . $address . "\n"; |
|
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | curl_setopt_array($curl, array( |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | if ($response === false && $this->settings['debug']) { |
| 242 | 242 | $error = curl_error($curl); |
| 243 | - echo "The error is".$error; |
|
| 243 | + echo "The error is" . $error; |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | curl_close($curl); |