We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | $this->loadViewsFrom(realpath(__DIR__.'/resources/views'), 'backupmanager'); |
31 | 31 | |
32 | 32 | // publish config file |
33 | - $this->publishes([ __DIR__.'/config/laravel-backup.php' => config_path('laravel-backup.php'), ], 'config'); |
|
33 | + $this->publishes([__DIR__.'/config/laravel-backup.php' => config_path('laravel-backup.php'), ], 'config'); |
|
34 | 34 | // publish lang files |
35 | - $this->publishes([ __DIR__.'/resources/lang' => resource_path('lang/vendor/backpack'), ], 'lang'); |
|
35 | + $this->publishes([__DIR__.'/resources/lang' => resource_path('lang/vendor/backpack'), ], 'lang'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | private function registerBackupManager() |
69 | 69 | { |
70 | - $this->app->bind('backupmanager',function($app){ |
|
70 | + $this->app->bind('backupmanager', function($app) { |
|
71 | 71 | return new BackupManager($app); |
72 | 72 | }); |
73 | 73 | } |
@@ -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 | } |