This commit is contained in:
Shish
2023-11-11 21:49:12 +00:00
parent 848797030e
commit fd1bb21f9d
235 changed files with 1551 additions and 1591 deletions

View File

@@ -74,7 +74,7 @@ class StatsDInterface extends Extension
return 99;
}
private function send(array $data, float $sampleRate=1)
private function send(array $data, float $sampleRate = 1)
{
if (!STATSD_HOST) {
return;
@@ -103,7 +103,7 @@ class StatsDInterface extends Extension
$host = $parts[0];
$port = (int)$parts[1];
$fp = fsockopen("udp://$host", $port, $errno, $errstr);
if (! $fp) {
if (!$fp) {
return;
}
foreach ($sampledData as $stat => $value) {