@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | foreach ($rules as $name => $attrRules) { |
| 59 | 59 | if (!array_key_exists($name, $data)) { |
| 60 | - $errors[$name] = 'Value is not exists: ' . $name; |
|
| 60 | + $errors[$name] = 'Value is not exists: '.$name; |
|
| 61 | 61 | continue; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -114,6 +114,6 @@ discard block |
||
| 114 | 114 | $params = explode($this->paramDelimiter, $rule); |
| 115 | 115 | $handlerAlias = array_shift($params); |
| 116 | 116 | |
| 117 | - return [$handlerAlias, (array)$params]; |
|
| 117 | + return [$handlerAlias, (array) $params]; |
|
| 118 | 118 | } |
| 119 | 119 | } |