mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Apply "Squiz" code style on old (pre-2014) files
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
<?php
|
||||
|
||||
# SNMPv2-SMI::enterprises.18334.1.1.1.1.6.2.1.0 = STRING: "KONICA MINOLTA magicolor 4650"
|
||||
$hardware = trim(snmp_get($device, "1.3.6.1.4.1.18334.1.1.1.1.6.2.1.0", "-OQv", "", ""),'" ');
|
||||
// SNMPv2-SMI::enterprises.18334.1.1.1.1.6.2.1.0 = STRING: "KONICA MINOLTA magicolor 4650"
|
||||
$hardware = trim(snmp_get($device, '1.3.6.1.4.1.18334.1.1.1.1.6.2.1.0', '-OQv', '', ''), '" ');
|
||||
|
||||
# SNMPv2-SMI::enterprises.18334.1.1.1.1.6.1.0 = STRING: "1.74"
|
||||
$version = trim(snmp_get($device, "1.3.6.1.4.1.18334.1.1.1.1.6.1.0", "-OQv", "", ""),'" ');
|
||||
// SNMPv2-SMI::enterprises.18334.1.1.1.1.6.1.0 = STRING: "1.74"
|
||||
$version = trim(snmp_get($device, '1.3.6.1.4.1.18334.1.1.1.1.6.1.0', '-OQv', '', ''), '" ');
|
||||
|
||||
# Strip off useless brand fields
|
||||
$hardware = str_ireplace('KONICA MINOLTA ','',$hardware);
|
||||
// Strip off useless brand fields
|
||||
$hardware = str_ireplace('KONICA MINOLTA ', '', $hardware);
|
||||
$hardware = ucfirst($hardware);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user