Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 132-139 (lines=8) @@
129
    /**
130
     * Configure the visible columns
131
     */
132
    public function buildFields()
133
    {
134
        $this
135
            ->addField('title', 'kuma_node.admin.list.header.title', true, 'KunstmaanNodeBundle:Admin:title.html.twig')
136
            ->addField('created', 'kuma_node.admin.list.header.created_at', true)
137
            ->addField('updated', 'kuma_node.admin.list.header.updated_at', true)
138
            ->addField('online', 'kuma_node.admin.list.header.online', true, 'KunstmaanNodeBundle:Admin:online.html.twig');
139
    }
140
141
    /**
142
     * @param mixed $item

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

@@ 80-86 (lines=7) @@
77
    /**
78
     * Configure the visible columns
79
     */
80
    public function buildFields()
81
    {
82
        $this->addField('title', 'article.page.list.header.title', true, 'KunstmaanNodeBundle:Admin:title.html.twig')
83
            ->addField('created', 'article.page.list.header.created_at', true)
84
            ->addField('updated', 'article.page.list.header.updated_at', true)
85
            ->addField('online', 'article.page.list.header.online', true, 'KunstmaanNodeBundle:Admin:online.html.twig');
86
    }
87
88
    /**
89
     * @return QueryBuilder