Passed
Push — main ( 01c9fe...768528 )
by Breno
01:57
created
src/RuleChainTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
  */
19 19
 trait RuleChainTrait
20 20
 {
21
-    abstract public function add(Rule|RuleSet ...$rules): static;
21
+    abstract public function add(Rule | RuleSet ...$rules): static;
22 22
 
23 23
     public function __call($name, $arguments): static
24 24
     {
25
-        $namespace = __NAMESPACE__ . '\\Rules';
25
+        $namespace = __NAMESPACE__.'\\Rules';
26 26
         $class = sprintf("%s\%s", $namespace, ucfirst($name));
27 27
         if (!class_exists($class)) {
28 28
             throw new RuntimeException(sprintf('Rule not found: (%s).', $name));
Please login to merge, or discard this patch.
src/AbstractRule.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         return
29 29
             $this->isValid($input, $context) ?
30
-                ErrorReporting::success() :
31
-                (new ErrorReporting)->addError($this->message, $this->getField(), $this);
30
+                ErrorReporting::success() : (new ErrorReporting)->addError($this->message, $this->getField(), $this);
32 31
     }
33 32
 
34 33
     private function className(): string
Please login to merge, or discard this patch.
src/RuleSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
     private function stopSign(Rule $rule, Result $result): int
74 74
     {
75
-        if (! $rule instanceof Stoppable) {
75
+        if (!$rule instanceof Stoppable) {
76 76
             return StopSign::DONT_STOP;
77 77
         }
78 78
 
Please login to merge, or discard this patch.
src/Rules/Required.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 {
12 12
     public function isValid(mixed $input, array $context = []): bool
13 13
     {
14
-       return true;
14
+        return true;
15 15
     }
16 16
 }
Please login to merge, or discard this patch.