Completed
Pull Request — master (#64)
by Jasper
11:38
created
src/Parsers/MetaParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
             throw new ValidationException(sprintf('Meta MUST be an object, "%s" given.', gettype($data)));
22 22
         }
23 23
 
24
-        return new Meta((array) $data);
24
+        return new Meta((array)$data);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
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.