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

@@ -12,14 +12,13 @@
*/
if ($device['os_group'] == "cisco") {
$module = 'Cisco-CBQOS';
$component = new LibreNMS\Component();
$options['filter']['type'] = array('=',$module);
$options['filter']['disabled'] = array('=',0);
$options['filter']['ignore'] = array('=',0);
$components = $component->getComponents($device['device_id'],$options);
$components = $component->getComponents($device['device_id'], $options);
// We only care about our device id.
$components = $components[$device['device_id']];
@@ -64,9 +63,8 @@ if ($device['os_group'] == "cisco") {
data_update($device, 'cbqos', $tags, $fields);
}
} // End foreach components
} // end if count components
// Clean-up after yourself!
unset($type, $components, $component, $options, $module);
unset($type, $components, $component, $options, $module);
}