1 | <?php |
||
11 | class Option |
||
12 | { |
||
13 | /** |
||
14 | * @var Extension[] |
||
15 | */ |
||
16 | private $extensions; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $ignoreNumbers = [0, 0., 1]; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $ignoreFuncs = []; |
||
27 | |||
28 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * @param Extension $extension |
||
35 | */ |
||
36 | public function addExtension(Extension $extension) |
||
40 | |||
41 | /**] |
||
|
|||
42 | * @return Extension[] |
||
43 | */ |
||
44 | public function getExtensions() |
||
48 | |||
49 | /** |
||
50 | * @param array $ignoreNumbers |
||
51 | */ |
||
52 | public function setIgnoreNumbers(array $ignoreNumbers) |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getIgnoreNumbers() |
||
64 | |||
65 | /** |
||
66 | * @param array $ignoreFuncs |
||
67 | */ |
||
68 | public function setIgnoreFuncs(array $ignoreFuncs) |
||
72 | |||
73 | /** |
||
74 | * @return array |
||
75 | */ |
||
76 | public function getIgnoreFuncs() |
||
80 | } |
||
81 |
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.