Completed
Pull Request — master (#21)
by Jasper
04:06
created
src/JsonApi/Hydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@
 block discarded – undo
67 67
     public function hydrateRelationships(Collection $jsonApiItems, Collection $items)
68 68
     {
69 69
         $keyedItems = $items->reverse()->keyBy(
70
-            function (ItemInterface $item) {
70
+            function(ItemInterface $item) {
71 71
                 return $this->getItemKey($item);
72 72
             }
73 73
         );
74 74
 
75 75
         $jsonApiItems->each(
76
-            function (ResourceItemInterface $jsonApiItem) use ($keyedItems) {
76
+            function(ResourceItemInterface $jsonApiItem) use ($keyedItems) {
77 77
                 if (!$jsonApiItem->has('relationships')) {
78 78
                     return;
79 79
                 }
Please login to merge, or discard this patch.