Skip to content

Commit 5b67271

Browse files
freekmurzegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 98b8b73 commit 5b67271

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+126
-156
lines changed

src/BackupDestination/BackupCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class BackupCollection extends Collection
1313
public static function createFromFiles(?FileSystem $disk, array $files): self
1414
{
1515
return (new static($files))
16-
->filter(fn (string $path) => (new File())->isZipFile($disk, $path))
16+
->filter(fn (string $path) => (new File)->isZipFile($disk, $path))
1717
->map(fn (string $path) => new Backup($disk, $path))
1818
->sortByDesc(fn (Backup $backup) => $backup->date()->timestamp)
1919
->values();

src/BackupDestination/BackupDestination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BackupDestination
2020

2121
protected ?BackupCollection $backupCollectionCache = null;
2222

23-
public function __construct(Filesystem $disk = null, string $backupName, string $diskName)
23+
public function __construct(?Filesystem $disk, string $backupName, string $diskName)
2424
{
2525
$this->disk = $disk;
2626

src/BackupServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function registerDiscordChannel()
5656
{
5757
Notification::resolved(function (ChannelManager $service) {
5858
$service->extend('discord', function ($app) {
59-
return new DiscordChannel();
59+
return new DiscordChannel;
6060
});
6161
});
6262
}

src/Commands/ListCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ListCommand extends BaseCommand
2020
public function handle(): int
2121
{
2222
if (config()->has('backup.monitorBackups')) {
23-
$this->warn("Warning! Your config file still uses the old monitorBackups key. Update it to monitor_backups.");
23+
$this->warn('Warning! Your config file still uses the old monitorBackups key. Update it to monitor_backups.');
2424
}
2525

2626
$statuses = BackupDestinationStatusFactory::createForMonitorConfig(config('backup.monitor_backups'));
@@ -39,8 +39,8 @@ protected function displayOverview(Collection $backupDestinationStatuses)
3939
});
4040

4141
$this->table($headers, $rows, 'default', [
42-
4 => new RightAlignedTableStyle(),
43-
6 => new RightAlignedTableStyle(),
42+
4 => new RightAlignedTableStyle,
43+
6 => new RightAlignedTableStyle,
4444
]);
4545

4646
return $this;
@@ -98,7 +98,7 @@ protected function displayFailures(Collection $backupDestinationStatuses)
9898
return $this;
9999
}
100100

101-
protected function getFormattedBackupDate(Backup $backup = null)
101+
protected function getFormattedBackupDate(?Backup $backup = null)
102102
{
103103
return is_null($backup)
104104
? 'No backups present'

src/Commands/MonitorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MonitorCommand extends BaseCommand implements Isolatable
1818
public function handle(): int
1919
{
2020
if (config()->has('backup.monitorBackups')) {
21-
$this->warn("Warning! Your config file still uses the old monitorBackups key. Update it to monitor_backups.");
21+
$this->warn('Warning! Your config file still uses the old monitorBackups key. Update it to monitor_backups.');
2222
}
2323

2424
$hasError = false;

src/Events/BackupHasFailed.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ class BackupHasFailed
1010
public function __construct(
1111
public Exception $exception,
1212
public ?BackupDestination $backupDestination = null,
13-
) {
14-
}
13+
) {}
1514
}

src/Events/BackupManifestWasCreated.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ class BackupManifestWasCreated
88
{
99
public function __construct(
1010
public Manifest $manifest,
11-
) {
12-
}
11+
) {}
1312
}

src/Events/BackupWasSuccessful.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ class BackupWasSuccessful
88
{
99
public function __construct(
1010
public BackupDestination $backupDestination,
11-
) {
12-
}
11+
) {}
1312
}

src/Events/BackupZipWasCreated.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ class BackupZipWasCreated
66
{
77
public function __construct(
88
public string $pathToZip,
9-
) {
10-
}
9+
) {}
1110
}

src/Events/CleanupHasFailed.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ class CleanupHasFailed
1010
public function __construct(
1111
public Exception $exception,
1212
public ?BackupDestination $backupDestination = null,
13-
) {
14-
}
13+
) {}
1514
}

0 commit comments

Comments
 (0)