42% of this comment could be valid code. Did you maybe forget this after debugging?
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.
Loading history...
53
return [];
54
}
55
56
/**
57
* {@inheritDoc}
58
*/
59
public function boot(ExtensionAwareInterface $server)
60
{
61
if (!$this->booted) {
62
// bind server
63
$this->server = $server;
64
65
// call user defined boot
66
$this->bootExtension($server);
67
68
// call your own bootMethod here
69
$this->booted = true;
70
}
71
}
72
73
/**
74
*
75
* @param ExtensionAwareInterface $server
76
* @access protected
77
*/
78
abstract protected function bootExtension(ExtensionAwareInterface $server);
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.