Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 120-126 (lines=7) @@
117
        $uR = array_unique($uR);
118
        $inString = implode(' OR s.identifier = ', $uR);
119
120
        if (\is_object($user)) {
121
            $inString .= ' OR s.identifier = "' . str_replace(
122
                '\\',
123
                '\\\\',
124
                \get_class($user)
125
            ) . '-' . $user->getUserName() . '"';
126
        }
127
128
        $joinTableQuery = <<<SELECTQUERY
129
SELECT DISTINCT o.object_identifier as id FROM {$databasePrefix}acl_object_identities as o

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

@@ 183-189 (lines=7) @@
180
        $uR = array_unique($uR);
181
        $inString = implode(' OR s.identifier = ', $uR);
182
183
        if (\is_object($user)) {
184
            $inString .= ' OR s.identifier = "' . str_replace(
185
                '\\',
186
                '\\\\',
187
                \get_class($user)
188
            ) . '-' . $user->getUserName() . '"';
189
        }
190
191
        $selectQuery = <<<SELECTQUERY
192
SELECT DISTINCT o.object_identifier as id FROM {$databasePrefix}acl_object_identities as o