Use proper newline, not literal \n

This commit is contained in:
Dane Everitt 2020-12-27 16:47:51 -08:00
parent 794cf9d9dd
commit dbb6f69e00
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ class DaemonBackupRepository extends DaemonRepository
'json' => [ 'json' => [
'adapter' => $this->adapter ?? config('backups.default'), 'adapter' => $this->adapter ?? config('backups.default'),
'uuid' => $backup->uuid, 'uuid' => $backup->uuid,
'ignore' => implode('\n', $backup->ignored_files), 'ignore' => implode("\n", $backup->ignored_files),
], ],
] ]
); );

View file

@ -141,7 +141,7 @@ class InitiateBackupService
'server_id' => $server->id, 'server_id' => $server->id,
'uuid' => Uuid::uuid4()->toString(), 'uuid' => Uuid::uuid4()->toString(),
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()), '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(), 'disk' => $this->backupManager->getDefaultAdapter(),
], true, true); ], true, true);