Completed
Push — master ( 3a1096...742fc8 )
by Konstantin
01:36
created
src/RequestHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.