| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Indisposable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Default error message. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | public static $errorMessage = 'Disposable email addresses are not allowed.'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Validates whether an email address does not originate from a disposable email service. |
||
| 18 | * |
||
| 19 | * @param string $attribute |
||
| 20 | * @param mixed $value |
||
| 21 | * @param array $parameters |
||
| 22 | * @param \Illuminate\Validation\Validator $validator |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 9 | public function validate($attribute, $value, $parameters, $validator) |
|
| 30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.