Passed
Push — master ( 8ffc57...fdc7ac )
by
unknown
03:42
created
src/Zicht/Itertools/filters.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 function type($class, $strategy = null)
33 33
 {
34 34
     $strategy = conversions\mixed_to_value_getter($strategy);
35
-    return function ($value, $key = null) use ($class, $strategy) {
35
+    return function($value, $key = null) use ($class, $strategy) {
36 36
         return $strategy($value, $key) instanceof $class;
37 37
     };
38 38
 }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $haystack = Itertools\iterable($haystack)->values();
67 67
     }
68 68
     $strategy = conversions\mixed_to_value_getter($strategy);
69
-    return function ($value, $key = null) use ($haystack, $strategy, $strict) {
69
+    return function($value, $key = null) use ($haystack, $strategy, $strict) {
70 70
         return in_array($strategy($value, $key), $haystack, $strict);
71 71
     };
72 72
 }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $haystack = Itertools\iterable($haystack)->values();
91 91
     }
92 92
     $strategy = conversions\mixed_to_value_getter($strategy);
93
-    return function ($value, $key = null) use ($haystack, $strategy, $strict) {
93
+    return function($value, $key = null) use ($haystack, $strategy, $strict) {
94 94
         return !in_array($strategy($value, $key), $haystack, $strict);
95 95
     };
96 96
 }
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
     }
123 123
     $strategy = conversions\mixed_to_value_getter($strategy);
124 124
     if ($strict) {
125
-        return function ($value, $key = null) use ($expected, $strategy) {
125
+        return function($value, $key = null) use ($expected, $strategy) {
126 126
             return $expected === $strategy($value, $key);
127 127
         };
128 128
     } else {
129
-        return function ($value, $key = null) use ($expected, $strategy) {
129
+        return function($value, $key = null) use ($expected, $strategy) {
130 130
             return $expected == $strategy($value, $key);
131 131
         };
132 132
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 function not($strategy = null)
148 148
 {
149 149
     $strategy = conversions\mixed_to_value_getter($strategy);
150
-    return function ($value, $key = null) use ($strategy) {
150
+    return function($value, $key = null) use ($strategy) {
151 151
         return !($strategy($value, $key));
152 152
     };
153 153
 }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     }
173 173
 
174 174
     $strategy = conversions\mixed_to_value_getter($strategy);
175
-    return function ($value, $key = null) use ($pattern, $strategy) {
175
+    return function($value, $key = null) use ($pattern, $strategy) {
176 176
         return (bool)preg_match($pattern, $strategy($value, $key));
177 177
     };
178 178
 }
Please login to merge, or discard this patch.