Code Duplication    Length = 8-13 lines in 2 locations

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

@@ 57-69 (lines=13) @@
54
     *                                  locale
55
     * @param string        $permission The permission
56
     */
57
    public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission, AuthorizationCheckerInterface $authorizationChecker)
58
    {
59
        parent::__construct($em, $aclHelper);
60
        $this->locale = $locale;
61
        $this->authorizationChecker = $authorizationChecker;
62
        $this->setPermissionDefinition(
63
            new PermissionDefinition(
64
                array($permission),
65
                'Kunstmaan\NodeBundle\Entity\Node',
66
                'n'
67
            )
68
        );
69
    }
70
71
    /**
72
     * @param \Kunstmaan\AdminBundle\Helper\DomainConfigurationInterface $domainConfiguration

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

@@ 37-44 (lines=8) @@
34
     * @param string        $locale     The current locale
35
     * @param string        $permission The permission
36
     */
37
    public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission)
38
    {
39
        parent::__construct($em, $aclHelper);
40
        $this->locale = $locale;
41
        $this->setPermissionDefinition(
42
            new PermissionDefinition(array($permission), 'Kunstmaan\NodeBundle\Entity\Node', 'n')
43
        );
44
    }
45
46
    /**
47
     * Return current bundle name.