Code Duplication    Length = 8-9 lines in 3 locations

src/Kunstmaan/LeadGenerationBundle/AdminList/PopupAdminListConfigurator.php 1 location

@@ 16-23 (lines=8) @@
13
     * @param EntityManager $em        The entity manager
14
     * @param AclHelper     $aclHelper The acl helper
15
     */
16
    public function __construct(EntityManager $em, AclHelper $aclHelper = null)
17
    {
18
        parent::__construct($em, $aclHelper);
19
20
        $this->setListTemplate('@KunstmaanLeadGeneration/AdminList/popup-list.html.twig');
21
        $this->setEditTemplate('@KunstmaanLeadGeneration/AdminList/popup-edit.html.twig');
22
        $this->setAddTemplate('@KunstmaanLeadGeneration/AdminList/popup-edit.html.twig');
23
    }
24
25
    /**
26
     * Configure the visible columns

src/Kunstmaan/LeadGenerationBundle/AdminList/RulesAdminListConfigurator.php 1 location

@@ 24-32 (lines=9) @@
21
     * @param AclHelper     $aclHelper The acl helper
22
     * @param int           $id        The if of the popup
23
     */
24
    public function __construct(EntityManager $em, AclHelper $aclHelper = null, $id)
25
    {
26
        parent::__construct($em, $aclHelper);
27
28
        $this->setPopupId($id);
29
        $this->setListTemplate('@KunstmaanLeadGeneration/AdminList/rules-list.html.twig');
30
        $this->setEditTemplate('@KunstmaanLeadGeneration/AdminList/rules-edit.html.twig');
31
        $this->setAddTemplate('@KunstmaanLeadGeneration/AdminList/rules-edit.html.twig');
32
    }
33
34
    public function adaptQueryBuilder(QueryBuilder $queryBuilder, array $params = [])
35
    {

src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php 1 location

@@ 23-31 (lines=9) @@
20
     * @param EntityManager $em        The entity manager
21
     * @param AclHelper     $aclHelper The acl helper
22
     */
23
    public function __construct(EntityManager $em, AclHelper $aclHelper = null, Menu $menu)
24
    {
25
        parent::__construct($em, $aclHelper);
26
27
        $this->setListTemplate('@KunstmaanMenu/AdminList/list-menu-item.html.twig');
28
        $this->setAddTemplate('@KunstmaanMenu/AdminList/edit-menu-item.html.twig');
29
        $this->setEditTemplate('@KunstmaanMenu/AdminList/edit-menu-item.html.twig');
30
        $this->menu = $menu;
31
    }
32
33
    /**
34
     * Configure the visible columns