mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
Fix phpcs issues
This commit is contained in:
parent
d26a619577
commit
d30a56a385
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user