Completed
Pull Request — master (#25)
by Luke
02:15
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
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
         $this->assertValidType($with);
203 203
         $data = $this->data;
204 204
         if (($count = count($data)) < $size) {
205
-            while($count < $size) {
205
+            while ($count < $size) {
206 206
                 $with = clone $with;
207 207
                 $count = array_push($data, $with);
208 208
             }
Please login to merge, or discard this patch.