1 | <?php |
||
26 | class Repository |
||
27 | { |
||
28 | /** |
||
29 | * @var Router|RouterInterface |
||
30 | */ |
||
31 | private $router; |
||
32 | |||
33 | /** |
||
34 | * @var DefinitionInterface|TypeInterface |
||
35 | */ |
||
36 | private $type; |
||
37 | |||
38 | /** |
||
39 | * Repository constructor. |
||
40 | * @param RouterInterface $router |
||
41 | * @param ObjectTypeInterface $type |
||
42 | */ |
||
43 | public function __construct(RouterInterface $router, ObjectTypeInterface $type) |
||
48 | |||
49 | /** |
||
50 | * @param InputInterface $input |
||
51 | * @param mixed $parent |
||
52 | * @return mixed |
||
53 | */ |
||
54 | public function fetch(InputInterface $input, $parent) |
||
74 | |||
75 | /** |
||
76 | * @param RouteInterface|Route $route |
||
77 | * @param InputInterface $input |
||
78 | * @param $parent |
||
79 | * @return mixed |
||
80 | */ |
||
81 | private function invoke(RouteInterface $route, InputInterface $input, $parent) |
||
92 | } |
||
93 |
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.