@@ -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 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | final class Filter { |
| 15 | 15 | use \Nette\StaticClass; |
| 16 | 16 | |
| 17 | - public const OPERATORS = ["==", ">=", ">", "<=", "<",]; |
|
| 17 | + public const OPERATORS = ["==", ">=", ">", "<=", "<", ]; |
|
| 18 | 18 | |
| 19 | 19 | public static function getOperator(string $input): string { |
| 20 | 20 | foreach(static::OPERATORS as $operator) { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * Check whether a number is within boundaries |
| 23 | 23 | */ |
| 24 | 24 | public static function isInRange(int $number, int $min, int $max): bool { |
| 25 | - return ($number >= $min AND $number <= $max); |
|
| 25 | + return ($number >= $min and $number <= $max); |
|
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | 28 | ?> |
| 29 | 29 | \ No newline at end of file |