@@ -68,13 +68,13 @@ discard block |
||
| 68 | 68 | public function hydrateRelationships(Collection $jsonApiItems, Collection $items) |
| 69 | 69 | { |
| 70 | 70 | $keyedItems = $items->keyBy( |
| 71 | - function (ItemInterface $item) { |
|
| 71 | + function(ItemInterface $item) { |
|
| 72 | 72 | return $this->getItemKey($item); |
| 73 | 73 | } |
| 74 | 74 | ); |
| 75 | 75 | |
| 76 | 76 | $jsonApiItems->each( |
| 77 | - function (ResourceItemInterface $jsonApiItem) use ($keyedItems) { |
|
| 77 | + function(ResourceItemInterface $jsonApiItem) use ($keyedItems) { |
|
| 78 | 78 | if (!$jsonApiItem->has('relationships')) { |
| 79 | 79 | return; |
| 80 | 80 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | { |
| 133 | 133 | return $included->get( |
| 134 | 134 | $this->getElementKey($identifier), |
| 135 | - function () { |
|
| 135 | + function() { |
|
| 136 | 136 | return new NullItem(); |
| 137 | 137 | } |
| 138 | 138 | ); |