@@ -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); |
@@ -645,7 +645,7 @@ |
||
645 | 645 | |
646 | 646 | $this->bootAppCallbacks($this->bootingCallbacks); |
647 | 647 | |
648 | - array_walk($this->serviceProviders, function ($provider) { |
|
648 | + array_walk($this->serviceProviders, function($provider) { |
|
649 | 649 | $this->bootProviderClass($provider); |
650 | 650 | }); |
651 | 651 |
@@ -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(); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | */ |
261 | 261 | public function select($query, $bindings = [], $useReadPdo = true) |
262 | 262 | { |
263 | - return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) { |
|
263 | + return $this->run($query, $bindings, function($query, $bindings) use ($useReadPdo) { |
|
264 | 264 | |
265 | 265 | if ($this->pretending()) |
266 | 266 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | */ |
330 | 330 | public function statement($query, $bindings = []) |
331 | 331 | { |
332 | - return $this->run($query, $bindings, function ($query, $bindings) { |
|
332 | + return $this->run($query, $bindings, function($query, $bindings) { |
|
333 | 333 | |
334 | 334 | if ($this->pretending()) |
335 | 335 | { |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | */ |
356 | 356 | public function affectingStatement($query, $bindings = []) |
357 | 357 | { |
358 | - return $this->run($query, $bindings, function ($query, $bindings) { |
|
358 | + return $this->run($query, $bindings, function($query, $bindings) { |
|
359 | 359 | |
360 | 360 | if ($this->pretending()) |
361 | 361 | { |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | */ |
385 | 385 | public function prepend(Closure $callback) |
386 | 386 | { |
387 | - return $this->withFreshQueryLog(function () use ($callback) { |
|
387 | + return $this->withFreshQueryLog(function() use ($callback) { |
|
388 | 388 | |
389 | 389 | $this->pretending = true; |
390 | 390 | |
@@ -608,7 +608,7 @@ discard block |
||
608 | 608 | return; |
609 | 609 | } |
610 | 610 | |
611 | - switch($event) |
|
611 | + switch ($event) |
|
612 | 612 | { |
613 | 613 | case 'beginTransaction': |
614 | 614 | return $this->events->dispatch(new TransactionBegin($this)); |
@@ -49,17 +49,17 @@ |
||
49 | 49 | */ |
50 | 50 | protected function registerConfigurationServices() |
51 | 51 | { |
52 | - $this->app->singleton('db.factory', function ($app) |
|
52 | + $this->app->singleton('db.factory', function($app) |
|
53 | 53 | { |
54 | 54 | return new ConnectionFactory($app); |
55 | 55 | }); |
56 | 56 | |
57 | - $this->app->singleton('db', function ($app) |
|
57 | + $this->app->singleton('db', function($app) |
|
58 | 58 | { |
59 | 59 | return new DatabaseManager($app, $app['db.factory']); |
60 | 60 | }); |
61 | 61 | |
62 | - $this->app->bind('db.connection', function ($app) { |
|
62 | + $this->app->bind('db.connection', function($app) { |
|
63 | 63 | return $app['db']->connection(); |
64 | 64 | }); |
65 | 65 | } |