|
@@ -19,8 +19,9 @@ |
|
|
block discarded – undo |
|
19
|
19
|
*/ |
|
20
|
20
|
public static function stringWithLength(int $minimumLength, int $maximumLength): \Closure |
|
21
|
21
|
{ |
|
22
|
|
- if ($maximumLength < 0 || $maximumLength < 1) |
|
23
|
|
- throw new \InvalidArgumentException('Minimum length cannot be below 0, maximum length cannot be below 1'); |
|
|
22
|
+ if ($maximumLength < 0 || $maximumLength < 1) { |
|
|
23
|
+ throw new \InvalidArgumentException('Minimum length cannot be below 0, maximum length cannot be below 1'); |
|
|
24
|
+ } |
|
24
|
25
|
|
|
25
|
26
|
return function (string $value) use ($minimumLength, $maximumLength) |
|
26
|
27
|
{ |
Please login to merge, or discard this patch.