diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-04-13 10:56:07 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-04-13 17:52:40 +0300 |
commit | 78c8e578966e3867f583ca3a2aacda583c5ecfbd (patch) | |
tree | 765ea9fa2d07f0c581a014fce5f5a658dd5ef94f /apps/dav | |
parent | 0fd72f4355c73a2f859e074754f0f255db16f536 (diff) |
Fix migrators according to exceptions
Fixed syntax errors.
Removed if condition for copyToFolder since it's void now.
Change signature of setMigratorVersions to also be void.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/UserMigration/ContactsMigrator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/UserMigration/ContactsMigrator.php b/apps/dav/lib/UserMigration/ContactsMigrator.php index 6a292eff8e8..065ef05ceea 100644 --- a/apps/dav/lib/UserMigration/ContactsMigrator.php +++ b/apps/dav/lib/UserMigration/ContactsMigrator.php @@ -218,10 +218,10 @@ class ContactsMigrator implements IMigrator { $exportPath = ContactsMigrator::PATH_ROOT . $basename . '.' . ContactsMigrator::FILENAME_EXT; $metadataExportPath = ContactsMigrator::PATH_ROOT . $basename . '.' . ContactsMigrator::METADATA_EXT; - $exportDestination->addFileContents($exportPath, $this->serializeCards($vCards); + $exportDestination->addFileContents($exportPath, $this->serializeCards($vCards)); $metadata = array_filter(['displayName' => $displayName, 'description' => $description]); - $exportDestination->addFileContents($metadataExportPath, json_encode($metadata); + $exportDestination->addFileContents($metadataExportPath, json_encode($metadata)); } } catch (Throwable $e) { throw new CalendarMigratorException('Could not export address book', 0, $e); |