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:
@@ -7,8 +7,7 @@ require 'includes/graphs/common.inc.php';
|
||||
if ($format == 'octets' || $format == 'bytes') {
|
||||
$units = 'Bps';
|
||||
$format = 'octets';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$units = 'bps';
|
||||
$format = 'bits';
|
||||
}
|
||||
@@ -19,8 +18,7 @@ foreach ($rrd_filenames as $key => $rrd_filename) {
|
||||
if ($rrd_inverted[$key]) {
|
||||
$in = 'out';
|
||||
$out = 'in';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$in = 'in';
|
||||
$out = 'out';
|
||||
}
|
||||
@@ -52,8 +50,7 @@ if ($i) {
|
||||
if ($inverse) {
|
||||
$in = 'out';
|
||||
$out = 'in';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$in = 'in';
|
||||
$out = 'out';
|
||||
}
|
||||
@@ -85,8 +82,7 @@ if ($i) {
|
||||
// $rrd_options .= " LINE1.25:in".$format."#".$colour_line_in.":";
|
||||
$rrd_options .= ' AREA:dout'.$format.'#'.$colour_area_out.':';
|
||||
// $rrd_options .= " LINE1.25:dout".$format."#".$colour_line_out.":";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$rrd_options .= " COMMENT:'bps Now Ave Max 95th %\\n'";
|
||||
$rrd_options .= ' AREA:in'.$format.'#'.$colour_area_in.':In ';
|
||||
// $rrd_options .= " LINE1.25:in".$format."#".$colour_line_in.":In\ ";
|
||||
|
Reference in New Issue
Block a user