@@ -25,15 +25,15 @@ discard block |
||
25 | 25 | |
26 | 26 | private function loadOpenAdminRoutes(): void |
27 | 27 | { |
28 | - Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web']], function () { |
|
29 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/chief-open-routes.php'); |
|
28 | + Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web']], function() { |
|
29 | + $this->loadRoutesFrom(__DIR__.'/../../routes/chief-open-routes.php'); |
|
30 | 30 | }); |
31 | 31 | } |
32 | 32 | |
33 | 33 | private function loadAdminRoutes(): void |
34 | 34 | { |
35 | - Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web-chief', 'auth:chief']], function () { |
|
36 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/chief-admin-routes.php'); |
|
35 | + Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web-chief', 'auth:chief']], function() { |
|
36 | + $this->loadRoutesFrom(__DIR__.'/../../routes/chief-admin-routes.php'); |
|
37 | 37 | |
38 | 38 | // Add project specific chief routing... |
39 | 39 | $projectChiefRoutePath = config('chief.route.admin-filepath', null); |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | return; |
54 | 54 | } |
55 | 55 | |
56 | - app()->booted(function () { |
|
56 | + app()->booted(function() { |
|
57 | 57 | $routeName = config('chief.route.name'); |
58 | 58 | |
59 | - Route::get('{slug?}', function ($slug = '/') { |
|
59 | + Route::get('{slug?}', function($slug = '/') { |
|
60 | 60 | return ChiefResponse::fromSlug($slug); |
61 | 61 | })->name($routeName) |
62 | 62 | ->where('slug', '(.*)?') |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | Relation::morphMap(['fragmentmodel' => FragmentModel::class]); |
51 | 51 | |
52 | - if (! $this->app->make(AdminEnvironment::class)->check()) { |
|
52 | + if (!$this->app->make(AdminEnvironment::class)->check()) { |
|
53 | 53 | return; |
54 | 54 | } |
55 | 55 | |
@@ -86,11 +86,11 @@ discard block |
||
86 | 86 | (new ConsoleServiceProvider($this->app))->register(); |
87 | 87 | } |
88 | 88 | |
89 | - $this->app->singleton(Registry::class, function () { |
|
89 | + $this->app->singleton(Registry::class, function() { |
|
90 | 90 | return new Registry([]); |
91 | 91 | }); |
92 | 92 | |
93 | - $this->app->singleton(Settings::class, function () { |
|
93 | + $this->app->singleton(Settings::class, function() { |
|
94 | 94 | return new Settings(); |
95 | 95 | }); |
96 | 96 | |
@@ -99,13 +99,13 @@ discard block |
||
99 | 99 | if ($this->app->make(AdminEnvironment::class)->check()) { |
100 | 100 | $this->app->when(SettingsController::class) |
101 | 101 | ->needs(SettingFields::class) |
102 | - ->give(function () { |
|
102 | + ->give(function() { |
|
103 | 103 | return new SettingFields(new Settings()); |
104 | 104 | }) |
105 | 105 | ; |
106 | 106 | |
107 | 107 | // Global chief nav singleton |
108 | - $this->app->singleton(Nav::class, function () { |
|
108 | + $this->app->singleton(Nav::class, function() { |
|
109 | 109 | return new Nav(); |
110 | 110 | }); |
111 | 111 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | 'role' => \Thinktomorrow\Chief\Admin\Authorization\Role::class, |
140 | 140 | ]; |
141 | 141 | |
142 | - Auth::provider('chief-eloquent', function ($app, array $config) { |
|
142 | + Auth::provider('chief-eloquent', function($app, array $config) { |
|
143 | 143 | return new ChiefUserProvider($app['hash'], $config['model']); |
144 | 144 | }); |
145 | 145 | } |