Passed
Push — master ( 8ac2fa...2e2ab1 )
by Jasper
05:29
created
src/Parsers/ItemParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         }
80 80
 
81 81
         if (property_exists($data, 'attributes')) {
82
-            $item->fill((array) $data->attributes);
82
+            $item->fill((array)$data->attributes);
83 83
         }
84 84
 
85 85
         if (property_exists($data, 'relationships')) {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         if (is_array($data)) {
167 167
             return Collection::make($data)
168 168
                 ->map(
169
-                    function ($identifier) {
169
+                    function($identifier) {
170 170
                         return $this->parseRelationshipData($identifier);
171 171
                     }
172 172
                 );
Please login to merge, or discard this patch.
src/Parsers/MetaParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
             throw new ValidationException(sprintf('Meta has to be an object, "%s" given.', gettype($data)));
22 22
         }
23 23
 
24
-        return new Meta((array) $data);
24
+        return new Meta((array)$data);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Parsers/ResponseParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $document = new InvalidResponseDocument();
35 35
 
36 36
         if ($this->responseHasBody($response)) {
37
-            $document = $this->parser->parse((string) $response->getBody());
37
+            $document = $this->parser->parse((string)$response->getBody());
38 38
         } elseif ($this->responseHasSuccessfulStatusCode($response)) {
39 39
             $document = new Document();
40 40
         }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     private function responseHasBody(ResponseInterface $response): bool
53 53
     {
54
-        return (bool) $response->getBody()->getSize();
54
+        return (bool)$response->getBody()->getSize();
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
src/Parsers/LinksParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
         }
58 58
 
59 59
         return new Links(
60
-            Collection::wrap((array) $data)
60
+            Collection::wrap((array)$data)
61 61
                 ->map(
62
-                    function ($link, $name) {
62
+                    function($link, $name) {
63 63
                         return $this->buildLink($link, $name);
64 64
                     }
65 65
                 )
Please login to merge, or discard this patch.
src/Concerns/HasType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function hasType(): bool
36 36
     {
37
-        return (bool) $this->type;
37
+        return (bool)$this->type;
38 38
     }
39 39
 }
Please login to merge, or discard this patch.