mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12120)
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
*/
|
||||
|
||||
$component = new LibreNMS\Component();
|
||||
$components = $component->getComponents($device['device_id'], array('filter' => array('ignore' => array('=', 0))));
|
||||
$components = $component->getComponents($device['device_id'], ['filter' => ['ignore' => ['=', 0]]]);
|
||||
|
||||
// We only care about our device id.
|
||||
$components = $components[$device['device_id']];
|
||||
|
||||
// We extracted all the components for this device, now lets only get the GTM Pools
|
||||
$keep = array();
|
||||
$types = array($module, 'f5-gtm-pool');
|
||||
$keep = [];
|
||||
$types = [$module, 'f5-gtm-pool'];
|
||||
foreach ($components as $k => $v) {
|
||||
foreach ($types as $type) {
|
||||
if ($v['type'] == $type) {
|
||||
|
Reference in New Issue
Block a user