Passed
Push — master ( ff74ae...3481b7 )
by Rick
01:43
created
src/Ranges.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		};
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 */
51 51
 	public static function floatBetween(float $minimum, float $maximum): \Closure
52 52
 	{
53
-		return function ($value) use ($minimum, $maximum)
53
+		return function($value) use ($minimum, $maximum)
54 54
 		{
55 55
 			return Types::float()($value) && ($value >= $minimum && $value <= $maximum);
56 56
 		};
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 */
64 64
 	public static function enum(...$allowedValues): \Closure
65 65
 	{
66
-		return function ($value) use ($allowedValues)
66
+		return function($value) use ($allowedValues)
67 67
 		{
68 68
 			return in_array($value, $allowedValues, true);
69 69
 		};
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	public static function typeEnum(...$allowedTypes): \Closure
78 78
 	{
79
-		return function ($value) use ($allowedTypes)
79
+		return function($value) use ($allowedTypes)
80 80
 		{
81 81
 			return in_array(gettype($value), $allowedTypes, true);
82 82
 		};
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 		if (!Utils::validateArray(Types::string(), $allowedValues))
93 93
 			throw new \InvalidArgumentException('Ranges::stringOneOf expects arguments of type string only');
94 94
 
95
-		return function ($value) use ($allowedValues)
95
+		return function($value) use ($allowedValues)
96 96
 		{
97 97
 			return Types::string() && in_array($value, $allowedValues);
98 98
 		};
Please login to merge, or discard this patch.
src/Reflection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 		if (!method_exists(\ReflectionClass::class, $method))
61 61
 			throw new \InvalidArgumentException('Cannot create closure from method ReflectionClass::' . $method . ', it does not exist');
62 62
 
63
-		return function ($value) use ($method, $arguments)
63
+		return function($value) use ($method, $arguments)
64 64
 		{
65 65
 			if (!Types::string()($value))
66 66
 				return false;
Please login to merge, or discard this patch.
src/Utils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	 */
18 18
 	public static function invert(\Closure $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
 block discarded – undo
31 31
 	 */
32 32
 	public static function merge(\Closure $closure1, \Closure $closure2): \Closure
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
 block discarded – undo
45 45
 	 */
46 46
 	public static function both(\Closure $closure1, \Closure $closure2): \Closure
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
 		};
Please login to merge, or discard this patch.