@@ -204,6 +204,6 @@ |
||
| 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 | } |
@@ -75,10 +75,10 @@ discard block |
||
| 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 |
||
| 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 | ); |