monitoring: Fix coding style in the EventHistoryQuery

This commit is contained in:
Eric Lippmann 2015-01-21 10:15:58 +01:00
parent 7d967d25b3
commit 1bba0b3d0f
1 changed files with 13 additions and 16 deletions

View File

@ -1,11 +1,9 @@
<?php <?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Module\Monitoring\Backend\Ido\Query; namespace Icinga\Module\Monitoring\Backend\Ido\Query;
use Icinga\Data\Filter\Filter;
use Zend_Db_Select; use Zend_Db_Select;
use Icinga\Data\Filter\Filter;
class EventHistoryQuery extends IdoQuery class EventHistoryQuery extends IdoQuery
{ {
@ -84,20 +82,20 @@ class EventHistoryQuery extends IdoQuery
public function addFilter(Filter $filter) public function addFilter(Filter $filter)
{ {
foreach ($this->subQueries as $sub) { foreach ($this->subQueries as $sub) {
$sub->applyFilter(clone $filter); $sub->applyFilter(clone $filter);
} }
return $this; return $this;
} }
public function where($condition, $value = null) public function where($condition, $value = null)
{ {
$this->requireColumn($condition); $this->requireColumn($condition);
foreach ($this->subQueries as $sub) { foreach ($this->subQueries as $sub) {
$sub->where($condition, $value); $sub->where($condition, $value);
} }
return $this; return $this;
} }
protected function joinHostgroups() protected function joinHostgroups()
{ {
@ -116,5 +114,4 @@ class EventHistoryQuery extends IdoQuery
); );
return $this; return $this;
} }
} }