Completed
Branch master (e07ba9)
by Lyal
03:22 queued 01:06
created
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -208,12 +208,12 @@
 block discarded – undo
208 208
     {
209 209
         $body = '';
210 210
         $options = array_merge($this->getOptions(), $options);
211
-        $options['auth'] = [$this->getKey() . ':', ''];
211
+        $options['auth'] = [$this->getKey().':', ''];
212 212
 
213 213
         try {
214
-            $response = $this->getHttpClient()->request($method, $this->getApiEndPoint() . $path, $options);
214
+            $response = $this->getHttpClient()->request($method, $this->getApiEndPoint().$path, $options);
215 215
             $this->setLastResponse($response);
216
-            $body = json_decode((string)$response->getBody());
216
+            $body = json_decode((string) $response->getBody());
217 217
         } catch (BadResponseException $exception) {
218 218
             $this->handleError($exception);
219 219
         }
Please login to merge, or discard this patch.
src/RequestErrorHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     {
28 28
         $errorCode = $this->exception->getResponse()->getStatusCode();
29 29
 
30
-        if (method_exists($this, 'handle' . $errorCode)) {
31
-            $this->{'handle' . $errorCode}();
30
+        if (method_exists($this, 'handle'.$errorCode)) {
31
+            $this->{'handle'.$errorCode}();
32 32
         }
33 33
         $this->handleUnknown();
34 34
 
Please login to merge, or discard this patch.