Completed
Pull Request — master (#63)
by Jasper
13:09
created
src/Parsers/DocumentParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -169,13 +169,13 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.