Values   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A trkValues() 0 3 2
1
<?php
2
/**
3
 * Trunking of "counter" and "gauge"
4
 * User: moyo
5
 * Date: 2018/5/19
6
 * Time: 1:18 PM
7
 */
8
9
namespace Carno\Monitor\Chips\Trunks;
10
11
trait Values
12
{
13
    /**
14
     * @param array $input
15
     * @param array $output
16
     */
17
    protected function trkValues(array $input, array &$output) : void
18
    {
19
        empty($output) ? $output = $input : $output['value'] += $input['value'];
20
    }
21
}
22