Apply "Squiz" code style on old (pre-2014) files

This commit is contained in:
Job Snijders
2015-07-11 16:12:35 +02:00
parent e4f4eb44dc
commit ebd0f6fc35
539 changed files with 13587 additions and 13219 deletions
+13 -9
View File
@@ -1,15 +1,19 @@
<?php
#FIXME snmp_ function!
$hardware = trim(exec($config['snmpget'] . " -M ".$config['mibdir'] . " -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB " . snmp_gen_auth($device) . " " .
$device['hostname'].":".$device['port'] . " sysObjectID.0"));
// FIXME snmp_ function!
$hardware = trim(
exec(
$config['snmpget'].' -M '.$config['mibdir'].' -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB '.snmp_gen_auth($device).' '.$device['hostname'].':'.$device['port'].' sysObjectID.0'
)
);
$hardware = rewrite_ironware_hardware($hardware);
$version = trim(exec($config['snmpget'] . " -M ".$config['mibdir'] . " -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB " . snmp_gen_auth($device) . " " .
$device['hostname'].":".$device['port'] . " snAgBuildVer.0"));
$version = trim(
exec(
$config['snmpget'].' -M '.$config['mibdir'].' -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB '.snmp_gen_auth($device).' '.$device['hostname'].':'.$device['port'].' snAgBuildVer.0'
)
);
$version = str_replace("V", "", $version);
$version = str_replace("\"", "", $version);
?>
$version = str_replace('V', '', $version);
$version = str_replace('"', '', $version);