@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); |
| 57 | 57 | |
| 58 | 58 | $this->response = curl_exec($curl); |
| 59 | - $this->httpCode = (int)curl_getinfo($curl, CURLINFO_HTTP_CODE); |
|
| 59 | + $this->httpCode = (int) curl_getinfo($curl, CURLINFO_HTTP_CODE); |
|
| 60 | 60 | |
| 61 | 61 | curl_close($curl); |
| 62 | 62 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | protected function encodeResponse() |
| 98 | 98 | { |
| 99 | 99 | try { |
| 100 | - if ($this->httpCode!= 200 && $this->httpCode != 204) { |
|
| 100 | + if ($this->httpCode != 200 && $this->httpCode != 204) { |
|
| 101 | 101 | throw new Exception(isset($this->httpErrors[$this->httpCode]) ? $this->httpErrors[$this->httpCode] : 'Undescribed error', $this->httpCode); |
| 102 | 102 | } |
| 103 | 103 | } catch (Exception $e) { |