mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now. Fixed all errors, left most warnings.
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
|
||||
if ($device['status'] == '0') {
|
||||
$class = 'alert-danger';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$class = '';
|
||||
}
|
||||
|
||||
@@ -40,11 +39,9 @@ echo '
|
||||
|
||||
if (isset($config['os'][$device['os']]['over'])) {
|
||||
$graphs = $config['os'][$device['os']]['over'];
|
||||
}
|
||||
else if (isset($device['os_group']) && isset($config['os'][$device['os_group']]['over'])) {
|
||||
} elseif (isset($device['os_group']) && isset($config['os'][$device['os_group']]['over'])) {
|
||||
$graphs = $config['os'][$device['os_group']]['over'];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$graphs = $config['os']['default']['over'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user