Passed
Push — main ( 93c199...f7f95e )
by Breno
01:50
created
src/Exception/ValidationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             }
19 19
         }
20 20
 
21
-        return $this->getMessage() . ":" . PHP_EOL . implode(PHP_EOL, $messages);
21
+        return $this->getMessage().":".PHP_EOL.implode(PHP_EOL, $messages);
22 22
     }
23 23
 
24 24
     /**
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param Rule|RuleSet ...$rules
38 38
      * @return $this
39 39
      */
40
-    public function field(string $field, Rule|RuleSet ...$rules): self
40
+    public function field(string $field, Rule | RuleSet ...$rules): self
41 41
     {
42 42
         $ruleSet = $this->ruleSets[$field] ?? RuleSet::of($field);
43 43
         $this->ruleSets[$field] = $ruleSet->add(...$rules);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @return static
125 125
      * @throws ReflectionException if the class does not exist
126 126
      */
127
-    public static function fromProperties(string|object $objectOrClass, ?int $filter = null): self
127
+    public static function fromProperties(string | object $objectOrClass, ?int $filter = null): self
128 128
     {
129 129
         $instance = new self;
130 130
         $instance->ruleSets = RuleSetFactory::fromProperties($objectOrClass, $filter);
Please login to merge, or discard this patch.
src/Exception/Guard.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@
 block discarded – undo
49 49
     ): ValidationExceptionInterface {
50 50
         return
51 51
             $validationException instanceof ValidationExceptionInterface ?
52
-                $validationException :
53
-                new ValidationException(is_string($validationException) ? $validationException : '');
52
+                $validationException : new ValidationException(is_string($validationException) ? $validationException : '');
54 53
     }
55 54
 }
Please login to merge, or discard this patch.