CS: Fix violations in MonitoringProperties, NotificationView and StatusQuery

refs #4187
This commit is contained in:
Eric Lippmann 2013-08-16 16:32:31 +02:00
parent e5f3a063fb
commit 83fb198cd2
3 changed files with 51 additions and 45 deletions

View File

@ -1,4 +1,5 @@
<?php <?php
// @codingStandardsIgnoreStart
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}
@ -274,7 +275,7 @@ class Zend_View_Helper_MonitoringProperties extends Zend_View_Helper_Abstract
return 'N/A'; return 'N/A';
} }
$type = self::$notificationReasons[$reason]; $type = self::$notificationReasons[$reason];
if ($reason === 8 ) { if ($reason === 8) {
if (intval($notification->notification_type) === 0) { if (intval($notification->notification_type) === 0) {
$type .= '(UP)'; $type .= '(UP)';
} else { } else {
@ -284,3 +285,4 @@ class Zend_View_Helper_MonitoringProperties extends Zend_View_Helper_Abstract
return $type; return $type;
} }
} }
// @codingStandardsIgnoreStop

View File

@ -1,4 +1,7 @@
<?php <?php
// @codingStandardsIgnoreStart
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Monitoring\Backend\Ido\Query; namespace Monitoring\Backend\Ido\Query;
@ -332,7 +335,6 @@ class StatusQuery extends AbstractQuery
'sgm.service_object_id = s.service_object_id', 'sgm.service_object_id = s.service_object_id',
array() array()
)->join( )->join(
array('sg' => $this->prefix . 'servicegroups'), array('sg' => $this->prefix . 'servicegroups'),
'sgm.servicegroup_id = sg.' . $this->servicegroup_id, 'sgm.servicegroup_id = sg.' . $this->servicegroup_id,
array() array()
@ -385,3 +387,4 @@ class StatusQuery extends AbstractQuery
); );
} }
} }
// @codingStandardsIgnoreStop

View File

@ -22,6 +22,7 @@
* @author Icinga Development Team <info@icinga.org> * @author Icinga Development Team <info@icinga.org>
*/ */
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}
namespace Monitoring\View; namespace Monitoring\View;
/** /**