[icinga-checkins] icinga.org: icingaweb2/master: Adjust vars to the coding guidelines

git at icinga.org git at icinga.org
Tue Nov 18 10:30:02 CET 2014


Module: icingaweb2
Branch: master
Commit: 5ad1c0c928efc82adaebda82a1d022601ad2affc
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=5ad1c0c928efc82adaebda82a1d022601ad2affc

Author: Alexander Fuhr <alexander.fuhr at netways.de>
Date:   Tue Nov 18 10:29:47 2014 +0100

Adjust vars to the coding guidelines

---

 .../views/scripts/show/components/checkstatistics.phtml  |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml
index cc00c41..50b40cd 100644
--- a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml
@@ -7,15 +7,15 @@ if ($object->getType() === $object::TYPE_HOST) {
         'monitoring/host/reschedule-check',
         array('host' => $object->getName())
     );
-    $check_attempts = $object->host_current_check_attempt . '/' . $object->host_max_check_attempts;
-    $state_type = (int) $object->host_state_type;
+    $checkAttempts = $object->host_current_check_attempt . '/' . $object->host_max_check_attempts;
+    $stateType = (int) $object->host_state_type;
 } else {
     $reschedule = $this->href(
         'monitoring/service/reschedule-check',
         array('host' => $object->getHost()->getName(), 'service' => $object->getName())
     );
-    $check_attempts = $object->service_attempt;
-    $state_type = (int) $object->service_state_type;
+    $checkAttempts = $object->service_attempt;
+    $stateType = (int) $object->service_state_type;
 }
 
 ?>
@@ -38,10 +38,10 @@ if ($object->getType() === $object::TYPE_HOST) {
 </tr>
 <tr>
     <th><?= $this->translate('Check attempts') ?></th>
-    <?php if ($state_type === 0): ?>
-    <td><?= $check_attempts ?> <?= $this->translate('(soft state)') ?></td>
+    <?php if ($stateType === 0): ?>
+    <td><?= $checkAttempts ?> <?= $this->translate('(soft state)') ?></td>
     <?php else: ?>
-    <td><?= $check_attempts ?> <?= $this->translate('(hard state)') ?></td>
+    <td><?= $checkAttempts ?> <?= $this->translate('(hard state)') ?></td>
     <?php endif; ?>
 </tr>
 <?php if ($object->check_execution_time): ?>



More information about the icinga-checkins mailing list