@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |