@@ -34,8 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | return |
36 | 36 | $this->isValid($input, $context) ? |
37 | - ErrorReporting::success() : |
|
38 | - (new ErrorReporting)->addError($this->message(), $this->getField(), $this); |
|
37 | + ErrorReporting::success() : (new ErrorReporting)->addError($this->message(), $this->getField(), $this); |
|
39 | 38 | } |
40 | 39 | |
41 | 40 | protected function className(): string |
@@ -7,7 +7,7 @@ |
||
7 | 7 | { |
8 | 8 | private static TranslatorInterface $translator; |
9 | 9 | |
10 | - public static function setDefault(TranslatorInterface|callable $translator, bool $compose = true): void |
|
10 | + public static function setDefault(TranslatorInterface | callable $translator, bool $compose = true): void |
|
11 | 11 | { |
12 | 12 | if ($translator instanceof TranslatorInterface) { |
13 | 13 | self::$translator = $translator; |