70% 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...
13
14
/**
15
* Class SmartTip
16
* @package XoopsModules\Smartobject
17
*/
18
class Tip
19
{
20
public $id;
21
public $caption;
22
public $message;
23
public $visible;
24
public $_tpl;
25
26
/**
27
* SmartTip constructor.
28
* @param $id
29
* @param $caption
30
* @param $message
31
* @param bool $visible
32
*/
33
public function __construct($id, $caption, $message, $visible = 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.