Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
30 | public function collect(): array |
||
31 | { |
||
32 | /** @var array $positive */ |
||
33 | $positive = phpdbg_end_oplog(); |
||
34 | /** @var array $negative */ |
||
35 | $negative = phpdbg_get_executable(); |
||
36 | |||
37 | foreach ($positive as $file => &$lines) { |
||
38 | $lines = array_fill_keys(array_keys($lines), 1); |
||
39 | } |
||
40 | |||
41 | foreach ($negative as $file => &$lines) { |
||
42 | $lines = array_fill_keys(array_keys($lines), -1); |
||
43 | } |
||
44 | |||
45 | return array_replace_recursive($negative, $positive); |
||
46 | } |
||
48 |