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() && $host->isObject()
&& $backend->hasHost($host->getObjectName()) && $backend->hasHost($host->getObjectName())
) { ) {
$this->actions()->add(Link::create($this->translate('Show'), $this->actions()->add(
$backend->getHostUrl($host->getObjectName()), Link::create(
null, $this->translate('Show'),
[ $backend->getHostUrl($host->getObjectName()),
'class' => 'icon-globe critical', null,
'data-base-target' => '_next' ['class' => 'icon-globe critical', 'data-base-target' => '_next']
])); )
);
// Intentionally placed here, show it only for deployed Hosts // Intentionally placed here, show it only for deployed Hosts
$this->addOptionalInspectLink(); $this->addOptionalInspectLink();

View File

@ -62,7 +62,11 @@ class Monitoring implements BackendInterface
} }
try { try {
return $this->rowIsService($this->selectService($hostName, $serviceName)->fetchRow(), $hostName, $serviceName); return $this->rowIsService(
$this->selectService($hostName, $serviceName)->fetchRow(),
$hostName,
$serviceName
);
} catch (Exception $_) { } catch (Exception $_) {
return false; return false;
} }