We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 | } |
@@ -1,14 +1,9 @@ |
||
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 | -use Storage; |
|
9 | -use Carbon\Carbon; |
|
10 | 4 | use Artisan; |
11 | 5 | use Log; |
6 | +use Storage; |
|
12 | 7 | |
13 | 8 | class BackupController extends Controller { |
14 | 9 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\BackupManager; |
4 | 4 | |
5 | -use Illuminate\Support\ServiceProvider; |
|
6 | 5 | use Illuminate\Routing\Router; |
6 | +use Illuminate\Support\ServiceProvider; |
|
7 | 7 | |
8 | 8 | class BackupManagerServiceProvider extends ServiceProvider |
9 | 9 | { |