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