Code Duplication    Length = 14-14 lines in 2 locations

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

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