@@ -181,7 +181,7 @@ |
||
| 181 | 181 | */ |
| 182 | 182 | protected function dispatchToRouter() |
| 183 | 183 | { |
| 184 | - return function ($request) { |
|
| 184 | + return function($request) { |
|
| 185 | 185 | $this->app->instance('request', $request); |
| 186 | 186 | |
| 187 | 187 | return $this->router->dispatch($request); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function __invoke() |
| 41 | 41 | { |
| 42 | - View::replaceNamespace('errors', collect(config('view.paths'))->map(function ($path) { |
|
| 42 | + View::replaceNamespace('errors', collect(config('view.paths'))->map(function($path) { |
|
| 43 | 43 | return "{$path}/errors"; |
| 44 | 44 | })->push(__DIR__.'/views')->all()); |
| 45 | 45 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function initDebug() |
| 41 | 41 | { |
| 42 | - return take(new PleasingPageHandler, function ($handler) { |
|
| 42 | + return take(new PleasingPageHandler, function($handler) { |
|
| 43 | 43 | $this->registerEditor($handler); |
| 44 | 44 | }); |
| 45 | 45 | } |
@@ -306,7 +306,7 @@ |
||
| 306 | 306 | */ |
| 307 | 307 | protected function renderExceptionWithGDebug(Throwable $e) |
| 308 | 308 | { |
| 309 | - return take(new GDebug, function ($debug) { |
|
| 309 | + return take(new GDebug, function($debug) { |
|
| 310 | 310 | |
| 311 | 311 | $debug->pushHandler($this->DebugHandler()); |
| 312 | 312 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | // Finally, we will set the application's environment based on the configuration |
| 48 | 48 | // values that were loaded. |
| 49 | - $app->detectEnvironment(function () use ($config) { |
|
| 49 | + $app->detectEnvironment(function() use ($config) { |
|
| 50 | 50 | return $config->get('app.env', 'production'); |
| 51 | 51 | }); |
| 52 | 52 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function register() |
| 41 | 41 | { |
| 42 | - $this->app->booted(function () |
|
| 42 | + $this->app->booted(function() |
|
| 43 | 43 | { |
| 44 | 44 | $this->app['router']->getRoutes()->refreshNameLookups(); |
| 45 | 45 | $this->app['router']->getRoutes()->refreshActionLookups(); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | protected static function usesAction($uri) |
| 78 | 78 | { |
| 79 | - return ['uses' => function () use ($uri) { |
|
| 79 | + return ['uses' => function() use ($uri) { |
|
| 80 | 80 | throw new LogicException(__('route.hasNoAction', ['uri' => $uri])); |
| 81 | 81 | }]; |
| 82 | 82 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | protected static function findClosureAction(array $action) |
| 92 | 92 | { |
| 93 | - return Arr::first($action, function ($value, $key) { |
|
| 93 | + return Arr::first($action, function($value, $key) { |
|
| 94 | 94 | return is_callable($value) && is_numeric($key); |
| 95 | 95 | }); |
| 96 | 96 | } |
@@ -258,7 +258,7 @@ |
||
| 258 | 258 | */ |
| 259 | 259 | public function getSegments() |
| 260 | 260 | { |
| 261 | - return array_values(array_filter($this->segments, function ($value) { |
|
| 261 | + return array_values(array_filter($this->segments, function($value) { |
|
| 262 | 262 | return $value != ''; |
| 263 | 263 | })); |
| 264 | 264 | } |
@@ -356,7 +356,7 @@ |
||
| 356 | 356 | */ |
| 357 | 357 | public function regenerate($destroy = false) |
| 358 | 358 | { |
| 359 | - return take($this->migrate($destroy), function () { |
|
| 359 | + return take($this->migrate($destroy), function() { |
|
| 360 | 360 | $this->regenerateToken(); |
| 361 | 361 | }); |
| 362 | 362 | } |