diff --git a/modules/monitoring/application/forms/Command/Instance/ToggleInstanceFeaturesCommandForm.php b/modules/monitoring/application/forms/Command/Instance/ToggleInstanceFeaturesCommandForm.php
index 9b3f79801..883a11a35 100644
--- a/modules/monitoring/application/forms/Command/Instance/ToggleInstanceFeaturesCommandForm.php
+++ b/modules/monitoring/application/forms/Command/Instance/ToggleInstanceFeaturesCommandForm.php
@@ -27,7 +27,7 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
*/
public function init()
{
- $this->setAttrib('class', 'inline');
+ $this->setAttrib('class', 'inline instance-features');
}
/**
@@ -60,19 +60,19 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
public function createElements(array $formData = array())
{
if ((bool) $this->status->notifications_enabled) {
- $description = sprintf(
+ $notificationDescription = sprintf(
'%s',
mt('monitoring', 'Disable notifications for a specific time on a program-wide basis'),
$this->getView()->href('monitoring/process/disable-notifications'),
mt('monitoring', 'Disable temporarily')
);
} elseif ($this->status->disable_notif_expire_time) {
- $description = sprintf(
+ $notificationDescription = sprintf(
mt('monitoring', 'Notifications will be re-enabled in %s'),
$this->getView()->timeUntil($this->status->disable_notif_expire_time)
);
} else {
- $description = '';
+ $notificationDescription = null;
}
$this->addElements(array(
array(
@@ -113,17 +113,17 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
array(
'label' => mt('monitoring', 'Notifications Enabled'),
'autosubmit' => true,
- 'description' => $description,
+ 'description' => $notificationDescription,
'decorators' => array(
'ViewHelper',
'Errors',
array(
'Description',
- array('tag' => 'span', 'class' => 'feature-instance-notifications', 'escape' => false)
+ array('tag' => 'span', 'class' => 'description', 'escape' => false)
),
'Label',
array('HtmlTag', array('tag' => 'div'))
- ),
+ )
)
),
array(
diff --git a/modules/monitoring/library/Monitoring/Command/Transport/CommandTransportInterface.php b/modules/monitoring/library/Monitoring/Command/Transport/CommandTransportInterface.php
index 5f0908fa3..21b532d49 100644
--- a/modules/monitoring/library/Monitoring/Command/Transport/CommandTransportInterface.php
+++ b/modules/monitoring/library/Monitoring/Command/Transport/CommandTransportInterface.php
@@ -7,4 +7,6 @@ namespace Icinga\Module\Monitoring\Command\Transport;
/**
* Interface for Icinga command transports
*/
-interface CommandTransportInterface {}
+interface CommandTransportInterface
+{
+}
diff --git a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
index c019106cc..fad4eb0a2 100644
--- a/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
+++ b/modules/monitoring/library/Monitoring/Command/Transport/RemoteCommandFile.php
@@ -183,13 +183,13 @@ class RemoteCommandFile implements CommandTransportInterface
$this->path
)
);
- $ssh = sprintf('ssh -o BatchMode=yes -p %u', $this->port); // -o BatchMode=yes for disabling interactive
- // authentication methods
+ $ssh = sprintf('ssh -o BatchMode=yes -p %u', $this->port);
+ // -o BatchMode=yes for disabling interactive authentication methods
if (isset($this->user)) {
$ssh .= sprintf(' -l %s', escapeshellarg($this->user));
}
$ssh .= sprintf(
- ' %s "echo %s > %s" 2>&1', // Redirect stderr to stdout
+ ' %s "echo %s > %s" 2>&1', // Redirect stderr to stdout
escapeshellarg($this->host),
escapeshellarg($commandString),
escapeshellarg($this->path)