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