Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Name |
||
8 | { |
||
9 | /** @var Router */ |
||
10 | private $router; |
||
11 | |||
12 | public function __construct($router) |
||
15 | } |
||
16 | |||
17 | public function home(): void |
||
23 | } |
||
24 | |||
25 | public function hello($data): void |
||
|
|||
26 | { |
||
27 | echo "<h1>Hello World</h1>"; |
||
28 | echo "<a href='{$this->router->route("name.params", ["category" => 6, "page" => 1])}'>Route Params</a>"; |
||
29 | } |
||
30 | |||
31 | public function params(array $data): void |
||
34 | } |
||
35 | |||
36 | public function redirect($data): void |
||
44 | } |
||
45 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.