Passed
Pull Request — master (#23)
by
unknown
05:14
created
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 = iter\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 = iter\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.