From 3c60066e0fcb2f488ad8c4958553fdbacdd0ef97 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Tue, 3 Mar 2020 14:19:48 +0000 Subject: [PATCH] Apply fixes from StyleCI --- routes/api.php | 2 +- src/BackupToolServiceProvider.php | 4 ++-- src/Http/Controllers/BackupStatusesController.php | 2 +- src/Http/Controllers/CleanBackupsController.php | 2 +- src/Http/Controllers/DownloadBackupController.php | 6 +++--- src/Jobs/CreateBackupJob.php | 2 +- src/Rules/PathToZip.php | 2 +- tests/Controllers/BackupStatusesControllerTest.php | 2 +- tests/Controllers/BackupsControllerTest.php | 2 +- tests/TestCase.php | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/routes/api.php b/routes/api.php index 186913f..781e609 100644 --- a/routes/api.php +++ b/routes/api.php @@ -2,8 +2,8 @@ use Illuminate\Support\Facades\Route; use Spatie\BackupTool\Http\Controllers\BackupsController; -use Spatie\BackupTool\Http\Controllers\CleanBackupsController; use Spatie\BackupTool\Http\Controllers\BackupStatusesController; +use Spatie\BackupTool\Http\Controllers\CleanBackupsController; use Spatie\BackupTool\Http\Controllers\DownloadBackupController; Route::get('backups', BackupsController::class.'@index'); diff --git a/src/BackupToolServiceProvider.php b/src/BackupToolServiceProvider.php index 9f319d6..8ef052e 100644 --- a/src/BackupToolServiceProvider.php +++ b/src/BackupToolServiceProvider.php @@ -2,10 +2,10 @@ namespace Spatie\BackupTool; -use Laravel\Nova\Nova; -use Laravel\Nova\Events\ServingNova; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; +use Laravel\Nova\Events\ServingNova; +use Laravel\Nova\Nova; use Spatie\BackupTool\Http\Middleware\Authorize; class BackupToolServiceProvider extends ServiceProvider diff --git a/src/Http/Controllers/BackupStatusesController.php b/src/Http/Controllers/BackupStatusesController.php index 9892123..7195cf6 100644 --- a/src/Http/Controllers/BackupStatusesController.php +++ b/src/Http/Controllers/BackupStatusesController.php @@ -2,8 +2,8 @@ namespace Spatie\BackupTool\Http\Controllers; -use Spatie\Backup\Helpers\Format; use Illuminate\Support\Facades\Cache; +use Spatie\Backup\Helpers\Format; use Spatie\Backup\Tasks\Monitor\BackupDestinationStatus; use Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory; diff --git a/src/Http/Controllers/CleanBackupsController.php b/src/Http/Controllers/CleanBackupsController.php index 7c71a5e..5e09206 100644 --- a/src/Http/Controllers/CleanBackupsController.php +++ b/src/Http/Controllers/CleanBackupsController.php @@ -2,9 +2,9 @@ namespace Spatie\BackupTool\Http\Controllers; +use Spatie\Backup\BackupDestination\BackupDestinationFactory; use Spatie\Backup\Tasks\Cleanup\CleanupJob; use Spatie\Backup\Tasks\Cleanup\CleanupStrategy; -use Spatie\Backup\BackupDestination\BackupDestinationFactory; class CleanBackupsController extends ApiController { diff --git a/src/Http/Controllers/DownloadBackupController.php b/src/Http/Controllers/DownloadBackupController.php index 3bf23db..2f58adf 100644 --- a/src/Http/Controllers/DownloadBackupController.php +++ b/src/Http/Controllers/DownloadBackupController.php @@ -2,12 +2,12 @@ namespace Spatie\BackupTool\Http\Controllers; -use Spatie\BackupTool\Rules\PathToZip; -use Spatie\BackupTool\Rules\BackupDisk; use Spatie\Backup\BackupDestination\Backup; +use Spatie\Backup\BackupDestination\BackupDestination; +use Spatie\BackupTool\Rules\BackupDisk; +use Spatie\BackupTool\Rules\PathToZip; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Spatie\Backup\BackupDestination\BackupDestination; use Symfony\Component\HttpFoundation\StreamedResponse; class DownloadBackupController extends ApiController diff --git a/src/Jobs/CreateBackupJob.php b/src/Jobs/CreateBackupJob.php index 48d82e4..bd6937e 100644 --- a/src/Jobs/CreateBackupJob.php +++ b/src/Jobs/CreateBackupJob.php @@ -3,9 +3,9 @@ namespace Spatie\BackupTool\Jobs; use Illuminate\Bus\Queueable; -use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; +use Illuminate\Queue\InteractsWithQueue; use Spatie\Backup\Tasks\Backup\BackupJobFactory; class CreateBackupJob implements ShouldQueue diff --git a/src/Rules/PathToZip.php b/src/Rules/PathToZip.php index f97d5ae..c0e8c58 100644 --- a/src/Rules/PathToZip.php +++ b/src/Rules/PathToZip.php @@ -2,8 +2,8 @@ namespace Spatie\BackupTool\Rules; -use Illuminate\Support\Str; use Illuminate\Contracts\Validation\Rule; +use Illuminate\Support\Str; class PathToZip implements Rule { diff --git a/tests/Controllers/BackupStatusesControllerTest.php b/tests/Controllers/BackupStatusesControllerTest.php index 0b0a4be..bc8fd88 100644 --- a/tests/Controllers/BackupStatusesControllerTest.php +++ b/tests/Controllers/BackupStatusesControllerTest.php @@ -2,8 +2,8 @@ namespace Spatie\BackupTool\Tests; -use Closure; use Carbon\Carbon; +use Closure; use Illuminate\Support\Facades\Cache; class BackupStatusesControllerTest extends TestCase diff --git a/tests/Controllers/BackupsControllerTest.php b/tests/Controllers/BackupsControllerTest.php index 8088b0a..353e993 100644 --- a/tests/Controllers/BackupsControllerTest.php +++ b/tests/Controllers/BackupsControllerTest.php @@ -2,8 +2,8 @@ namespace Spatie\BackupTool\Tests; -use Closure; use Carbon\Carbon; +use Closure; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Queue; use Illuminate\Support\Facades\Storage; diff --git a/tests/TestCase.php b/tests/TestCase.php index 1d0208a..42dcdb1 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -5,8 +5,8 @@ use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Storage; -use Spatie\Backup\BackupServiceProvider; use Orchestra\Testbench\TestCase as Orchestra; +use Spatie\Backup\BackupServiceProvider; use Spatie\BackupTool\BackupToolServiceProvider; abstract class TestCase extends Orchestra