Update code in includes to be PSR-2 compliant (#4220)

refactor: Update code in /includes to be psr2 compliant #4220
This commit is contained in:
Tony Murray
2016-08-28 12:32:58 -05:00
committed by Neil Lathwood
parent 3c0fcdd46b
commit 9284bc60ff
373 changed files with 3509 additions and 3498 deletions

View File

@@ -9,8 +9,7 @@ foreach (dbFetchRows('SELECT * FROM processors WHERE device_id = ?', array($devi
$file = $config['install_dir'].'/includes/polling/processors/'. $processor_type .'.inc.php';
if (is_file($file)) {
include $file;
}
else {
} else {
$proc = snmp_get($device, $processor['processor_oid'], '-O Uqnv', '""');
}
@@ -32,7 +31,7 @@ foreach (dbFetchRows('SELECT * FROM processors WHERE device_id = ?', array($devi
);
$tags = compact('processor_type', 'processor_index', 'rrd_name', 'rrd_def');
data_update($device,'processors',$tags,$fields);
data_update($device, 'processors', $tags, $fields);
dbUpdate(array('processor_usage' => $proc), 'processors', '`processor_id` = ?', array($processor['processor_id']));
}//end foreach