Skip to content

Commit dbb6f69

Browse files
committed
Use proper newline, not literal \n
1 parent 794cf9d commit dbb6f69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Repositories/Wings/DaemonBackupRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function backup(Backup $backup): ResponseInterface
4949
'json' => [
5050
'adapter' => $this->adapter ?? config('backups.default'),
5151
'uuid' => $backup->uuid,
52-
'ignore' => implode('\n', $backup->ignored_files),
52+
'ignore' => implode("\n", $backup->ignored_files),
5353
],
5454
]
5555
);

app/Services/Backups/InitiateBackupService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function handle(Server $server, string $name = null, bool $override = fal
141141
'server_id' => $server->id,
142142
'uuid' => Uuid::uuid4()->toString(),
143143
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()),
144-
'ignored_files' => is_array($this->ignoredFiles) ? array_values($this->ignoredFiles) : [],
144+
'ignored_files' => array_values($this->ignoredFiles ?? []),
145145
'disk' => $this->backupManager->getDefaultAdapter(),
146146
], true, true);
147147

0 commit comments

Comments
 (0)