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
+6 -11
View File
@@ -1,20 +1,15 @@
<?php
$serial = "";
#list(,$hardware,) = explode(" ", $hardware);
$serial = '';
// list(,$hardware,) = explode(" ", $hardware);
$hardware = $poll_device['sysDescr'];
$features = "";
$features = '';
// Filthy hack to get software version. may not work on anything but 585v7 :)
$loop = shell_exec($config['snmpget'].' -M '.$config['mibdir'].' -Ovq '.snmp_gen_auth($device).' '.$device['hostname'].' ifDescr.101');
$loop = shell_exec($config['snmpget'] . " -M ".$config['mibdir'] . ' -Ovq '. snmp_gen_auth($device) .' '.$device['hostname'].' ifDescr.101');
if ($loop)
{
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i',
$loop, $matches);
if ($loop) {
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i', $loop, $matches);
$version = $matches[1];
}
?>