From cd1fb2e4b54a4bebd933abb5e10e1eed6bd50b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannis=20Mo=C3=9Fhammer?= Date: Tue, 20 Aug 2013 18:08:56 +0200 Subject: [PATCH] Capitalization, smaleler codestyle fixes refs #3776 --- .../controllers/ConfigController.php | 10 ++++----- .../forms/Config/ConfirmRemovalForm.php | 2 +- .../views/scripts/config/editbackend.phtml | 4 ++-- .../views/scripts/config/editinstance.phtml | 4 ++-- .../views/scripts/config/index.phtml | 22 +++++++++++-------- .../views/scripts/config/removebackend.phtml | 2 +- .../views/scripts/config/removeinstance.phtml | 2 +- 7 files changed, 25 insertions(+), 21 deletions(-) diff --git a/modules/monitoring/application/controllers/ConfigController.php b/modules/monitoring/application/controllers/ConfigController.php index 1408285ea..f10a10f3c 100644 --- a/modules/monitoring/application/controllers/ConfigController.php +++ b/modules/monitoring/application/controllers/ConfigController.php @@ -59,7 +59,7 @@ class Monitoring_ConfigController extends BaseConfigController { 'backends' => new Tab(array( 'name' => 'backends', 'title' => 'Monitoring Backends', - 'url' => Url::fromPath('/monitoring/config/backend') + 'url' => Url::fromPath('/monitoring/config') )) ); } @@ -81,7 +81,7 @@ class Monitoring_ConfigController extends BaseConfigController { { $backend = $this->getParam('backend'); if (!$this->isExistingBackend($backend)) { - $this->view->error = "Unknown backend " . htmlentities($backend); + $this->view->error = 'Unknown backend ' . $backend; return; } $backendForm = new EditBackendForm(); @@ -135,7 +135,7 @@ class Monitoring_ConfigController extends BaseConfigController { { $backend = $this->getParam('backend'); if (!$this->isExistingBackend($backend)) { - $this->view->error = "Unknown backend " . $backend; + $this->view->error = 'Unknown backend ' . $backend; return; } $form = new ConfirmRemovalForm(); @@ -166,7 +166,7 @@ class Monitoring_ConfigController extends BaseConfigController { { $instance = $this->getParam('instance'); if (!$this->isExistingInstance($instance)) { - $this->view->error = "Unknown instance " . $instance; + $this->view->error = 'Unknown instance ' . $instance; return; } @@ -197,7 +197,7 @@ class Monitoring_ConfigController extends BaseConfigController { { $instance = $this->getParam('instance'); if (!$this->isExistingInstance($instance)) { - $this->view->error = "Unknown instance " . htmlentities($instance); + $this->view->error = 'Unknown instance ' . htmlentities($instance); return; } $form = new EditInstanceForm(); diff --git a/modules/monitoring/application/forms/Config/ConfirmRemovalForm.php b/modules/monitoring/application/forms/Config/ConfirmRemovalForm.php index f01ad9755..5a45bb9b1 100644 --- a/modules/monitoring/application/forms/Config/ConfirmRemovalForm.php +++ b/modules/monitoring/application/forms/Config/ConfirmRemovalForm.php @@ -78,6 +78,6 @@ class ConfirmRemovalForm extends Form 'required' => true ) ); - $this->setSubmitLabel('Confirm removal'); + $this->setSubmitLabel('Confirm Removal'); } } diff --git a/modules/monitoring/application/views/scripts/config/editbackend.phtml b/modules/monitoring/application/views/scripts/config/editbackend.phtml index ea3ef0837..0760a73a6 100644 --- a/modules/monitoring/application/views/scripts/config/editbackend.phtml +++ b/modules/monitoring/application/views/scripts/config/editbackend.phtml @@ -1,8 +1,8 @@ tabs->render($this); ?> name): ?> -

Edit backend escape($this->name) ?>

+

Edit Backend "escape($this->name) ?>"

-

Create new backend

+

Create New Backend

error): ?> diff --git a/modules/monitoring/application/views/scripts/config/editinstance.phtml b/modules/monitoring/application/views/scripts/config/editinstance.phtml index 674a5abb5..deb0b36fd 100644 --- a/modules/monitoring/application/views/scripts/config/editinstance.phtml +++ b/modules/monitoring/application/views/scripts/config/editinstance.phtml @@ -1,9 +1,9 @@ tabs->render($this); ?> name)): ?> -

Edit instance configuration for escape($this->name) ?>

+

Edit Instance Configuration for "escape($this->name) ?>"

-

Configure new icinga instance

+

Configure New Icinga Instance

error): ?> diff --git a/modules/monitoring/application/views/scripts/config/index.phtml b/modules/monitoring/application/views/scripts/config/index.phtml index 0dd2c99f4..2cb8c58df 100644 --- a/modules/monitoring/application/views/scripts/config/index.phtml +++ b/modules/monitoring/application/views/scripts/config/index.phtml @@ -4,7 +4,9 @@

Backends

- Create new backend + + Create New Backend +

@@ -13,13 +15,13 @@ $backendName)); ?> $backendName)); ?> escape($backendName); ?> - (Type: escape($config["type"]); ?>) + (Type: escape($config['type']); ?>) - Disabled
- Remove this backend
- Edit this backend + Remove This Backend
+ Edit This Backend

@@ -27,10 +29,12 @@
-

Montoring instances

+

Monitoring Instances

- Create new instance + + Create New Instance +

@@ -39,11 +43,11 @@ $instanceName)); ?>
escape($instanceName); ?> - (Type: ) + (Type: )
- Remove this instance
- Edit this instance + Remove This Instance
+ Edit This Instance

diff --git a/modules/monitoring/application/views/scripts/config/removebackend.phtml b/modules/monitoring/application/views/scripts/config/removebackend.phtml index 1c87fe693..6087b120b 100644 --- a/modules/monitoring/application/views/scripts/config/removebackend.phtml +++ b/modules/monitoring/application/views/scripts/config/removebackend.phtml @@ -1,5 +1,5 @@ tabs->render($this); ?> -

Remove backend escape($this->name) ?>

+

Remove Backend "escape($this->name) ?>"

Are you sure you want to remove the backend escape($this->name) ?>? diff --git a/modules/monitoring/application/views/scripts/config/removeinstance.phtml b/modules/monitoring/application/views/scripts/config/removeinstance.phtml index 980b16896..f4516151b 100644 --- a/modules/monitoring/application/views/scripts/config/removeinstance.phtml +++ b/modules/monitoring/application/views/scripts/config/removeinstance.phtml @@ -1,5 +1,5 @@ tabs->render($this); ?> -

Remove instance escape($this->name) ?>

+

Remove Instance "escape($this->name) ?>"

Are you sure you want to remove the instance escape($this->name) ?>?