| @@ -65,7 +65,7 @@ | ||
| 65 | 65 | */ | 
| 66 | 66 | public static function instanceof($class): \Closure | 
| 67 | 67 |  	{ | 
| 68 | - return function ($value) use ($class) | |
| 68 | + return function($value) use ($class) | |
| 69 | 69 |  		{ | 
| 70 | 70 | return $value instanceof $class; | 
| 71 | 71 | }; | 
| @@ -17,7 +17,7 @@ discard block | ||
| 17 | 17 | */ | 
| 18 | 18 | public static function invert(\Closure $closure) | 
| 19 | 19 |  	{ | 
| 20 | - return function ($value) use ($closure) | |
| 20 | + return function($value) use ($closure) | |
| 21 | 21 |  		{ | 
| 22 | 22 | return !$closure($value); | 
| 23 | 23 | }; | 
| @@ -31,7 +31,7 @@ discard block | ||
| 31 | 31 | */ | 
| 32 | 32 | public static function merge(\Closure $closure1, \Closure $closure2) | 
| 33 | 33 |  	{ | 
| 34 | - return function ($value) use ($closure1, $closure2) | |
| 34 | + return function($value) use ($closure1, $closure2) | |
| 35 | 35 |  		{ | 
| 36 | 36 | return $closure1($value) || $closure2($value); | 
| 37 | 37 | }; | 
| @@ -45,7 +45,7 @@ discard block | ||
| 45 | 45 | */ | 
| 46 | 46 | public static function both(\Closure $closure1, \Closure $closure2) | 
| 47 | 47 |  	{ | 
| 48 | - return function ($value) use ($closure1, $closure2) | |
| 48 | + return function($value) use ($closure1, $closure2) | |
| 49 | 49 |  		{ | 
| 50 | 50 | return $closure1($value) && $closure2($value); | 
| 51 | 51 | }; | 
| @@ -22,7 +22,7 @@ discard block | ||
| 22 | 22 | if ($maximumLength < 0 || $maximumLength < 1) | 
| 23 | 23 |  			throw new \InvalidArgumentException('Minimum length cannot be below 0, maximum length cannot be below 1'); | 
| 24 | 24 | |
| 25 | - return function ($value) use ($minimumLength, $maximumLength) | |
| 25 | + return function($value) use ($minimumLength, $maximumLength) | |
| 26 | 26 |  		{ | 
| 27 | 27 | return Types::string()($value) && static::intBetween($minimumLength, $maximumLength)(strlen($value)); | 
| 28 | 28 | }; | 
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 | */ | 
| 37 | 37 | public static function intBetween(int $minimum, int $maximum): \Closure | 
| 38 | 38 |  	{ | 
| 39 | - return function ($value) use ($minimum, $maximum) | |
| 39 | + return function($value) use ($minimum, $maximum) | |
| 40 | 40 |  		{ | 
| 41 | 41 | return Types::int()($value) && ($value >= $minimum && $value <= $maximum); | 
| 42 | 42 | }; | 
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 | */ | 
| 50 | 50 | public static function enum(...$allowedValues): \Closure | 
| 51 | 51 |  	{ | 
| 52 | - return function ($value) use ($allowedValues) | |
| 52 | + return function($value) use ($allowedValues) | |
| 53 | 53 |  		{ | 
| 54 | 54 | return in_array($value, $allowedValues, true); | 
| 55 | 55 | }; | 
| @@ -62,7 +62,7 @@ discard block | ||
| 62 | 62 | */ | 
| 63 | 63 | public static function typeEnum(...$allowedTypes): \Closure | 
| 64 | 64 |  	{ | 
| 65 | - return function ($value) use ($allowedTypes) | |
| 65 | + return function($value) use ($allowedTypes) | |
| 66 | 66 |  		{ | 
| 67 | 67 | return in_array(gettype($value), $allowedTypes, true); | 
| 68 | 68 | }; | 
| @@ -78,7 +78,7 @@ discard block | ||
| 78 | 78 | if (!Utils::validateArray(Types::string(), $allowedValues)) | 
| 79 | 79 |  			throw new \InvalidArgumentException('Ranges::stringOneOf expects arguments of type string only'); | 
| 80 | 80 | |
| 81 | - return function ($value) use ($allowedValues) | |
| 81 | + return function($value) use ($allowedValues) | |
| 82 | 82 |  		{ | 
| 83 | 83 | return Types::string() && in_array($value, $allowedValues); | 
| 84 | 84 | }; |