Skip to content

Commit

Permalink
renamed vars
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudIO committed Dec 30, 2023
1 parent 3c071c7 commit b04444b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ChurchCRM/Backup/BackupJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ private function createGZSql(): void
private function encryptBackupFile(): void
{
LoggerUtils::getAppLogger()->info('Encrypting backup file: ' . $this->BackupFile);
$tempfile = new \SplFileInfo($this->BackupFile->getPathname() . 'temp');
rename($this->BackupFile, $tempfile);
File::encryptFileWithPassword($tempfile, $this->BackupFile, $this->BackupPassword);
LoggerUtils::getAppLogger()->info('Finished ecrypting backup file');
$tempFile = new \SplFileInfo($this->BackupFile->getPathname() . 'temp');
rename($this->BackupFile, $tempFile);
File::encryptFileWithPassword($tempFile, $this->BackupFile, $this->BackupPassword);
LoggerUtils::getAppLogger()->info('Finished encrypting backup file');
}

public function execute(): bool
Expand Down

0 comments on commit b04444b

Please sign in to comment.