mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI * Disable style check
This commit is contained in:
@@ -51,7 +51,6 @@ class Rrd extends BaseValidation
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if (Config::get('rrdcached')) {
|
||||
self::checkRrdcached($validator);
|
||||
} else {
|
||||
@@ -70,10 +69,10 @@ class Rrd extends BaseValidation
|
||||
|
||||
public static function checkRrdcached(Validator $validator)
|
||||
{
|
||||
list($host,$port) = explode(':', Config::get('rrdcached'));
|
||||
[$host,$port] = explode(':', Config::get('rrdcached'));
|
||||
if ($host == 'unix') {
|
||||
// Using socket, check that file exists
|
||||
if (!file_exists($port)) {
|
||||
if (! file_exists($port)) {
|
||||
$validator->fail("$port doesn't appear to exist, rrdcached test failed");
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user