@@ -41,8 +41,7 @@ discard block |
||
41 | 41 | { |
42 | 42 | return |
43 | 43 | $this->hasOwnMessage() ? |
44 | - Translator::translate(static::MESSAGE) : |
|
45 | - Translator::translate(static::MESSAGE, $this->className()); |
|
44 | + Translator::translate(static::MESSAGE) : Translator::translate(static::MESSAGE, $this->className()); |
|
46 | 45 | } |
47 | 46 | |
48 | 47 | /** @inheritDoc */ |
@@ -50,8 +49,7 @@ discard block |
||
50 | 49 | { |
51 | 50 | return |
52 | 51 | $this->isValid($input, $context) ? |
53 | - ErrorReporting::success() : |
|
54 | - (new ErrorReporting)->addError($this->message(), $this->getField(), $this); |
|
52 | + ErrorReporting::success() : (new ErrorReporting)->addError($this->message(), $this->getField(), $this); |
|
55 | 53 | } |
56 | 54 | |
57 | 55 | protected function className(): string |