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