1 | <?php |
||
15 | class File |
||
16 | { |
||
17 | /* class, interface, trait */ |
||
|
|||
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) |
||
51 | |||
52 | /** |
||
53 | * @param mixed $package |
||
54 | */ |
||
55 | public function setPackage($package) |
||
59 | |||
60 | /** |
||
61 | * @param mixed $type |
||
62 | */ |
||
63 | public function setType($type) |
||
67 | |||
68 | /** |
||
69 | * @param boolean $final |
||
70 | */ |
||
71 | public function setFinal($final) |
||
75 | |||
76 | /** |
||
77 | * @param boolean $abstract |
||
78 | */ |
||
79 | public function setAbstract($abstract) |
||
83 | |||
84 | /** |
||
85 | * @param mixed $namespace |
||
86 | */ |
||
87 | public function setNamespace($namespace) |
||
91 | |||
92 | /** |
||
93 | * @param mixed $extends |
||
94 | */ |
||
95 | public function setExtends($extends) |
||
99 | |||
100 | /** |
||
101 | * @param mixed $implements |
||
102 | */ |
||
103 | public function setImplements($implements) |
||
107 | |||
108 | /** |
||
109 | * @param mixed $namespaceAlias |
||
110 | */ |
||
111 | public function setNamespaceAlias($namespaceAlias) |
||
115 | |||
116 | /** |
||
117 | * @param mixed $constant |
||
118 | */ |
||
119 | public function setConstant($constant) |
||
123 | |||
124 | |||
125 | |||
126 | |||
127 | |||
128 | |||
129 | } |
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.