Code Duplication    Length = 14-14 lines in 2 locations

htdocs/src/OcLegacy/Admin/Gdpr/GdprHandler.php 2 locations

@@ 168-181 (lines=14) @@
165
        ]);
166
    }
167
168
    private function deleteUserCacheLists(int $userId): void
169
    {
170
        $this->connection->executeQuery('DELETE FROM cache_lists WHERE user_id = :userId', [
171
            'userId' => $userId,
172
        ]);
173
174
        $this->connection->executeQuery('DELETE FROM cache_list_watches WHERE user_id = :userId', [
175
            'userId' => $userId,
176
        ]);
177
178
        $this->connection->executeQuery('DELETE FROM cache_list_bookmarks WHERE user_id = :userId', [
179
            'userId' => $userId,
180
        ]);
181
    }
182
183
    private function anonymizeCacheLogs(int $userId): void
184
    {
@@ 390-403 (lines=14) @@
387
        ]);
388
    }
389
390
    private function deleteWatches(int $userId): void
391
    {
392
        $this->connection->executeQuery('DELETE FROM watches_logqueue WHERE user_id = :userId', [
393
            'userId' => $userId,
394
        ]);
395
396
        $this->connection->executeQuery('DELETE FROM watches_notified WHERE user_id = :userId', [
397
            'userId' => $userId,
398
        ]);
399
400
        $this->connection->executeQuery('DELETE FROM watches_waiting WHERE user_id = :userId', [
401
            'userId' => $userId,
402
        ]);
403
    }
404
405
    private function deleteWsSessions(int $userId): void
406
    {