@@ -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 | |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | public function validateIfExists(array $data, array $rules): array |
| 92 | 92 | { |
| 93 | - return $this->validate($data, $rules, true); |
|
| 93 | + return $this->validate($data, $rules, true); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | if (!$validateIfExist) { |
| 84 | - $errors[$name] = 'Value is not exists or bad: ' . $name; |
|
| 84 | + $errors[$name] = 'Value is not exists or bad: '.$name; |
|
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | |
@@ -138,6 +138,6 @@ discard block |
||
| 138 | 138 | $params = explode($this->paramDelimiter, $rule); |
| 139 | 139 | $handlerAlias = array_shift($params); |
| 140 | 140 | |
| 141 | - return [$handlerAlias, (array)$params]; |
|
| 141 | + return [$handlerAlias, (array) $params]; |
|
| 142 | 142 | } |
| 143 | 143 | } |