Passed
Push — master ( 185f1f...f4290d )
by Rick
02:01
created
src/Types.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
 		};
Please login to merge, or discard this patch.
src/Ranges.php 1 patch
Spacing   +4 added lines, -4 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 (string $value) use ($minimumLength, $maximumLength)
25
+		return function(string $value) use ($minimumLength, $maximumLength)
26 26
 		{
27 27
 			return strlen($value) >= $minimumLength && strlen($value) <= $maximumLength;
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 (int $value) use ($minimum, $maximum)
39
+		return function(int $value) use ($minimum, $maximum)
40 40
 		{
41 41
 			return $value >= $minimum && $value <= $maximum;
42 42
 		};
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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(gettype($value), $allowedValues, true);
55 55
 		};
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public static function stringOneOf(...$allowedValues): \Closure
64 64
 	{
65
-		return function (string $value) use ($allowedValues)
65
+		return function(string $value) use ($allowedValues)
66 66
 		{
67 67
 			return in_array($value, $allowedValues);
68 68
 		};
Please login to merge, or discard this patch.
src/Utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
 	public static function invert(\Closure $closure)
14 14
 	{
15
-		return function ($value) use ($closure)
15
+		return function($value) use ($closure)
16 16
 		{
17 17
 			return !$closure($value);
18 18
 		};
Please login to merge, or discard this patch.