1 | <?php |
||
13 | class Web extends \erdiko\Controller |
||
14 | { |
||
15 | /** |
||
16 | * invoke |
||
17 | * @param Request $request |
||
18 | * @param Response $response |
||
19 | * @param array $args |
||
20 | * @return string $action method name |
||
21 | */ |
||
22 | public function __invoke($request, $response, $args) |
||
28 | |||
29 | /** |
||
30 | * dertermin action |
||
31 | * |
||
32 | * @param Request $request |
||
33 | * @param array $args |
||
34 | * @return string $action method name |
||
35 | */ |
||
36 | protected function determineAction($request, $args) : string |
||
49 | |||
50 | /** |
||
51 | * render |
||
52 | * render page |
||
53 | */ |
||
54 | public function render($response, $view, $application) |
||
61 | } |
||
62 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.