@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * Get Port |
| 217 | 217 | * |
| 218 | - * @return string Port |
|
| 218 | + * @return integer Port |
|
| 219 | 219 | */ |
| 220 | 220 | public function getPort() |
| 221 | 221 | { |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | * @param float $time Time in milliseconds |
| 293 | 293 | * @param array $tags List of tags for this metric |
| 294 | 294 | * |
| 295 | - * @return bool True if data transfer is successful |
|
| 295 | + * @return Client|null True if data transfer is successful |
|
| 296 | 296 | */ |
| 297 | 297 | public function timing($metric, $time, array $tags = []) |
| 298 | 298 | { |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | * @param callable $func Function to record |
| 312 | 312 | * @param array $tags List of tags for this metric |
| 313 | 313 | * |
| 314 | - * @return bool True if data transfer is successful |
|
| 314 | + * @return Client|null True if data transfer is successful |
|
| 315 | 315 | */ |
| 316 | 316 | public function time($metric, $func, array $tags = []) |
| 317 | 317 | { |
@@ -428,7 +428,7 @@ |
||
| 428 | 428 | $prefix = $this->namespace ? $this->namespace . '.' : ''; |
| 429 | 429 | $value = sprintf('_sc|%s|%d', $prefix . $name, $status); |
| 430 | 430 | |
| 431 | - $applyMetadata = function ($metadata, $definition) use (&$value) { |
|
| 431 | + $applyMetadata = function($metadata, $definition) use (&$value) { |
|
| 432 | 432 | foreach ($metadata as $key => $data) { |
| 433 | 433 | if (isset($definition[$key])) { |
| 434 | 434 | $value .= sprintf('|%s:%s', $definition[$key], $data); |