1 | <?php |
||
13 | class V2UnitIterator extends \IteratorIterator { |
||
14 | |||
15 | protected $type = 0; |
||
16 | |||
17 | public function setFilterType($type) { |
||
20 | |||
21 | protected function filterCurrent() { |
||
27 | |||
28 | protected function filterType() { |
||
39 | |||
40 | public function next() { |
||
45 | |||
46 | public function rewind() { |
||
55 | |||
56 | // TODO - why it's not forwarded ??????????s |
||
57 | public function valid() { |
||
60 | |||
61 | /** |
||
62 | * @return V2UnitContainer |
||
63 | */ |
||
64 | public function current() { |
||
67 | |||
68 | public function key() { |
||
71 | |||
72 | } |
||
73 |
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.