We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function setupRoutes(Router $router) |
| 46 | 46 | { |
| 47 | - $router->group(['namespace' => 'Backpack\BackupManager\app\Http\Controllers'], function ($router) { |
|
| 47 | + $router->group(['namespace' => 'Backpack\BackupManager\app\Http\Controllers'], function($router) { |
|
| 48 | 48 | require __DIR__.'/app/Http/routes.php'; |
| 49 | 49 | }); |
| 50 | 50 | } |
@@ -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 | } |
@@ -40,13 +40,13 @@ |
||
| 40 | 40 | { |
| 41 | 41 | try { |
| 42 | 42 | // start the backup process |
| 43 | - Artisan::call('backup:run'); |
|
| 43 | + Artisan::call('backup:run'); |
|
| 44 | 44 | $output = Artisan::output(); |
| 45 | 45 | |
| 46 | - // log the results |
|
| 47 | - Log::info("Backpack\BackupManager -- new backup started from admin interface \r\n".$output); |
|
| 48 | - // return the results as a response to the ajax call |
|
| 49 | - echo $output; |
|
| 46 | + // log the results |
|
| 47 | + Log::info("Backpack\BackupManager -- new backup started from admin interface \r\n".$output); |
|
| 48 | + // return the results as a response to the ajax call |
|
| 49 | + echo $output; |
|
| 50 | 50 | } catch (Exception $e) { |
| 51 | 51 | Response::make($e->getMessage(), 500); |
| 52 | 52 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth']], function () { |
|
| 3 | +Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth']], function() { |
|
| 4 | 4 | |
| 5 | 5 | // Backup |
| 6 | 6 | Route::get('backup', 'BackupController@index'); |