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