Code Duplication    Length = 7-8 lines in 2 locations

src/Kunstmaan/NodeBundle/AdminList/NodeAdminListConfigurator.php 1 location

@@ 120-127 (lines=8) @@
117
    /**
118
     * Configure filters
119
     */
120
    public function buildFilters()
121
    {
122
        $this
123
            ->addFilter('title', new StringFilterType('title'), 'kuma_node.admin.list.filter.title')
124
            ->addFilter('created', new DateFilterType('created'), 'kuma_node.admin.list.filter.created_at')
125
            ->addFilter('updated', new DateFilterType('updated'), 'kuma_node.admin.list.filter.updated_at')
126
            ->addFilter('online', new BooleanFilterType('online'), 'kuma_node.admin.list.filter.online');
127
    }
128
129
    /**
130
     * Configure the visible columns

src/Kunstmaan/ArticleBundle/AdminList/AbstractArticlePageAdminListConfigurator.php 1 location

@@ 69-75 (lines=7) @@
66
    /**
67
     * Configure filters
68
     */
69
    public function buildFilters()
70
    {
71
        $this->addFilter('title', new StringFilterType('title'), 'article.page.list.filter.title')
72
            ->addFilter('online', new BooleanFilterType('online'), 'article.page.list.filter.online')
73
            ->addFilter('created', new DateFilterType('created', 'nv'), 'article.page.list.filter.created_at')
74
            ->addFilter('updated', new DateFilterType('updated', 'nv'), 'article.page.list.filter.updated_at');
75
    }
76
77
    /**
78
     * Configure the visible columns