@@ -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(); |
@@ -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 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public function compileInsertGetId(Builder $builder, $values, $sequence) |
| 65 | 65 | { |
| 66 | - if (is_null($sequence)) $sequence = 'id' ; |
|
| 66 | + if (is_null($sequence)) $sequence = 'id'; |
|
| 67 | 67 | |
| 68 | 68 | return $this->compileInsert($builder, $values).' returning '.$this->wrap($sequence); |
| 69 | 69 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function processColumnListing($results) |
| 43 | 43 | { |
| 44 | - return array_map(function ($result) { |
|
| 44 | + return array_map(function($result) { |
|
| 45 | 45 | return ((object) $result)->column_name; |
| 46 | 46 | }, $results); |
| 47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function accessColumnListing($results) |
| 43 | 43 | { |
| 44 | - return array_map(function ($result) { |
|
| 44 | + return array_map(function($result) { |
|
| 45 | 45 | return ((object) $result)->column_name; |
| 46 | 46 | }, $results); |
| 47 | 47 | } |