| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function boot() |
||
| 14 | { |
||
| 15 | $this->publishes([ |
||
| 16 | base_path('vendor/mews/captcha/config/captcha.php') => config_path('captcha.php'), |
||
| 17 | ], 'config'); |
||
| 18 | |||
| 19 | $this->app['validator']->extend('captcha', function ($attribute, $value, $parameters) { |
||
|
1 ignored issue
–
show
|
|||
| 20 | return captcha_check($value); |
||
| 21 | }); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.