From d9808ae9b719d905be5f9495c11cc2f3c178f00a Mon Sep 17 00:00:00 2001 From: Jennifer Mourek Date: Thu, 28 Jun 2018 11:45:06 +0200 Subject: [PATCH] Remove comment and fix codestyle --- application/forms/EditNodeForm.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/application/forms/EditNodeForm.php b/application/forms/EditNodeForm.php index 149361e..ba126b5 100644 --- a/application/forms/EditNodeForm.php +++ b/application/forms/EditNodeForm.php @@ -53,7 +53,7 @@ class EditNodeForm extends QuickForm if ($this->isService()) { $monitoredNodeType = 'service'; } else { - $monitoredNodeType = 'host'; + $monitoredNodeType = 'host'; } $type = $this->selectNodeType($monitoredNodeType); @@ -74,20 +74,10 @@ class EditNodeForm extends QuickForm $this->setSubmitLabel($this->translate('Next')); return; } -/* - $this->getElement('name')->setValue($this->getNode()->getName()); - if ($node->hasAlias()) { - $this->getElement('alias')->setValue($this->getNode()->getAlias()); - } - $this->getElement('operator')->setValue($this->getNode()->getOperator()); - $this->getElement('display')->setValue($this->getNode()->getDisplay()); - if ($node->hasInfoUrl()) { - $this->getElement('url')->setValue($this->getNode()->getInfoUrl()); - } -*/ } - protected function isService() { + protected function isService() + { if (strpos($this->getNode()->getName(), ';Hoststatus')) { return false; }