@@ -169,13 +169,13 @@ |
||
169 | 169 | { |
170 | 170 | // N.B. We reverse the items to make sure the first item in the collection takes precedence |
171 | 171 | $keyedItems = $items->reverse()->keyBy( |
172 | - function (ItemInterface $item) { |
|
172 | + function(ItemInterface $item) { |
|
173 | 173 | return $this->getItemKey($item); |
174 | 174 | } |
175 | 175 | ); |
176 | 176 | |
177 | 177 | $items->each( |
178 | - function (ItemInterface $item) use ($keyedItems) { |
|
178 | + function(ItemInterface $item) use ($keyedItems) { |
|
179 | 179 | foreach ($item->getRelations() as $name => $relation) { |
180 | 180 | if ($relation instanceof OneRelationInterface) { |
181 | 181 | /** @var \Swis\JsonApi\Client\Interfaces\ItemInterface|null $relatedItem */ |