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