Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 149-152 (lines=4) @@
146
        $token = $this->tokenStorage->getToken();
147
        $userRoles = array();
148
        $user = null;
149
        if (!is_null($token)) {
150
            $user = $token->getUser();
151
            $userRoles = $this->roleHierarchy->getReachableRoles($token->getRoles());
152
        }
153
154
        // Security context does not provide anonymous role automatically.
155
        $uR = array('"IS_AUTHENTICATED_ANONYMOUSLY"');

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

@@ 81-84 (lines=4) @@
78
        /* @var $token TokenInterface */
79
        $token = $this->tokenStorage->getToken();
80
        $userRoles = array();
81
        if (!is_null($token)) {
82
            $user = $token->getUser();
83
            $userRoles = $this->roleHierarchy->getReachableRoles($token->getRoles());
84
        }
85
86
        // Security context does not provide anonymous role automatically.
87
        $uR = array('"IS_AUTHENTICATED_ANONYMOUSLY"');