63% 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...
18
private $type;
19
20
/*
21
* @attributes
22
*/
23
private $path;
24
private $package;
25
26
/* Class */
27
/**
28
* @var bool
29
*/
30
private $final;
31
/**
32
* @var bool
33
*/
34
private $abstract;
35
private $namespace;
36
private $namespaceAlias;
37
private $extends;
38
private $implements;
39
40
private $constant;
41
42
43
44
/**
45
* @param mixed $path
46
*/
47
public function setPath($path)
48
{
49
$this->path = $path;
50
}
51
52
/**
53
* @param mixed $package
54
*/
55
public function setPackage($package)
56
{
57
$this->package = $package;
58
}
59
60
/**
61
* @param mixed $type
62
*/
63
public function setType($type)
64
{
65
$this->type = $type;
66
}
67
68
/**
69
* @param boolean $final
70
*/
71
public function setFinal($final)
72
{
73
$this->final = $final;
74
}
75
76
/**
77
* @param boolean $abstract
78
*/
79
public function setAbstract($abstract)
80
{
81
$this->abstract = $abstract;
82
}
83
84
/**
85
* @param mixed $namespace
86
*/
87
public function setNamespace($namespace)
88
{
89
$this->namespace = $namespace;
90
}
91
92
/**
93
* @param mixed $extends
94
*/
95
public function setExtends($extends)
96
{
97
$this->extends = $extends;
98
}
99
100
/**
101
* @param mixed $implements
102
*/
103
public function setImplements($implements)
104
{
105
$this->implements = $implements;
106
}
107
108
/**
109
* @param mixed $namespaceAlias
110
*/
111
public function setNamespaceAlias($namespaceAlias)
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.