Conditions | 5 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function collect(): array { |
||
26 | $positive = $negative = []; |
||
27 | |||
28 | foreach(xdebug_get_code_coverage() as $file => $lines) { |
||
29 | if(!file_exists($file)) { |
||
30 | continue; |
||
31 | } |
||
32 | |||
33 | foreach($lines as $number => $value) { |
||
34 | if($value > 0) { |
||
35 | $positive[$file][$number] = $value; |
||
36 | } else { |
||
37 | $negative[$file][$number] = $value; |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | |||
42 | return [$positive, $negative,]; |
||
43 | } |
||
45 | ?> |