1 | <?php |
||
23 | class ReRouteControllerModel implements ReRouteControllerModelInterface |
||
24 | { |
||
25 | protected $reRoute; |
||
26 | |||
27 | public function __construct(ReRouteInterface $reRoute) |
||
31 | |||
32 | /** |
||
33 | * Returns ResponseParameters to the given route with the given parameters. |
||
34 | * |
||
35 | * @param string $route The name of the route |
||
36 | * @param mixed $parameters An array of parameters |
||
37 | * |
||
38 | * @return Response |
||
39 | * |
||
40 | * @see Interface ReRouteControllerModelInterface |
||
41 | */ |
||
42 | public function __invoke($route, $parameters = [], Request $request = null) |
||
46 | } |
||
47 | |||
49 |
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.