@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | $included = $included->merge($includedFromRelationship->getIncluded()); |
210 | 210 | } elseif ($includedFromRelationship instanceof Collection) { |
211 | 211 | $includedFromRelationship->each( |
212 | - function (ItemInterface $item) use (&$included) { |
|
212 | + function(ItemInterface $item) use (&$included) { |
|
213 | 213 | if ($item->canBeIncluded()) { |
214 | 214 | $included->push($item->toJsonApiArray()); |
215 | 215 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | |
224 | 224 | return $included |
225 | 225 | ->unique( |
226 | - function (array $item) { |
|
226 | + function(array $item) { |
|
227 | 227 | return $item['type'].':'.$item['id']; |
228 | 228 | } |
229 | 229 | ) |