mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
|
||||
$Descr_string = snmp_get($device, "sysDescr.0", "-Oqv", "SNMPv2-MIB");
|
||||
$Descr_chopper = preg_split("/[ ]+/", "$Descr_string");
|
||||
$Descr_string = snmp_get($device, 'sysDescr.0', '-Oqv', 'SNMPv2-MIB');
|
||||
$Descr_chopper = preg_split('/[ ]+/', "$Descr_string");
|
||||
|
||||
$version = "Firmware " . $Descr_chopper[1];
|
||||
$hardware = $Descr_chopper[0] . " Rev. " . str_replace('"', "", snmp_get($device, "1.3.6.1.4.1.171.10.76.10.1.2.0", "-Oqv"));
|
||||
|
||||
?>
|
||||
$version = 'Firmware '.$Descr_chopper[1];
|
||||
$hardware = $Descr_chopper[0].' Rev. '.str_replace('"', '', snmp_get($device, '1.3.6.1.4.1.171.10.76.10.1.2.0', '-Oqv'));
|
||||
|
||||
Reference in New Issue
Block a user