Completed
Push — master ( 0adf97...7f9538 )
by Philip
05:58 queued 04:04
created
src/Valdi/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.