@@ -26,9 +26,9 @@ |
||
26 | 26 | $locales = ChiefSites::locales(); |
27 | 27 | |
28 | 28 | foreach ($locales as $locale) { |
29 | - $filepath = public_path('sitemap-' . $locale . '.xml'); |
|
29 | + $filepath = public_path('sitemap-'.$locale.'.xml'); |
|
30 | 30 | |
31 | - $this->info('Generating a sitemap for locale: ' . $locale . ' at: ' . $filepath); |
|
31 | + $this->info('Generating a sitemap for locale: '.$locale.' at: '.$filepath); |
|
32 | 32 | |
33 | 33 | $this->sitemapXmlFile->create($locale, $filepath, $this->createAlternateLocales($locales, $locale)); |
34 | 34 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | $this->bootEssentials(); |
97 | 97 | |
98 | - if (! $this->app->make(AdminEnvironment::class)->check(request())) { |
|
98 | + if (!$this->app->make(AdminEnvironment::class)->check(request())) { |
|
99 | 99 | return; |
100 | 100 | } |
101 | 101 | |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | 'role' => Role::class, |
162 | 162 | ]; |
163 | 163 | |
164 | - Auth::provider('chief-eloquent', function ($app, array $config) { |
|
164 | + Auth::provider('chief-eloquent', function($app, array $config) { |
|
165 | 165 | return new ChiefUserProvider($app['hash'], $config['model']); |
166 | 166 | }); |
167 | 167 | } |
@@ -169,10 +169,10 @@ discard block |
||
169 | 169 | private function bootChiefSquanto(): void |
170 | 170 | { |
171 | 171 | // Project specific squanto files |
172 | - $this->app['view']->addNamespace('squanto', __DIR__ . '/../../resources/views/vendor/squanto'); |
|
172 | + $this->app['view']->addNamespace('squanto', __DIR__.'/../../resources/views/vendor/squanto'); |
|
173 | 173 | |
174 | 174 | // Chief squanto defaults |
175 | - $this->app['view']->addNamespace('squanto', base_path() . '/resources/views/vendor/thinktomorrow/chief/vendor/squanto'); |
|
175 | + $this->app['view']->addNamespace('squanto', base_path().'/resources/views/vendor/thinktomorrow/chief/vendor/squanto'); |
|
176 | 176 | |
177 | 177 | // Use the chief routing |
178 | 178 | $this->app['config']['squanto.use_default_routes'] = false; |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | // User events |
184 | 184 | Event::listen(Login::class, LogSuccessfulLogin::class); |
185 | 185 | Event::listen(UserInvited::class, SendInvite::class); |
186 | - Event::listen(InviteAccepted::class, EnableUser::class . '@onAcceptingInvite'); |
|
186 | + Event::listen(InviteAccepted::class, EnableUser::class.'@onAcceptingInvite'); |
|
187 | 187 | |
188 | 188 | // Managed model events |
189 | 189 | Event::listen(ManagedModelCreated::class, [CreateUrlForPage::class, 'onManagedModelCreated']); |
@@ -222,18 +222,18 @@ discard block |
||
222 | 222 | |
223 | 223 | public function register() |
224 | 224 | { |
225 | - $this->mergeConfigFrom(__DIR__ . '/../../config/chief.php', 'chief'); |
|
226 | - $this->mergeConfigFrom(__DIR__ . '/../../config/chief-settings.php', 'chief-settings'); |
|
225 | + $this->mergeConfigFrom(__DIR__.'/../../config/chief.php', 'chief'); |
|
226 | + $this->mergeConfigFrom(__DIR__.'/../../config/chief-settings.php', 'chief-settings'); |
|
227 | 227 | |
228 | 228 | if ($this->app->runningInConsole()) { |
229 | 229 | (new ConsoleServiceProvider($this->app))->register(); |
230 | 230 | } |
231 | 231 | |
232 | - $this->app->singleton(Registry::class, function () { |
|
232 | + $this->app->singleton(Registry::class, function() { |
|
233 | 233 | return new Registry([]); |
234 | 234 | }); |
235 | 235 | |
236 | - $this->app->singleton(Settings::class, function () { |
|
236 | + $this->app->singleton(Settings::class, function() { |
|
237 | 237 | return new Settings(); |
238 | 238 | }); |
239 | 239 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | if ($this->app->make(AdminEnvironment::class)->check(request())) { |
247 | 247 | $this->app->when(SettingsController::class) |
248 | 248 | ->needs(SettingFields::class) |
249 | - ->give(function () { |
|
249 | + ->give(function() { |
|
250 | 250 | return new SettingFields(new Settings()); |
251 | 251 | }); |
252 | 252 | Relation::morphMap(['fragmentmodel' => FragmentModel::class]); |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | Relation::morphMap(['menuitem' => MenuItem::class]); |
255 | 255 | |
256 | 256 | // Global chief nav singleton |
257 | - $this->app->singleton(Nav::class, function () { |
|
257 | + $this->app->singleton(Nav::class, function() { |
|
258 | 258 | return new Nav(); |
259 | 259 | }); |
260 | 260 |