1 | <?php |
||
7 | class Render |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $infoList; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $options; |
||
18 | |||
19 | /** |
||
20 | * @var Style |
||
21 | */ |
||
22 | protected $style; |
||
23 | |||
24 | /** |
||
25 | * Render constructor. |
||
26 | * |
||
27 | * @param array $options |
||
28 | * @param array $infoList |
||
29 | * @param Style $style |
||
30 | */ |
||
31 | 6 | public function __construct(array $options, array $infoList, Style $style) |
|
39 | |||
40 | /** |
||
41 | * @throws \InvalidArgumentException |
||
42 | */ |
||
43 | 2 | public function displayCoverage() |
|
56 | |||
57 | /** |
||
58 | * @throws \InvalidArgumentException |
||
59 | * @return $this |
||
60 | */ |
||
61 | 2 | public function shortReport() |
|
88 | |||
89 | /** |
||
90 | * @throws \InvalidArgumentException |
||
91 | * @return $this |
||
92 | */ |
||
93 | 4 | public function allFiles() |
|
100 | |||
101 | /** |
||
102 | * |
||
103 | * @throws \InvalidArgumentException |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function fullReport() |
||
128 | |||
129 | // public function htmlReport() |
||
|
|||
130 | // { |
||
131 | // |
||
132 | // } |
||
133 | |||
134 | /** |
||
135 | * @param \Closure $lineProcessor |
||
136 | * @throws \InvalidArgumentException |
||
137 | */ |
||
138 | 3 | protected function fileProcessor(\Closure $lineProcessor) |
|
162 | |||
163 | /** |
||
164 | * @param int $startTime |
||
165 | * @throws \InvalidArgumentException |
||
166 | * @return $this |
||
167 | */ |
||
168 | 6 | public function summary($startTime) |
|
203 | |||
204 | /** |
||
205 | * @param int $bytes |
||
206 | * @return string |
||
207 | */ |
||
208 | 6 | public function bytes($bytes) |
|
217 | } |
||
218 |
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.