From 75f81a161ae81e61d6ebd4795a06447c6c6a58cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= <blaeul@quodata.de> Date: Sat, 4 Apr 2020 15:24:38 +0200 Subject: [PATCH] Formated code; no functional changes --- src/De/Uniwue/RZ/Api/Icinga2/Icinga2.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/De/Uniwue/RZ/Api/Icinga2/Icinga2.php b/src/De/Uniwue/RZ/Api/Icinga2/Icinga2.php index c1673fa..10bdd48 100644 --- a/src/De/Uniwue/RZ/Api/Icinga2/Icinga2.php +++ b/src/De/Uniwue/RZ/Api/Icinga2/Icinga2.php @@ -273,21 +273,21 @@ public function getHostAcknowledgement($hostName = false, $withHttps = true) { $joins = [ - "host.name", - "host.acknowledgement", + "host.name", + "host.acknowledgement", "host.acknowledgement_expiry", ]; - + $filterString = 'comment.entry_type==4 && comment.service_name==""'; - - if($hostName !== false) { - $filterString .= ' && host.name=="'.$hostName.'"'; + + if ($hostName !== false) { + $filterString .= ' && host.name=="' . $hostName . '"'; } - + $filter = [ $filterString ]; - + return $this->getComments($filter, [], $joins, $withHttps); }