Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 1 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
7 | 4 | public function closureAllows($emptyString, $callback, $parameters = []) |
|
8 | { |
||
9 | 4 | // laravel bug : |
|
10 | // it is not clear why laravel passes the $emptyString as the first parameter here. |
||
11 | // check Imanghafoori\HeyMan\Conditions\ConditionsFacade class line 12; |
||
12 | |||
13 | return $this->methodAllows($emptyString, $callback, $parameters); |
||
14 | 6 | } |
|
33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.