Completed
Pull Request — master (#18)
by Jasper
12:44
created
src/JsonApi/Hydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.