From 44475115b37013972f0e13680143e5da57ab0b7e Mon Sep 17 00:00:00 2001 From: lewislarsen Date: Fri, 14 Jun 2024 11:15:11 +0000 Subject: [PATCH] chore: Ensure code style consistency across the codebase --- app/Services/Backup/BackupDestinations/S3.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/Backup/BackupDestinations/S3.php b/app/Services/Backup/BackupDestinations/S3.php index 94c95529..0f6abda0 100644 --- a/app/Services/Backup/BackupDestinations/S3.php +++ b/app/Services/Backup/BackupDestinations/S3.php @@ -15,6 +15,7 @@ class S3 implements BackupDestinationInterface use BackupHelpers; protected S3Client $client; + protected string $bucketName; public function __construct(S3Client $client, string $bucketName) @@ -59,7 +60,7 @@ public function streamFiles(SFTP $sftp, string $remoteZipPath, string $fileName, $tempFile = $this->downloadFileViaSFTP($sftp, $remoteZipPath); $stream = $this->openFileAsStream($tempFile); - $fullPath = $storagePath . '/' . $fileName; + $fullPath = $storagePath.'/'.$fileName; $filesystem->writeStream($fullPath, $stream); fclose($stream); Log::debug('Stream written to S3.', ['file_name' => $fullPath]);