@@ -17,14 +17,14 @@ discard block |
||
17 | 17 | |
18 | 18 | public static function findInterval(string $text): ?string { |
19 | 19 | preg_match(static::PATTERN, $text, $result); |
20 | - if(!is_array($result) OR count($result) < 1) { |
|
20 | + if(!is_array($result) or count($result) < 1) { |
|
21 | 21 | return null; |
22 | 22 | } |
23 | 23 | return $result[0]; |
24 | 24 | } |
25 | 25 | |
26 | 26 | public static function isInInterval(int $number, string $interval): bool { |
27 | - if(is_null(static::findInterval($interval)) OR $interval !== static::findInterval($interval)) { |
|
27 | + if(is_null(static::findInterval($interval)) or $interval !== static::findInterval($interval)) { |
|
28 | 28 | return false; |
29 | 29 | } |
30 | 30 | if(Strings::startsWith($interval, "{")) { |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | return false; |
47 | 47 | } elseif($number > $limit2) { |
48 | 48 | return false; |
49 | - } elseif($number === $limit1 AND $start === "]") { |
|
49 | + } elseif($number === $limit1 and $start === "]") { |
|
50 | 50 | return false; |
51 | - } elseif($number === $limit2 AND $end === "[") { |
|
51 | + } elseif($number === $limit2 and $end === "[") { |
|
52 | 52 | return false; |
53 | 53 | } |
54 | 54 | return true; |