Skip to content

Commit b03cad1

Browse files
committed
IcingaDbGrapher: fix code style problems
1 parent 87d95e8 commit b03cad1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,9 @@ public function getPreviewHtml(Model $object, $report = false): ValidHtml
484484
// Add Link to Panel if the user has the permission
485485
if ($this->permission->hasPermission('grafana/showlink')) {
486486
$linkUrl = $url;
487-
if ( $this->dashboardLink ) {
487+
if ($this->dashboardLink) {
488488
$linkUrl = preg_replace('/(viewPanel=)[^&]+/', '', $linkUrl);
489-
}
490-
else {
489+
} else {
491490
$linkUrl = preg_replace('/(viewPanel=)[^&]+/', '${1}' . $panelid, $linkUrl);
492491
}
493492
$textLink = new Link('View in Grafana', $linkUrl, ['target' => '_blank', 'class' => 'external-link']);

0 commit comments

Comments
 (0)