75% 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...
21
22
/**
23
* Class Helper
24
*/
25
class Helper extends \Xmf\Module\Helper
26
{
27
public $debug;
28
29
/**
30
* @internal param $debug
31
* @param bool $debug
32
*/
33
protected function __construct($debug = false)
34
{
35
$this->debug = $debug;
36
$this->dirname = basename(dirname(__DIR__));
37
}
38
39
/**
40
* @param bool $debug
41
*
42
* @return \Xoopsmodules\instruction\Helper
43
*/
44
public static function getInstance($debug = false)
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.