From dbb6f69e001482e1a00a510ba71f9de017be7baf Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 27 Dec 2020 16:47:51 -0800 Subject: [PATCH] Use proper newline, not literal \n --- app/Repositories/Wings/DaemonBackupRepository.php | 2 +- app/Services/Backups/InitiateBackupService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Repositories/Wings/DaemonBackupRepository.php b/app/Repositories/Wings/DaemonBackupRepository.php index 0eb9d4792..37156f213 100644 --- a/app/Repositories/Wings/DaemonBackupRepository.php +++ b/app/Repositories/Wings/DaemonBackupRepository.php @@ -49,7 +49,7 @@ class DaemonBackupRepository extends DaemonRepository 'json' => [ 'adapter' => $this->adapter ?? config('backups.default'), 'uuid' => $backup->uuid, - 'ignore' => implode('\n', $backup->ignored_files), + 'ignore' => implode("\n", $backup->ignored_files), ], ] ); diff --git a/app/Services/Backups/InitiateBackupService.php b/app/Services/Backups/InitiateBackupService.php index 811af7c67..f66722191 100644 --- a/app/Services/Backups/InitiateBackupService.php +++ b/app/Services/Backups/InitiateBackupService.php @@ -141,7 +141,7 @@ class InitiateBackupService 'server_id' => $server->id, 'uuid' => Uuid::uuid4()->toString(), 'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()), - 'ignored_files' => is_array($this->ignoredFiles) ? array_values($this->ignoredFiles) : [], + 'ignored_files' => array_values($this->ignoredFiles ?? []), 'disk' => $this->backupManager->getDefaultAdapter(), ], true, true);