Skip to content

Commit d1a8fa0

Browse files
authored
Merge pull request #442 from murrant/analysis-m0rJkW
Apply fixes from StyleCI
2 parents bd8b62e + 4bc6705 commit d1a8fa0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/Models/Port.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public function getDescription(): string
133133

134134
/**
135135
* Get port speeds, respecting parsed interface circuit speeds as bps
136+
*
136137
* @return array{int, int} [egress bps, ingress bps]
137138
*/
138139
public function getSpeeds(): array

includes/html/graphs/generic_data.inc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
$rrd_options .= ' LINE1:percentile_in#aa0000';
170170
$rrd_options .= ' LINE1:dpercentile_out#aa0000';
171171

172-
173172
$speed_line_type = ($vars['port_speed_zoom'] ?? LibrenmsConfig::get('graphs.port_speed_zoom')) ? 'LINE2' : 'HRULE';
174173
if ($egress_speed && $ingress_speed && $ingress_speed != $egress_speed) {
175174
$rrd_options .= " $speed_line_type:$ingress_speed#000000:'In Port Speed " . Number::formatSi($ingress_speed, 2, 0, 'bps') . "\\n'";

includes/polling/ports.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,12 +748,12 @@
748748
$port_parser ??= include LibrenmsConfig::get('install_dir') . '/' . LibrenmsConfig::get('port_descr_parser');
749749

750750
// handle functional style parsers
751-
if(is_callable($port_parser)) {
751+
if (is_callable($port_parser)) {
752752
$port_ifAlias = app()->call($port_parser, [
753-
'ifAlias' => $this_port['ifAlias'] ,
753+
'ifAlias' => $this_port['ifAlias'],
754754
'ifIndex' => $port['ifIndex'],
755755
'ifName' => $this_port['ifName'],
756-
'port_id' => $port['port_id']
756+
'port_id' => $port['port_id'],
757757
]);
758758
} else {
759759
unset($port_parser);

0 commit comments

Comments
 (0)