Passed
Push — main ( 4cb835...943ab3 )
by Breno
11:08 queued 12s
created
src/RuleSet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /** @inheritDoc */
55 55
     public function validate(mixed $input, array $context = []): ErrorReporting
56 56
     {
57
-        if (! $this->shouldValidate($input)) {
57
+        if (!$this->shouldValidate($input)) {
58 58
             return ErrorReporting::success();
59 59
         }
60 60
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     private function stopSign(Rule $rule, Result $result): int
80 80
     {
81
-        if (! $rule instanceof Stoppable) {
81
+        if (!$rule instanceof Stoppable) {
82 82
             return Stoppable::DONT_STOP;
83 83
         }
84 84
 
Please login to merge, or discard this patch.
src/StopOnFailure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     protected function setStopSign(int $stopSign): void
21 21
     {
22
-        if (! in_array($stopSign, [Stoppable::DONT_STOP, Stoppable::ALL, Stoppable::SAME_FIELD])) {
22
+        if (!in_array($stopSign, [Stoppable::DONT_STOP, Stoppable::ALL, Stoppable::SAME_FIELD])) {
23 23
             throw new InvalidArgumentException(sprintf('Invalid stop sign (%s)', $stopSign));
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/Rules/UseRuleSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     use BelongsToField, StopOnFailure, Priority;
21 21
 
22 22
     public function __construct(
23
-        private object|string $objectOrClass,
23
+        private object | string $objectOrClass,
24 24
         private string $property,
25 25
         int $stopOnFailure = Stoppable::DONT_STOP,
26 26
         int $priority = Prioritable::LOWEST_PRIORITY
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @param Rule|RuleSet ...$rules
41 41
      * @return $this
42 42
      */
43
-    public function field(string $field, Rule|RuleSet ...$rules): self
43
+    public function field(string $field, Rule | RuleSet ...$rules): self
44 44
     {
45 45
         $ruleSet = $this->ruleSets[$field] ?? RuleSet::of($field);
46 46
         $this->ruleSets[$field] = $ruleSet->add(...$rules);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $errorReporting = new ErrorReporting;
54 54
         foreach ($this->ruleSets as $field => $fieldRuleSet) {
55 55
             $fieldRuleSet = $fieldRuleSet->withField($field);
56
-            if (! $this->shouldValidate($fieldRuleSet, $data)) {
56
+            if (!$this->shouldValidate($fieldRuleSet, $data)) {
57 57
                 continue;
58 58
             }
59 59
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @return static
119 119
      * @throws ReflectionException if the class does not exist
120 120
      */
121
-    public static function fromProperties(string|object $objectOrClass, ?int $filter = null): self
121
+    public static function fromProperties(string | object $objectOrClass, ?int $filter = null): self
122 122
     {
123 123
         $instance = new self;
124 124
         $instance->ruleSets = RuleSet::fromProperties($objectOrClass, $filter);
Please login to merge, or discard this patch.