Conform to coding guidelines

This commit is contained in:
Matthias Jentsch 2015-05-07 17:17:24 +02:00
parent c6c78989a5
commit 83efc3a4a3
3 changed files with 16 additions and 13 deletions

View File

@ -22,7 +22,8 @@
$this->comment->service_display_name, $this->comment->service_display_name,
$this->comment->host_name, $this->comment->host_name,
$this->comment->host_display_name $this->comment->host_display_name
); ?> );
?>
</td> </td>
<?php else: ?> <?php else: ?>
<th> <?= $this->translate('Host') ?> </th> <th> <?= $this->translate('Host') ?> </th>
@ -31,7 +32,8 @@
<?= $this->link()->host( <?= $this->link()->host(
$this->comment->host_name, $this->comment->host_name,
$this->comment->host_display_name $this->comment->host_display_name
); ?> );
?>
</td> </td>
<?php endif ?> <?php endif ?>
</tr> </tr>
@ -58,7 +60,8 @@
$this->translate('This comment expires on %s at %s.'), $this->translate('This comment expires on %s at %s.'),
date('d.m.y', $this->comment->expiration), date('d.m.y', $this->comment->expiration),
date('H:i', $this->comment->expiration) date('H:i', $this->comment->expiration)
) : $this->translate('This comment does not expire.'); ?> ) : $this->translate('This comment does not expire.');
?>
</td> </td>
</tr> </tr>

View File

@ -62,7 +62,7 @@ abstract class MonitoredObjectController extends Controller
->handleRequest(); ->handleRequest();
$this->view->checkNowForm = $checkNowForm; $this->view->checkNowForm = $checkNowForm;
} }
if ( ! in_array((int) $this->object->state, array(0, 99))) { if (! in_array((int) $this->object->state, array(0, 99))) {
if ((bool) $this->object->acknowledged) { if ((bool) $this->object->acknowledged) {
if ($auth->hasPermission('monitoring/command/remove-acknowledgement')) { if ($auth->hasPermission('monitoring/command/remove-acknowledgement')) {
$removeAckForm = new RemoveAcknowledgementCommandForm(); $removeAckForm = new RemoveAcknowledgementCommandForm();