1 | <?php |
||
29 | abstract class ExtensionAbstract extends ObjectAbstract implements ExtensionInterface |
||
30 | { |
||
31 | /** |
||
32 | * The server object |
||
33 | * |
||
34 | * @var ExtensionAwareInterface |
||
35 | * @access protected |
||
36 | */ |
||
37 | protected $server; |
||
38 | |||
39 | /** |
||
40 | * The lazy boot flag |
||
41 | * |
||
42 | * @var bool |
||
43 | * @access protected |
||
44 | */ |
||
45 | protected $booted = false; |
||
46 | |||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | public function methodsAvailable()/*# : array */ |
||
55 | |||
56 | /** |
||
57 | * {@inheritDoc} |
||
58 | */ |
||
59 | public function boot(ExtensionAwareInterface $server) |
||
72 | |||
73 | /** |
||
74 | * |
||
75 | * @param ExtensionAwareInterface $server |
||
76 | * @access protected |
||
77 | */ |
||
78 | abstract protected function bootExtension(ExtensionAwareInterface $server); |
||
79 | } |
||
80 |
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.