@@ -11,11 +11,11 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | if ($this->app->runningInConsole()) { |
| 13 | 13 | $this->publishes([ |
| 14 | - __DIR__ . '/../config/backup_panel.php' => config_path('backup_panel.php') |
|
| 14 | + __DIR__.'/../config/backup_panel.php' => config_path('backup_panel.php') |
|
| 15 | 15 | ], 'backup-panel-config'); |
| 16 | 16 | |
| 17 | 17 | $this->publishes([ |
| 18 | - __DIR__ . '/../public' => public_path('vendor/backup_panel'), |
|
| 18 | + __DIR__.'/../public' => public_path('vendor/backup_panel'), |
|
| 19 | 19 | ], 'backup-panel-assets'); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | 'prefix' => config('backup_panel.path'), |
| 24 | 24 | 'namespace' => 'PavelMironchik\BackupPanel\Http\Controllers', |
| 25 | 25 | 'middleware' => 'web' |
| 26 | - ], function () { |
|
| 26 | + ], function() { |
|
| 27 | 27 | $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
| 28 | 28 | }); |
| 29 | 29 | |
@@ -53,11 +53,11 @@ discard block |
||
| 53 | 53 | $path = $request->input('path'); |
| 54 | 54 | |
| 55 | 55 | $adapter = $disk->getDriver()->getAdapter(); |
| 56 | - if (! $adapter instanceof Local) { |
|
| 56 | + if (!$adapter instanceof Local) { |
|
| 57 | 57 | abort(404, 'Only files from local disk can be downloaded!'); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - if (! $disk->exists($path)) { |
|
| 60 | + if (!$disk->exists($path)) { |
|
| 61 | 61 | abort(404, 'There is no such file!'); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | $disk = Storage::disk($request->input('disk')); |
| 71 | 71 | $path = $request->input('path'); |
| 72 | 72 | |
| 73 | - if (! $disk->exists($path)) { |
|
| 73 | + if (!$disk->exists($path)) { |
|
| 74 | 74 | return ['error' => 'There is no such file!']; |
| 75 | 75 | } |
| 76 | 76 | |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Illuminate\Support\Facades\Route; |
| 4 | 4 | |
| 5 | -Route::prefix('api')->group(function () { |
|
| 5 | +Route::prefix('api')->group(function() { |
|
| 6 | 6 | Route::get('/files', 'BackupController@files'); |
| 7 | 7 | |
| 8 | 8 | Route::get('/files/download', 'BackupController@download'); |