mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
3c0fcdd46b
commit
9284bc60ff
@@ -39,12 +39,11 @@ if (strpos($sysdescr_value, 'IBM Networking Operating System') !== false) {
|
||||
if (empty($serial)) {
|
||||
$serial = trim(snmp_get($device, '.1.3.6.1.2.1.47.1.1.1.1.11.1', '-Ovq'), '" ');
|
||||
}
|
||||
}
|
||||
else if (strpos($sysdescr_value, 'IBM Flex System Fabric') !== false) {
|
||||
} elseif (strpos($sysdescr_value, 'IBM Flex System Fabric') !== false) {
|
||||
$hardware = str_replace('IBM Flex System Fabric', '', $sysdescr_value);
|
||||
$version = trim(snmp_get($device, '.1.3.6.1.2.1.47.1.1.1.1.10.1', '-Ovq'), '" ');
|
||||
$serial = trim(snmp_get($device, '.1.3.6.1.2.1.47.1.1.1.1.11.1', '-Ovq'), '" ');
|
||||
}//end if
|
||||
else if (strpos($sysdescr_value, 'IBM Networking OS 1/10Gb Uplink Ethernet Switch Module') !== false) {
|
||||
} //end if
|
||||
elseif (strpos($sysdescr_value, 'IBM Networking OS 1/10Gb Uplink Ethernet Switch Module') !== false) {
|
||||
$hardware = "IBM BladeCenter 1/10Gb Uplink Ethernet Switch Module";
|
||||
}//end if
|
||||
|
Reference in New Issue
Block a user