@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $this->setName('maintenance') |
| 88 | 88 | ->setDescription('The Maintenance management command'); |
| 89 | 89 | |
| 90 | - $this->addArgument('type', 'type of action [up|down]', 'up', true, true, false, function ($val) { |
|
| 90 | + $this->addArgument('type', 'type of action [up|down]', 'up', true, true, false, function($val) { |
|
| 91 | 91 | if (!in_array($val, ['up', 'down'])) { |
| 92 | 92 | throw new RuntimeException(sprintf( |
| 93 | 93 | 'Invalid argument type [%s], must be one of [up, down]', |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | false, |
| 114 | 114 | true, |
| 115 | 115 | false, |
| 116 | - function ($val) { |
|
| 116 | + function($val) { |
|
| 117 | 117 | if (strlen($val) > 0 && (!is_numeric($val) || (int) $val <= 0)) { |
| 118 | 118 | throw new RuntimeException(sprintf( |
| 119 | 119 | 'Invalid retry value [%s], must be an integer greather than zero', |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | false, |
| 130 | 130 | true, |
| 131 | 131 | false, |
| 132 | - function ($val) { |
|
| 132 | + function($val) { |
|
| 133 | 133 | if (strlen($val) > 0 && (!is_numeric($val) || (int) $val <= 0)) { |
| 134 | 134 | throw new RuntimeException(sprintf( |
| 135 | 135 | 'Invalid refresh value [%s], must be an integer greather than zero', |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | false, |
| 153 | 153 | true, |
| 154 | 154 | false, |
| 155 | - function ($val) { |
|
| 155 | + function($val) { |
|
| 156 | 156 | if (strlen($val) > 0 && (!is_numeric($val) || (int) $val < 200 || (int) $val > 505)) { |
| 157 | 157 | throw new RuntimeException(sprintf( |
| 158 | 158 | 'Invalid HTTP status value [%s], must be between 200 and 505', |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $this->app->share(Application::class, $this->app); |
| 79 | 79 | $this->app->share('app', $this->app); |
| 80 | - $this->app->share(ConsoleApp::class, function () { |
|
| 80 | + $this->app->share(ConsoleApp::class, function() { |
|
| 81 | 81 | return new ConsoleApp('PLATINE CONSOLE', '1.0.0'); |
| 82 | 82 | }); |
| 83 | 83 | $this->app->share(ContainerInterface::class, $this->app); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $this->app->bind(RouteCollectionInterface::class, RouteCollection::class); |
| 87 | 87 | $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class); |
| 88 | 88 | $this->app->bind(MaintenanceDriverInterface::class, FileMaintenanceDriver::class); |
| 89 | - $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) { |
|
| 89 | + $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) { |
|
| 90 | 90 | return new ResponseEmitter( |
| 91 | 91 | $app->get(Config::class)->get('app.response_chunck_size', null) |
| 92 | 92 | ); |