Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function boot() |
||
32 | { |
||
33 | $this->registerPolicies(); |
||
34 | Passport::routes(); |
||
35 | |||
36 | Validator::extend('allowed_email_domain', function($attribute, $value, $parameters, $validator) { |
||
37 | return !in_array(explode('@', $value)[1], $this->forbiddenDomains); |
||
38 | }, 'Domain not valid for registration.'); |
||
39 | } |
||
41 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.