| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 3 | ||
| Bugs | 1 | Features | 1 | 
| 1 | <?php | ||
| 21 | public function validateVatNumber($attribute, $value, $parameters, $validator) | ||
| 22 |     { | ||
| 23 | $validator->setCustomMessages([ | ||
| 24 |             'vat_number' => $validator->getTranslator()->get('vatnumber-validator::validation.vat_number'), | ||
| 25 | ]); | ||
| 26 | |||
| 27 |         try { | ||
| 28 | return VatCalculator::isValidVATNumber($value); | ||
| 29 |         } catch (VATCheckUnavailableException $e) { | ||
| 30 | return false; | ||
| 31 | } | ||
| 32 | } | ||
| 33 | } | ||
| 34 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.