@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $included = $included->merge($item->getIncluded()); |
190 | 190 | } elseif ($relationship instanceof ManyRelationInterface) { |
191 | 191 | $relationship->getIncluded()->each( |
192 | - function (ItemInterface $item) use (&$included) { |
|
192 | + function(ItemInterface $item) use (&$included) { |
|
193 | 193 | if ($item->canBeIncluded()) { |
194 | 194 | $included->push($item->toJsonApiArray()); |
195 | 195 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | |
202 | 202 | return $included |
203 | 203 | ->unique( |
204 | - function (array $item) { |
|
204 | + function(array $item) { |
|
205 | 205 | return $item['type'].':'.$item['id']; |
206 | 206 | } |
207 | 207 | ) |