Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
54 | 2 | private function getTotals(array $metrics): array |
|
55 | { |
||
56 | 2 | $totalElements = 0; |
|
57 | 2 | $checkedElements = 0; |
|
58 | |||
59 | 2 | foreach ($metrics as $metric) { |
|
60 | 2 | $totalElements += (int)$metric['elements']; |
|
61 | 2 | $checkedElements += (int)$metric['coveredelements']; |
|
62 | } |
||
63 | 2 | return [$totalElements, $checkedElements]; |
|
64 | } |
||
66 |