Camelize property borg_restore_password => borgRestorePassword

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-23 17:23:21 +01:00
parent 68126f6af2
commit 2a0ef686f0
2 changed files with 5 additions and 5 deletions

View file

@ -114,7 +114,7 @@ $app->get('/containers', function (Request $request, Response $response, array $
'is_onlyoffice_enabled' => $configurationManager->isOnlyofficeEnabled, 'is_onlyoffice_enabled' => $configurationManager->isOnlyofficeEnabled,
'is_collabora_enabled' => $configurationManager->isCollaboraEnabled, 'is_collabora_enabled' => $configurationManager->isCollaboraEnabled,
'is_talk_enabled' => $configurationManager->isTalkEnabled, 'is_talk_enabled' => $configurationManager->isTalkEnabled,
'borg_restore_password' => $configurationManager->borg_restore_password, 'borg_restore_password' => $configurationManager->borgRestorePassword,
'daily_backup_time' => $configurationManager->GetDailyBackupTime(), 'daily_backup_time' => $configurationManager->GetDailyBackupTime(),
'is_daily_backup_running' => $configurationManager->isDailyBackupRunning(), 'is_daily_backup_running' => $configurationManager->isDailyBackupRunning(),
'timezone' => $configurationManager->timezone, 'timezone' => $configurationManager->timezone,

View file

@ -132,7 +132,7 @@ class ConfigurationManager
set { $this->set('borg_remote_repo', $value); } set { $this->set('borg_remote_repo', $value); }
} }
public string $borg_restore_password { public string $borgRestorePassword {
get => $this->get('borg_restore_password', ''); get => $this->get('borg_restore_password', '');
set { $this->set('borg_restore_password', $value); } set { $this->set('borg_restore_password', $value); }
} }
@ -439,7 +439,7 @@ class ConfigurationManager
// Don't set the domain via the attribute, or we create a loop. // Don't set the domain via the attribute, or we create a loop.
$this->set('domain', $domain); $this->set('domain', $domain);
// Reset the borg restore password when setting the domain // Reset the borg restore password when setting the domain
$this->borg_restore_password = ''; $this->borgRestorePassword = '';
$this->startTransaction(); $this->startTransaction();
$this->commitTransaction(); $this->commitTransaction();
} }
@ -532,7 +532,7 @@ class ConfigurationManager
$this->startTransaction(); $this->startTransaction();
$this->borgBackupHostLocation = $location; $this->borgBackupHostLocation = $location;
$this->borgRemoteRepo = $repo; $this->borgRemoteRepo = $repo;
$this->borg_restore_password = $password; $this->borgRestorePassword = $password;
$this->instanceRestoreAttempt = true; $this->instanceRestoreAttempt = true;
$this->commitTransaction(); $this->commitTransaction();
} }
@ -1053,7 +1053,7 @@ class ConfigurationManager
'TALK_PORT' => $this->talk_port, 'TALK_PORT' => $this->talk_port,
'TURN_DOMAIN' => $this->turn_domain, 'TURN_DOMAIN' => $this->turn_domain,
'NEXTCLOUD_MOUNT' => $this->nextcloud_mount, 'NEXTCLOUD_MOUNT' => $this->nextcloud_mount,
'BACKUP_RESTORE_PASSWORD' => $this->borg_restore_password, 'BACKUP_RESTORE_PASSWORD' => $this->borgRestorePassword,
'CLAMAV_ENABLED' => $this->isClamavEnabled ? 'yes' : '', 'CLAMAV_ENABLED' => $this->isClamavEnabled ? 'yes' : '',
'TALK_RECORDING_ENABLED' => $this->isTalkRecordingEnabled ? 'yes' : '', 'TALK_RECORDING_ENABLED' => $this->isTalkRecordingEnabled ? 'yes' : '',
'ONLYOFFICE_ENABLED' => $this->isOnlyofficeEnabled ? 'yes' : '', 'ONLYOFFICE_ENABLED' => $this->isOnlyofficeEnabled ? 'yes' : '',