@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | foreach ($rules as $name => $attrRules) { |
| 53 | 53 | if (!array_key_exists($name, $data)) { |
| 54 | - $errors[$name] = 'Value is not exists: ' . $name; |
|
| 54 | + $errors[$name] = 'Value is not exists: '.$name; |
|
| 55 | 55 | continue; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Validator\Validators; |
| 5 | 5 | |
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | { |
| 6 | 6 | public function __invoke($value): bool |
| 7 | 7 | { |
| 8 | - return (bool)filter_var($value, FILTER_VALIDATE_EMAIL); |
|
| 8 | + return (bool) filter_var($value, FILTER_VALIDATE_EMAIL); |
|
| 9 | 9 | } |
| 10 | 10 | } |
| 11 | 11 | \ No newline at end of file |
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | { |
| 6 | 6 | public function __invoke($value, int $min, int $max): bool |
| 7 | 7 | { |
| 8 | - return $value <= $max && $value >= $min; |
|
| 8 | + return $value <= $max && $value >= $min; |
|
| 9 | 9 | } |
| 10 | 10 | } |
| 11 | 11 | \ No newline at end of file |
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | { |
| 6 | 6 | public function __invoke($value): bool |
| 7 | 7 | { |
| 8 | - return filter_var($value, \FILTER_VALIDATE_BOOLEAN); |
|
| 8 | + return filter_var($value, \FILTER_VALIDATE_BOOLEAN); |
|
| 9 | 9 | } |
| 10 | 10 | } |
| 11 | 11 | \ No newline at end of file |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Validator\Validators; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Validator\Validators; |
| 5 | 5 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | public function __invoke($value): bool |
| 9 | 9 | { |
| 10 | 10 | if ($value === null) { |
| 11 | - return false; |
|
| 11 | + return false; |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | if (is_string($value) && trim($value) === '') { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Validator\Validators; |
| 5 | 5 | |