diff --git a/src/Checks/Checks/BackupsCheck.php b/src/Checks/Checks/BackupsCheck.php index 0a9cffa9..0405f73c 100644 --- a/src/Checks/Checks/BackupsCheck.php +++ b/src/Checks/Checks/BackupsCheck.php @@ -106,14 +106,14 @@ public function run(): Result if ($this->youngestShouldHaveBeenMadeBefore) { if ($this->youngestBackupIsToolOld($eligableBackups)) { return Result::make() - ->failed('Youngest backup was too old'); + ->failed('Youngest backup was too old'); } } if ($this->oldestShouldHaveBeenMadeAfter) { if ($this->oldestBackupIsTooYoung($eligableBackups)) { return Result::make() - ->failed('Oldest backup was too young'); + ->failed('Oldest backup was too young'); } } diff --git a/src/Support/BackupFile.php b/src/Support/BackupFile.php index 13f3b154..f769b7d9 100644 --- a/src/Support/BackupFile.php +++ b/src/Support/BackupFile.php @@ -1,17 +1,19 @@ file = new SymfonyFile($path); } } @@ -30,5 +32,4 @@ public function lastModified(): int { return $this->file ? $this->file->getMTime() : $this->disk->lastModified($this->path); } - } diff --git a/tests/Checks/BackupsCheckTest.php b/tests/Checks/BackupsCheckTest.php index a1f82dbd..00cf2dcb 100644 --- a/tests/Checks/BackupsCheckTest.php +++ b/tests/Checks/BackupsCheckTest.php @@ -160,7 +160,7 @@ shell_exec("truncate -s {$sizeInMb}M {$tempFile}"); - Storage::disk('backups')->put('backups/hey.zip',file_get_contents($tempFile) ); + Storage::disk('backups')->put('backups/hey.zip', file_get_contents($tempFile)); $result = $this->backupsCheck ->onDisk('backups')