Fix closing tag best practice, tidy formatting

This commit is contained in:
Paul Gear
2015-07-11 12:16:30 +10:00
parent 88035373d3
commit c3c11c26f1
6 changed files with 15 additions and 24 deletions

View File

@@ -11,7 +11,7 @@
*/
if (!$os) {
if (preg_match("/^Meraki MR/", $sysDescr)) { $os = "merakimr"; }
if (preg_match("/^Meraki MR/", $sysDescr)) {
$os = "merakimr";
}
}
?>

View File

@@ -11,7 +11,7 @@
*/
if (!$os) {
if (preg_match("/^Meraki MS/", $sysDescr)) { $os = "merakims"; }
if (preg_match("/^Meraki MS/", $sysDescr)) {
$os = "merakims";
}
}
?>

View File

@@ -11,7 +11,7 @@
*/
if (!$os) {
if (preg_match("/^Meraki MX/", $sysDescr)) { $os = "merakimx"; }
if (preg_match("/^Meraki MX/", $sysDescr)) {
$os = "merakimx";
}
}
?>

View File

@@ -10,9 +10,6 @@
* the source code distribution for details.
*/
if(empty($hardware)) {
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
if (empty($hardware)) {
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
}
?>

View File

@@ -10,9 +10,6 @@
* the source code distribution for details.
*/
if(empty($hardware)) {
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
if (empty($hardware)) {
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
}
?>

View File

@@ -10,9 +10,6 @@
* the source code distribution for details.
*/
if(empty($hardware)) {
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
if (empty($hardware)) {
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
}
?>