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