@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |