Fix phpcs issues

This commit is contained in:
Sukhwinder Dhillon 2023-11-21 14:22:28 +01:00
parent d26a619577
commit d30a56a385
2 changed files with 13 additions and 8 deletions

View File

@ -597,13 +597,14 @@ class HostController extends ObjectController
&& $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();

View File

@ -62,7 +62,11 @@ class Monitoring implements BackendInterface
}
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;
}