Passed
Push — master ( 756e7a...85d7cc )
by Gombos
02:17
created
src/Api/Response/ApiResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
         $this->url = $url;
22 22
         $this->options = $options;
23 23
         $this->response = $response;
24
-        $this->body = json_decode((string) $response->getBody(), true);
24
+        $this->body = json_decode((string)$response->getBody(), true);
25 25
     }
26 26
 
27 27
     public function getStatusCode(): int
28 28
     {
29
-        return (int) $this->response->getStatusCode();
29
+        return (int)$this->response->getStatusCode();
30 30
     }
31 31
 
32 32
     public function isSuccess(): bool
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return [];
51 51
         }
52 52
         if (!empty($this->body['errors'])) {
53
-            return array_map(function ($rec) {
53
+            return array_map(function($rec) {
54 54
                 return new Error($rec['message'], $rec['code']);
55 55
             }, $this->body['errors']);
56 56
         } else {
Please login to merge, or discard this patch.