Completed
Push — master ( f23b05...de431b )
by Jasper
16s queued 13s
created
src/Parsers/DocumentParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -177,13 +177,13 @@  discard block
 block discarded – undo
177 177
     private function linkRelationships(Collection $items): void
178 178
     {
179 179
         $keyedItems = $items->keyBy(
180
-            function (ItemInterface $item) {
180
+            function(ItemInterface $item) {
181 181
                 return $this->getItemKey($item);
182 182
             }
183 183
         );
184 184
 
185 185
         $items->each(
186
-            function (ItemInterface $item) use ($keyedItems) {
186
+            function(ItemInterface $item) use ($keyedItems) {
187 187
                 foreach ($item->getRelations() as $name => $relation) {
188 188
                     if ($relation instanceof OneRelationInterface) {
189 189
                         /** @var \Swis\JsonApi\Client\Interfaces\ItemInterface|null $relatedItem */
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     private function getDuplicateItems(Collection $items): Collection
244 244
     {
245
-        $valueRetriever = function (ItemInterface $item) {
245
+        $valueRetriever = function(ItemInterface $item) {
246 246
             return $this->getItemKey($item);
247 247
         };
248 248
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 
261 261
         $uniqueValues = $values->unique();
262 262
 
263
-        $compare = static function ($a, $b) {
263
+        $compare = static function($a, $b) {
264 264
             return $a === $b;
265 265
         };
266 266
 
Please login to merge, or discard this patch.