We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,12 +1,7 @@ |
||
1 | 1 | <?php namespace Backpack\BackupManager\app\Http\Controllers; |
2 | 2 | |
3 | -use App\Http\Requests; |
|
4 | 3 | use App\Http\Controllers\Controller; |
5 | -use Illuminate\Http\Request; |
|
6 | -use Auth; |
|
7 | -use App; |
|
8 | 4 | use Storage; |
9 | -use Carbon\Carbon; |
|
10 | 5 | use Artisan; |
11 | 6 | use Log; |
12 | 7 |
@@ -67,8 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | if ($disk->exists($file_name)) { |
69 | 69 | return response()->download(storage_path('backups/'.$file_name)); |
70 | - } |
|
71 | - else |
|
70 | + } else |
|
72 | 71 | { |
73 | 72 | abort(404, "The backup file doesn't exist."); |
74 | 73 | } |
@@ -85,8 +84,7 @@ discard block |
||
85 | 84 | $disk->delete($file_name); |
86 | 85 | |
87 | 86 | return 'success'; |
88 | - } |
|
89 | - else |
|
87 | + } else |
|
90 | 88 | { |
91 | 89 | abort(404, "The backup file doesn't exist."); |
92 | 90 | } |