@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | ->concat($document->getIncluded()); |
162 | 162 | |
163 | 163 | $duplicateItems = $allItems->duplicates( |
164 | - function (ItemInterface $item) { |
|
164 | + function(ItemInterface $item) { |
|
165 | 165 | return $this->getItemKey($item); |
166 | 166 | } |
167 | 167 | ); |
@@ -181,13 +181,13 @@ discard block |
||
181 | 181 | private function linkRelationships(Collection $items): void |
182 | 182 | { |
183 | 183 | $keyedItems = $items->keyBy( |
184 | - function (ItemInterface $item) { |
|
184 | + function(ItemInterface $item) { |
|
185 | 185 | return $this->getItemKey($item); |
186 | 186 | } |
187 | 187 | ); |
188 | 188 | |
189 | 189 | $items->each( |
190 | - function (ItemInterface $item) use ($keyedItems) { |
|
190 | + function(ItemInterface $item) use ($keyedItems) { |
|
191 | 191 | foreach ($item->getRelations() as $name => $relation) { |
192 | 192 | if ($relation instanceof OneRelationInterface) { |
193 | 193 | /** @var \Swis\JsonApi\Client\Interfaces\ItemInterface|null $relatedItem */ |