Code Duplication    Length = 7-8 lines in 2 locations

src/Kunstmaan/AdminBundle/Helper/Security/Acl/AclHelper.php 1 location

@@ 57-64 (lines=8) @@
54
     * @param TokenStorageInterface  $tokenStorage The security token storage
55
     * @param RoleHierarchyInterface $rh           The role hierarchies
56
     */
57
    public function __construct(EntityManager $em, TokenStorageInterface $tokenStorage, RoleHierarchyInterface $rh, $permissionsEnabled = true)
58
    {
59
        $this->em = $em;
60
        $this->tokenStorage = $tokenStorage;
61
        $this->quoteStrategy = $em->getConfiguration()->getQuoteStrategy();
62
        $this->roleHierarchy = $rh;
63
        $this->permissionsEnabled = $permissionsEnabled;
64
    }
65
66
    /**
67
     * Clone specified query with parameters.

src/Kunstmaan/AdminBundle/Helper/Security/Acl/AclNativeHelper.php 1 location

@@ 47-53 (lines=7) @@
44
     * @param TokenStorageInterface  $tokenStorage The security context
45
     * @param RoleHierarchyInterface $rh           The role hierarchies
46
     */
47
    public function __construct(EntityManager $em, TokenStorageInterface $tokenStorage, RoleHierarchyInterface $rh, $permissionsEnabled = true)
48
    {
49
        $this->em = $em;
50
        $this->tokenStorage = $tokenStorage;
51
        $this->roleHierarchy = $rh;
52
        $this->permissionsEnabled = $permissionsEnabled;
53
    }
54
55
    /**
56
     * Apply the ACL constraints to the specified query builder, using the permission definition