@@ -26,15 +26,15 @@ |
||
| 26 | 26 | MaintenanceModeMiddleware::class, |
| 27 | 27 | ]); |
| 28 | 28 | |
| 29 | - $this->app->singleton('maintenance', function () { |
|
| 29 | + $this->app->singleton('maintenance', function() { |
|
| 30 | 30 | return new MaintenanceModeService($this->app); |
| 31 | 31 | }); |
| 32 | 32 | |
| 33 | - $this->app->singleton('command.up', function () { |
|
| 33 | + $this->app->singleton('command.up', function() { |
|
| 34 | 34 | return new UpCommand($this->app['maintenance']); |
| 35 | 35 | }); |
| 36 | 36 | |
| 37 | - $this->app->singleton('command.down', function () { |
|
| 37 | + $this->app->singleton('command.down', function() { |
|
| 38 | 38 | return new DownCommand($this->app['maintenance']); |
| 39 | 39 | }); |
| 40 | 40 | |
@@ -42,9 +42,9 @@ |
||
| 42 | 42 | return new Response(app()['view']->make('errors.503'), 503); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - if(config('maintenance')){ |
|
| 45 | + if (config('maintenance')) { |
|
| 46 | 46 | return response(config('maintenance')["response"], config('maintenance')["httpCode"]); |
| 47 | - }else{ |
|
| 47 | + } else { |
|
| 48 | 48 | return app()->abort(503, 'The application is down for maintenance.'); |
| 49 | 49 | } |
| 50 | 50 | } |