Code Duplication    Length = 14-14 lines in 2 locations

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

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