Adjust vars to the coding guidelines

This commit is contained in:
Alexander Fuhr 2014-11-18 10:29:47 +01:00
parent 5f8fcf4005
commit 5ad1c0c928
1 changed files with 7 additions and 7 deletions

View File

@ -7,15 +7,15 @@ if ($object->getType() === $object::TYPE_HOST) {
'monitoring/host/reschedule-check', 'monitoring/host/reschedule-check',
array('host' => $object->getName()) array('host' => $object->getName())
); );
$check_attempts = $object->host_current_check_attempt . '/' . $object->host_max_check_attempts; $checkAttempts = $object->host_current_check_attempt . '/' . $object->host_max_check_attempts;
$state_type = (int) $object->host_state_type; $stateType = (int) $object->host_state_type;
} else { } else {
$reschedule = $this->href( $reschedule = $this->href(
'monitoring/service/reschedule-check', 'monitoring/service/reschedule-check',
array('host' => $object->getHost()->getName(), 'service' => $object->getName()) array('host' => $object->getHost()->getName(), 'service' => $object->getName())
); );
$check_attempts = $object->service_attempt; $checkAttempts = $object->service_attempt;
$state_type = (int) $object->service_state_type; $stateType = (int) $object->service_state_type;
} }
?> ?>
@ -38,10 +38,10 @@ if ($object->getType() === $object::TYPE_HOST) {
</tr> </tr>
<tr> <tr>
<th><?= $this->translate('Check attempts') ?></th> <th><?= $this->translate('Check attempts') ?></th>
<?php if ($state_type === 0): ?> <?php if ($stateType === 0): ?>
<td><?= $check_attempts ?> <?= $this->translate('(soft state)') ?></td> <td><?= $checkAttempts ?> <?= $this->translate('(soft state)') ?></td>
<?php else: ?> <?php else: ?>
<td><?= $check_attempts ?> <?= $this->translate('(hard state)') ?></td> <td><?= $checkAttempts ?> <?= $this->translate('(hard state)') ?></td>
<?php endif; ?> <?php endif; ?>
</tr> </tr>
<?php if ($object->check_execution_time): ?> <?php if ($object->check_execution_time): ?>