Skip to content

Commit

Permalink
Fix phpcs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Nov 21, 2023
1 parent cbf4541 commit 14996f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 8 additions & 7 deletions application/controllers/HostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,13 +597,14 @@ protected function addOptionalMonitoringLink()
&& $host->isObject()
&& $backend->hasHost($host->getObjectName())
) {
$this->actions()->add(Link::create($this->translate('Show'),
$backend->getHostUrl($host->getObjectName()),
null,
[
'class' => 'icon-globe critical',
'data-base-target' => '_next'
]));
$this->actions()->add(
Link::create(
$this->translate('Show'),
$backend->getHostUrl($host->getObjectName()),
null,
['class' => 'icon-globe critical', 'data-base-target' => '_next']
)
);

// Intentionally placed here, show it only for deployed Hosts
$this->addOptionalInspectLink();
Expand Down
6 changes: 5 additions & 1 deletion library/Director/Integration/MonitoringModule/Monitoring.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public function hasService(?string $hostName, ?string $serviceName): bool
}

try {
return $this->rowIsService($this->selectService($hostName, $serviceName)->fetchRow(), $hostName, $serviceName);
return $this->rowIsService(
$this->selectService($hostName, $serviceName)->fetchRow(),
$hostName,
$serviceName
);
} catch (Exception $_) {
return false;
}
Expand Down

0 comments on commit 14996f5

Please sign in to comment.