Some more linting thanks to scrutinizer-ci

This commit is contained in:
jgen
2014-04-19 01:18:49 -04:00
parent f72bfbb050
commit bdf49b33cb
6 changed files with 15 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ class StatsDInterface extends Extension {
// Wrap this in a try/catch - failures in any of this should be silently ignored
try {
$parts = explode(":", STATSD_HOST);
$parts = explode(":", STATSD_HOST);
$host = $parts[0];
$port = $parts[1];
$fp = fsockopen("udp://$host", $port, $errno, $errstr);
@@ -109,6 +109,7 @@ class StatsDInterface extends Extension {
}
fclose($fp);
} catch (Exception $e) {
// ignore any failures.
}
}
}