Completed
Push — master ( 4f8323...7523f4 )
by Luke
37s
created
src/Collection/AbstractCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
      */
484 484
     public function contains($value, $index = null)
485 485
     {
486
-        return (bool) $this->first(function ($val, $key) use ($value, $index) {
486
+        return (bool) $this->first(function($val, $key) use ($value, $index) {
487 487
             if (is_callable($value)) {
488 488
                 $found = $value($val, $key);
489 489
             } else {
@@ -515,11 +515,11 @@  discard block
 block discarded – undo
515 515
     public function duplicates()
516 516
     {
517 517
         $dups = [];
518
-        $this->walk(function ($val, $key) use (&$dups) {
518
+        $this->walk(function($val, $key) use (&$dups) {
519 519
             $dups[$val][] = $key;
520 520
         });
521 521
 
522
-        return static::factory($dups)->filter(function ($val) {
522
+        return static::factory($dups)->filter(function($val) {
523 523
             return count($val) > 1;
524 524
         });
525 525
     }
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
     public function pairs()
666 666
     {
667 667
         return static::factory(array_map(
668
-            function ($key, $val) {
668
+            function($key, $val) {
669 669
                 return [$key, $val];
670 670
             },
671 671
             array_keys($this->data),
@@ -898,7 +898,7 @@  discard block
 block discarded – undo
898 898
                 }
899 899
             }
900 900
             // if row contains an array it isn't tabular
901
-            if (array_reduce($row, function ($carry, $item) {
901
+            if (array_reduce($row, function($carry, $item) {
902 902
                 return is_array($item) && $carry;
903 903
             }, true)) {
904 904
                 return false;
Please login to merge, or discard this patch.
src/Collection/ObjectCollection.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use BadMethodCallException;
14 14
 use InvalidArgumentException;
15
-
16 15
 use SplObjectStorage;
17 16
 use function Noz\is_traversable;
18 17
 
Please login to merge, or discard this patch.