Passed
Pull Request — master (#29)
by
unknown
02:56
created
src/Zicht/Itertools/lib/Traits/FilterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         if ($this instanceof \Iterator) {
24 24
             $strategy = conversions\mixed_to_value_getter($strategy);
25
-            $isValid = function ($value, $key) use ($strategy) {
25
+            $isValid = function($value, $key) use ($strategy) {
26 26
                 $tempVarPhp54 = $strategy($value, $key);
27 27
                 return !empty($tempVarPhp54);
28 28
             };
Please login to merge, or discard this patch.
src/Zicht/Itertools/itertools.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
     switch (sizeof($args)) {
573 573
         case 2:
574 574
             $strategy = conversions\mixed_to_value_getter($args[0]);
575
-            $closure = function ($value, $key) use ($strategy) {
575
+            $closure = function($value, $key) use ($strategy) {
576 576
                 $tempVarPhp54 = call_user_func($strategy, $value, $key);
577 577
                 return !empty($tempVarPhp54);
578 578
             };
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
         case 3:
583 583
             $strategy = conversions\mixed_to_value_getter($args[0]);
584 584
             $userClosure = $args[1];
585
-            $closure = function ($value, $key) use ($strategy, $userClosure) {
585
+            $closure = function($value, $key) use ($strategy, $userClosure) {
586 586
                 return call_user_func($userClosure, call_user_func($strategy, $value, $key));
587 587
             };
588 588
             $iterable = conversions\mixed_to_iterator($args[2]);
Please login to merge, or discard this patch.
src/Zicht/Itertools/filters.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 function type($class, $strategy = null)
29 29
 {
30 30
     $strategy = conversions\mixed_to_value_getter($strategy);
31
-    return function ($value, $key = null) use ($class, $strategy) {
31
+    return function($value, $key = null) use ($class, $strategy) {
32 32
         return $strategy($value, $key) instanceof $class;
33 33
     };
34 34
 }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $haystack = Itertools\iterable($haystack)->values();
59 59
     }
60 60
     $strategy = conversions\mixed_to_value_getter($strategy);
61
-    return function ($value, $key = null) use ($haystack, $strategy, $strict) {
61
+    return function($value, $key = null) use ($haystack, $strategy, $strict) {
62 62
         return in_array($strategy($value, $key), $haystack, $strict);
63 63
     };
64 64
 }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $haystack = Itertools\iterable($haystack)->values();
81 81
     }
82 82
     $strategy = conversions\mixed_to_value_getter($strategy);
83
-    return function ($value, $key = null) use ($haystack, $strategy, $strict) {
83
+    return function($value, $key = null) use ($haystack, $strategy, $strict) {
84 84
         return !in_array($strategy($value, $key), $haystack, $strict);
85 85
     };
86 86
 }
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
     }
109 109
     $strategy = conversions\mixed_to_value_getter($strategy);
110 110
     if ($strict) {
111
-        return function ($value, $key = null) use ($expected, $strategy) {
111
+        return function($value, $key = null) use ($expected, $strategy) {
112 112
             return $expected === $strategy($value, $key);
113 113
         };
114 114
     } else {
115
-        return function ($value, $key = null) use ($expected, $strategy) {
115
+        return function($value, $key = null) use ($expected, $strategy) {
116 116
             return $expected == $strategy($value, $key);
117 117
         };
118 118
     }
Please login to merge, or discard this patch.