Passed
Pull Request — master (#3)
by Gombos
02:13
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
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function getErrors()
48 48
     {
49 49
         if (!empty($this->body['errors'])) {
50
-            return array_map(function ($rec) {
50
+            return array_map(function($rec) {
51 51
                 return new Error($rec['message'], $rec['code']);
52 52
             }, $this->body['errors']);
53 53
         } else {
Please login to merge, or discard this patch.