Code Duplication    Length = 7-7 lines in 2 locations

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

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

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