| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 67 | public function getMessage(string $field, $value): string |
||
| 68 | { |
||
| 69 | if (!empty($this->message)) { |
||
| 70 | return Translator::interpolate( |
||
| 71 | $this->message, |
||
| 72 | array_merge([$value, $field], $this->args) |
||
| 73 | ); |
||
| 74 | } |
||
| 75 | |||
| 76 | return $this->checker->getMessage($this->method, $field, $value, $this->args); |
||
| 77 | } |
||
| 79 |