Fix coding style part 2

This commit is contained in:
Job Snijders
2015-07-15 11:04:22 +02:00
parent ad9590df9b
commit d8693f05ae
733 changed files with 37338 additions and 33926 deletions
+7 -6
View File
@@ -1,9 +1,10 @@
<?php
if (!$os)
{
if (strstr($sysObjectId, ".1.3.6.1.4.1.30155.23.1")) { $os = "openbsd"; } # snmpd
if (preg_match("/OpenBSD/", $sysDescr)) { $os = "openbsd"; } # Net-SNMP
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.30155.23.1')) {
$os = 'openbsd';
} //end if
if (preg_match('/OpenBSD/', $sysDescr)) {
$os = 'openbsd';
} //end if
}
?>