@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | return $metric; |
52 | 52 | } |
53 | 53 | |
54 | - throw new \BadMethodCallException('No such StatsD factory method: ' . $name); |
|
54 | + throw new \BadMethodCallException('No such StatsD factory method: '.$name); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | |
@@ -105,13 +105,13 @@ discard block |
||
105 | 105 | $size = 0; |
106 | 106 | |
107 | 107 | foreach ($data as $metric) { |
108 | - $len = strlen($glue . $metric); |
|
108 | + $len = strlen($glue.$metric); |
|
109 | 109 | |
110 | 110 | if (($size + $len) > $maxLength) { |
111 | 111 | $result[++$index] = $metric; // Fill the next part of the result |
112 | 112 | $size = $len; |
113 | 113 | } else { |
114 | - $result[$index] .= ($size != 0 ? $glue : '') . $metric; |
|
114 | + $result[$index] .= ($size != 0 ? $glue : '').$metric; |
|
115 | 115 | $size += $len; |
116 | 116 | } |
117 | 117 | } |
@@ -31,10 +31,10 @@ |
||
31 | 31 | $tags = []; |
32 | 32 | |
33 | 33 | array_walk($this->tags, function ($tagValue, $tagName) use (&$tags) { |
34 | - $tags[] = is_integer($tagName) ? $tagValue : $tagName . ':' . $tagValue; |
|
34 | + $tags[] = is_integer($tagName) ? $tagValue : $tagName.':'.$tagValue; |
|
35 | 35 | }); |
36 | 36 | |
37 | - $result .= '|#' . implode(',', $tags); |
|
37 | + $result .= '|#'.implode(',', $tags); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | return $result; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $result = sprintf('%s:%s|%s', $this->key, $this->value, $this->type); |
42 | 42 | |
43 | 43 | if ($this->sampleRate < 1.0) { |
44 | - $result .= '|@' . $this->sampleRate; |
|
44 | + $result .= '|@'.$this->sampleRate; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | return $result; |