Passed
Pull Request — master (#93)
by Jasper
10:44
created
src/ItemHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,6 +204,6 @@
 block discarded – undo
204 204
             $item = $this->typeMapper->getMapping($type);
205 205
         }
206 206
 
207
-        return $this->hydrate($item, $attributes, (string) $attributes['id']);
207
+        return $this->hydrate($item, $attributes, (string)$attributes['id']);
208 208
     }
209 209
 }
Please login to merge, or discard this patch.
src/Parsers/ItemParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
         }
76 76
 
77 77
         $item = $this->getItemInstance($data->type);
78
-        $item->setId((string) $data->id);
78
+        $item->setId((string)$data->id);
79 79
 
80 80
         if (property_exists($data, 'attributes')) {
81
-            $item->fill((array) $data->attributes);
81
+            $item->fill((array)$data->attributes);
82 82
         }
83 83
 
84 84
         if (property_exists($data, 'relationships')) {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         if (is_array($data)) {
169 169
             return Collection::make($data)
170 170
                 ->map(
171
-                    function ($identifier) {
171
+                    function($identifier) {
172 172
                         return $this->parseRelationshipData($identifier);
173 173
                     }
174 174
                 );
Please login to merge, or discard this patch.