monitoring: Fix coding style in the EventHistoryQuery
This commit is contained in:
parent
7d967d25b3
commit
1bba0b3d0f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue