@@ -72,7 +72,7 @@ |
||
72 | 72 | { |
73 | 73 | $this->socket->open(); |
74 | 74 | |
75 | - $metrics = array_map(function (MetricInterface $metric) { |
|
75 | + $metrics = array_map(function(MetricInterface $metric) { |
|
76 | 76 | return $metric->getData(); |
77 | 77 | }, $this->queue); |
78 | 78 |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * @param String[] $data |
103 | 103 | * @param int $maxLength |
104 | 104 | * @param string $glue |
105 | - * @return array<array<int,string>> |
|
105 | + * @return string[] |
|
106 | 106 | */ |
107 | 107 | protected function fillPackets(array $data, $maxLength, $glue = "\n") |
108 | 108 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | if (!empty($this->tags)) { |
31 | 31 | $tags = []; |
32 | 32 | |
33 | - array_walk($this->tags, function ($v, $k) { |
|
33 | + array_walk($this->tags, function($v, $k) { |
|
34 | 34 | $tags[] = is_integer($k) ? $v : $k . ':' . $v; |
35 | 35 | }); |
36 | 36 |
@@ -11,26 +11,31 @@ |
||
11 | 11 | * @param string $key |
12 | 12 | * @param mixed $value |
13 | 13 | * @param string $type |
14 | + * @return void |
|
14 | 15 | */ |
15 | 16 | public function __construct($key, $value, $type); |
16 | 17 | |
17 | 18 | /** |
18 | 19 | * @param string $key |
20 | + * @return void |
|
19 | 21 | */ |
20 | 22 | public function setKey($key); |
21 | 23 | |
22 | 24 | /** |
23 | 25 | * @param mixed $value |
26 | + * @return void |
|
24 | 27 | */ |
25 | 28 | public function setValue($value); |
26 | 29 | |
27 | 30 | /** |
28 | 31 | * @param string $type |
32 | + * @return void |
|
29 | 33 | */ |
30 | 34 | public function setType($type); |
31 | 35 | |
32 | 36 | /** |
33 | 37 | * @param float $sampleRate |
38 | + * @return void |
|
34 | 39 | */ |
35 | 40 | public function setSampleRate($sampleRate); |
36 | 41 |