| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 6 | public function methodAllows($emptyString, $callback, array $parameters = []) |
|
|
|
|||
| 17 | { |
||
| 18 | // it is not clear why laravel passes the $emptyString as the first parameter here. |
||
| 19 | // check Imanghafoori\HeyMan\Conditions\ConditionsFacade class line 12; |
||
| 20 | |||
| 21 | 82 | return function (...$payload) use ($callback, $parameters) { |
|
| 22 | 54 | return (bool) app()->call($callback, array_merge($parameters, ...$payload)); |
|
| 23 | 82 | }; |
|
| 33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.