@@ -23,7 +23,7 @@ |
||
| 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 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | { |
| 18 | 18 | $diskNames = config('backup.backup.destination.disks'); |
| 19 | 19 | |
| 20 | - if (! count($diskNames)) { |
|
| 20 | + if (!count($diskNames)) { |
|
| 21 | 21 | return ['error' => 'No disks configured!']; |
| 22 | 22 | } |
| 23 | 23 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $data[] = [ |
| 33 | 33 | 'path' => $file, |
| 34 | 34 | 'name' => pathinfo($file, PATHINFO_BASENAME), |
| 35 | - 'size' => round((int) $disk->size($file) / 1048576, 2).' MB', |
|
| 35 | + 'size' => round((int)$disk->size($file)/1048576, 2).' MB', |
|
| 36 | 36 | 'disk' => $diskName, |
| 37 | 37 | 'download' => ($adapter instanceof Local) ? true : false, |
| 38 | 38 | 'date' => Carbon::createFromTimeStamp($disk->lastModified($file)) |
@@ -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 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $disk = Storage::disk($request->input('disk')); |
| 72 | 72 | $path = $request->input('path'); |
| 73 | 73 | |
| 74 | - if (! $disk->exists($path)) { |
|
| 74 | + if (!$disk->exists($path)) { |
|
| 75 | 75 | return ['error' => 'There is no such file!']; |
| 76 | 76 | } |
| 77 | 77 | |