diff --git a/application/controllers/HostController.php b/application/controllers/HostController.php index d5acdfc7..33b5ba5e 100644 --- a/application/controllers/HostController.php +++ b/application/controllers/HostController.php @@ -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(); diff --git a/library/Director/Integration/MonitoringModule/Monitoring.php b/library/Director/Integration/MonitoringModule/Monitoring.php index 82ea9968..cb574feb 100644 --- a/library/Director/Integration/MonitoringModule/Monitoring.php +++ b/library/Director/Integration/MonitoringModule/Monitoring.php @@ -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; }