Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | protected function trkHistogram(array $input, array &$output) : void |
||
18 | { |
||
19 | if (empty($output)) { |
||
20 | $output = $input; |
||
21 | return; |
||
22 | } |
||
23 | |||
24 | $output['count'] += $input['count']; |
||
25 | $output['sum'] += $input['sum']; |
||
26 | |||
27 | foreach ($input['buckets'] as $idx => $bucket) { |
||
28 | $output['buckets'][$idx][1] += $bucket[1]; |
||
29 | } |
||
32 |