| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 14 | public function __construct($translator, $data, $rules, $messages, array $customAttributes = []) |
||
| 15 | { |
||
| 16 | // Set custom validation error messages |
||
| 17 | if (!isset($messages['vat_number'])) { |
||
| 18 | $messages['vat_number'] = $translator->get( |
||
| 19 | 'vatnumber-validator::validation.vat_number' |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | parent::__construct($translator, $data, $rules, $messages, $customAttributes); |
||
| 23 | } |
||
| 24 | |||
| 43 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.