mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34: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()
|
&& $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();
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user