diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-17 14:49:29 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-17 14:49:29 +0100 |
commit | 865ac4b6e02b59cc69df587a6ba1d3c92969a514 (patch) | |
tree | d96db43978157e9ef6aca036fabef9f0a390f407 /apps/files_trashbin/lib | |
parent | 51d228932fe6adbd29bdfe8c52d71ba03bf82069 (diff) | |
download | nextcloud-server-865ac4b6e02b59cc69df587a6ba1d3c92969a514.tar.gz nextcloud-server-865ac4b6e02b59cc69df587a6ba1d3c92969a514.zip |
Rename $insert var to $qb
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php index 3f3e674b875..c416ef0f810 100644 --- a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php +++ b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php @@ -104,23 +104,23 @@ class TrashbinMigrator implements IMigrator { throw new UserMigrationException("Could not import trashbin."); } $locations = json_decode($importSource->getFileContents(static::PATH_LOCATIONS), true, 512, JSON_THROW_ON_ERROR); - $insert = $this->dbc->getQueryBuilder(); - $insert->insert('files_trash') + $qb = $this->dbc->getQueryBuilder(); + $qb->insert('files_trash') ->values([ - 'id' => $insert->createParameter('id'), - 'timestamp' => $insert->createParameter('timestamp'), - 'location' => $insert->createParameter('location'), - 'user' => $insert->createNamedParameter($uid), + 'id' => $qb->createParameter('id'), + 'timestamp' => $qb->createParameter('timestamp'), + 'location' => $qb->createParameter('location'), + 'user' => $qb->createNamedParameter($uid), ]); foreach ($locations as $id => $fileLocations) { foreach ($fileLocations as $timestamp => $location) { - $insert + $qb ->setParameter('id', $id) ->setParameter('timestamp', $timestamp) ->setParameter('location', $location) ; - $insert->executeStatement(); + $qb->executeStatement(); } } } else { |