@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $this->availableValidators = []; |
| 38 | 38 | foreach ($validators as $name => $type) { |
| 39 | - $class = '\\Valdi\\Validator\\' . $type; |
|
| 39 | + $class = '\\Valdi\\Validator\\'.$type; |
|
| 40 | 40 | $this->availableValidators[$name] = new $class(); |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | protected function isValidRule(string $validator, array $parameters, $value) |
| 61 | 61 | { |
| 62 | 62 | if (!array_key_exists($validator, $this->availableValidators)) { |
| 63 | - throw new ValidatorException('"' . $validator . '" not found as available validator.'); |
|
| 63 | + throw new ValidatorException('"'.$validator.'" not found as available validator.'); |
|
| 64 | 64 | } |
| 65 | 65 | return $this->availableValidators[$validator]->isValid($value, $parameters) ? |
| 66 | 66 | null : $this->availableValidators[$validator]->getInvalidDetails(); |