CubeLinks: cleanup, comments

This commit is contained in:
Thomas Gelf 2017-01-13 18:58:46 +01:00
parent d258cb433e
commit 1b71df732e
1 changed files with 7 additions and 4 deletions

View File

@ -2,14 +2,17 @@
namespace Icinga\Module\Director\ProvidedHook;
use Icinga\Module\Cube\Hook\ActionsHook;
use Icinga\Module\Cube\Cube;
use Icinga\Module\Cube\Ido\IdoHostStatusCube;
use Icinga\Data\Filter\Filter;
use Icinga\Module\Cube\Cube;
use Icinga\Module\Cube\Hook\ActionsHook;
use Icinga\Module\Cube\Ido\IdoHostStatusCube;
use Icinga\Web\View;
class CubeLinks extends ActionsHook
{
/**
* @inheritdoc
*/
public function prepareActionLinks(Cube $cube, View $view)
{
if (! $cube instanceof IdoHostStatusCube) {
@ -38,7 +41,7 @@ class CubeLinks extends ActionsHook
$params = null;
$filter = Filter::matchAny();
foreach($hosts as $host) {
foreach ($hosts as $host) {
$filter->addFilter(
Filter::matchAny(Filter::expression('name', '=', $host))
);