Passed
Push — features/47-laravelmethods ( 9642d7...9881c8 )
by Luke
04:14
created
src/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 {
172 172
     $type = gettype($data);
173 173
     if ($meta) {
174
-        switch($type) {
174
+        switch ($type) {
175 175
             case 'object':
176 176
                 $class = get_class($data);
177 177
                 return "{$type} <{$class}>";
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                 return "{$type} <{$restype}>";
181 181
         }
182 182
     } else {
183
-        switch($type) {
183
+        switch ($type) {
184 184
             case 'object':
185 185
                 return get_class($data);
186 186
             case 'resource':
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     } else {
271 271
         echo $label . "\n" . implode(
272 272
                 array_map(
273
-                    function () {
273
+                    function() {
274 274
                         return '-';
275 275
                     },
276 276
                     str_split($label)
Please login to merge, or discard this patch.
src/Collection/Collection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     public function contains($value, $index = null)
349 349
     {
350
-        return (bool) $this->first(function ($val, $key) use ($value, $index) {
350
+        return (bool) $this->first(function($val, $key) use ($value, $index) {
351 351
             if (is_callable($value)) {
352 352
                 $found = $value($val, $key);
353 353
             } else {
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
     public function pairs()
627 627
     {
628 628
         return collect(array_map(
629
-            function ($key, $val) {
629
+            function($key, $val) {
630 630
                 return [$key, $val];
631 631
             },
632 632
             array_keys($this->getData()),
@@ -645,11 +645,11 @@  discard block
 block discarded – undo
645 645
     public function duplicates()
646 646
     {
647 647
         $dups = [];
648
-        $this->walk(function ($val, $key) use (&$dups) {
648
+        $this->walk(function($val, $key) use (&$dups) {
649 649
             $dups[$val][] = $key;
650 650
         });
651 651
 
652
-        return collect($dups)->filter(function ($val) {
652
+        return collect($dups)->filter(function($val) {
653 653
             return count($val) > 1;
654 654
         });
655 655
     }
@@ -936,7 +936,7 @@  discard block
 block discarded – undo
936 936
     public function split($num)
937 937
     {
938 938
         $count = $this->count();
939
-        $size = (int)($count / $num);
939
+        $size = (int) ($count / $num);
940 940
         $mod = $count % $num;
941 941
         return collect($this->foldRight(function($chunks, $val, $key, $iter) use ($num, $size, $mod) {
942 942
             $chunk_count = count($chunks);
Please login to merge, or discard this patch.