@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Utils; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Utils; |
5 | 5 | |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | const PATTERN = '/(\{\-?\d+(,\-?\d+)*\})|((?P<start>\[|\])(?P<limit1>\-?\d+|\-Inf),(?P<limit2>\-?\d+|\+Inf)(?P<end>\[|\]))/'; |
17 | 17 | |
18 | - public static function findInterval(string $text): ?string { |
|
18 | + public static function findInterval(string $text): ? string { |
|
19 | 19 | $found = preg_match_all(static::PATTERN, $text, $result); |
20 | 20 | if(!$found) { |
21 | 21 | return NULL; |