Apply fixes from StyleCI (#12124)

This commit is contained in:
Jellyfrog
2020-09-21 15:59:34 +02:00
committed by GitHub
parent 0d56bbd946
commit 29f45ca352
816 changed files with 5038 additions and 5038 deletions

View File

@@ -33,7 +33,7 @@ $polled_services = 0;
$where = '';
if ($options['h']) {
if (is_numeric($options['h'])) {
$where = "AND `S`.`device_id` = " . $options['h'];
$where = 'AND `S`.`device_id` = ' . $options['h'];
} else {
if (preg_match('/\*/', $options['h'])) {
$where = "AND `hostname` LIKE '" . str_replace('*', '%', mres($options['h'])) . "'";
@@ -79,7 +79,7 @@ $poller_end = microtime(true);
$poller_run = ($poller_end - $poller_start);
$poller_time = substr($poller_run, 0, 5);
$string = $argv[0] . " " . date(\LibreNMS\Config::get('dateformat.compact'))
$string = $argv[0] . ' ' . date(\LibreNMS\Config::get('dateformat.compact'))
. " - $polled_services services polled in $poller_time secs";
d_echo("$string\n");