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:
@@ -65,9 +65,8 @@ if ($vars['view'] == 'incoming') {
|
||||
$hostname = str_replace('.rrd', '', $host);
|
||||
$host = device_by_name($src);
|
||||
if ($config['smokeping']['integration'] === true) {
|
||||
$dest = device_by_name(str_replace("_",".",$hostname));
|
||||
}
|
||||
else {
|
||||
$dest = device_by_name(str_replace("_", ".", $hostname));
|
||||
} else {
|
||||
$dest = $host;
|
||||
}
|
||||
if (is_numeric($host['device_id'])) {
|
||||
@@ -83,8 +82,7 @@ if ($vars['view'] == 'incoming') {
|
||||
}
|
||||
}
|
||||
}//end if
|
||||
}
|
||||
else if ($vars['view'] == 'outgoing') {
|
||||
} elseif ($vars['view'] == 'outgoing') {
|
||||
if (count($smokeping_files['out'][$device['hostname']])) {
|
||||
$graph_array['type'] = 'device_smokeping_out_all_avg';
|
||||
$graph_array['device'] = $device['device_id'];
|
||||
|
||||
Reference in New Issue
Block a user