Passed
Push — main ( 7cc982...0234a4 )
by Breno
01:47
created
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/ValidationResultSet.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
 
67 67
         $exception =
68 68
             $validationException instanceof ValidationExceptionInterface ?
69
-                $validationException :
70
-                new ValidationException();
69
+                $validationException : new ValidationException();
71 70
 
72 71
         foreach ($this->validationResults as $result) {
73 72
             foreach ($result->getErrors() as $error) {
Please login to merge, or discard this patch.