1 | <?php |
||
29 | class Newbb extends \Xmf\Module\Helper |
||
30 | { |
||
31 | public $debugArray = []; |
||
32 | |||
33 | /** |
||
34 | * @internal param $debug |
||
35 | */ |
||
36 | protected function __construct() |
||
41 | |||
42 | /** |
||
43 | * @param bool $debug |
||
44 | * |
||
45 | * @return Newbb |
||
46 | */ |
||
47 | public static function getInstance($debug = false) |
||
56 | |||
57 | |||
58 | /** |
||
59 | * @param null|string $name |
||
60 | * @param null|string $value |
||
61 | * |
||
62 | * @return mixed |
||
63 | */ |
||
64 | // public function setConfig($name = null, $value = null) |
||
65 | // { |
||
66 | // if (null === $this->configs) { |
||
67 | // $this->initConfig(); |
||
68 | // } |
||
69 | // $this->configs[$name] = $value; |
||
70 | // $this->addLog("Setting config '{$name}' : " . $this->configs[$name]); |
||
71 | // |
||
72 | // return $this->configs[$name]; |
||
73 | // } |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getDirname() |
||
82 | } |
||
83 |
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.