Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 158-163 (lines=6) @@
155
        $uR = array('"IS_AUTHENTICATED_ANONYMOUSLY"');
156
157
        /* @var $role RoleInterface */
158
        foreach ($userRoles as $role) {
159
            // The reason we ignore this is because by default FOSUserBundle adds ROLE_USER for every user
160
            if ($role->getRole() !== 'ROLE_USER') {
161
                $uR[] = '"' . $role->getRole() . '"';
162
            }
163
        }
164
        $uR = array_unique($uR);
165
        $inString = implode(' OR s.identifier = ', $uR);
166

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

@@ 90-95 (lines=6) @@
87
        $uR = array('"IS_AUTHENTICATED_ANONYMOUSLY"');
88
89
        /* @var $role RoleInterface */
90
        foreach ($userRoles as $role) {
91
            // The reason we ignore this is because by default FOSUserBundle adds ROLE_USER for every user
92
            if ($role->getRole() !== 'ROLE_USER') {
93
                $uR[] = '"' . $role->getRole() . '"';
94
            }
95
        }
96
        $uR = array_unique($uR);
97
        $inString = implode(' OR s.identifier = ', (array) $uR);
98