Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | public function normalizeAction($actions): array |
||
20 | { |
||
21 | 10 | $addNamespace = function ($action) { |
|
22 | 10 | if (Str::startsWith($action, '\\')) { |
|
23 | 8 | return $action; |
|
24 | } |
||
25 | |||
26 | 2 | return app()->getNamespace().'Http\\Controllers\\'.$action; |
|
27 | 10 | }; |
|
28 | |||
29 | 10 | return array_map($addNamespace, $actions); |
|
30 | } |
||
32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.