| 1 | <?php |
||
| 20 | abstract class AbstractViewComponent extends AbstractBaseViewComponent implements |
||
| 21 | ComponentStateInterface |
||
| 22 | { |
||
| 23 | use ComponentStateTrait; |
||
| 24 | |||
| 25 | // TODO concept |
||
| 26 | public function getIndex() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @TODO concept |
||
| 33 | * @var RenderEvent |
||
| 34 | */ |
||
| 35 | private $renderEvent; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * TODO concept |
||
| 39 | * @param RenderEvent $event |
||
| 40 | */ |
||
| 41 | protected function setRenderEvent(RenderEvent $event) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * TODO concept |
||
| 48 | * @return RenderEvent |
||
| 49 | */ |
||
| 50 | protected function getRenderEvent() |
||
| 54 | |||
| 55 | |||
| 56 | /** |
||
| 57 | * @TODO concept |
||
| 58 | */ |
||
| 59 | // public function __clone() |
||
|
|
|||
| 60 | // { |
||
| 61 | // $this->state = clone $this->getState(); |
||
| 62 | // } |
||
| 63 | } |
||
| 64 |
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.