@@ -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 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | if (!empty($this->tags)) { |
31 | 31 | $tags = []; |
32 | 32 | |
33 | - array_walk($this->tags, function ($tagValue, $tagName) use (&$tags) { |
|
33 | + array_walk($this->tags, function($tagValue, $tagName) use (&$tags) { |
|
34 | 34 | $tags[] = is_integer($tagName) ? $tagValue : $tagName . ':' . $tagValue; |
35 | 35 | }); |
36 | 36 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param string $data |
47 | - * @return int|null Number of bytes written |
|
47 | + * @return integer Number of bytes written |
|
48 | 48 | */ |
49 | 49 | public function write($data) |
50 | 50 | { |
@@ -11,6 +11,7 @@ |
||
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 |