@@ -26,9 +26,9 @@ |
||
26 | 26 | $locales = ChiefLocaleConfig::getLocales(); |
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 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | $this->bootFrontendEssentials(); |
83 | 83 | |
84 | - if (! $this->app->make(AdminEnvironment::class)->check(request())) { |
|
84 | + if (!$this->app->make(AdminEnvironment::class)->check(request())) { |
|
85 | 85 | return; |
86 | 86 | } |
87 | 87 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | Relation::morphMap([FragmentModel::resourceKey() => FragmentModel::class]); |
122 | 122 | |
123 | - Blade::directive('fragments', function () { |
|
123 | + Blade::directive('fragments', function() { |
|
124 | 124 | return '<?php echo app(\\Thinktomorrow\\Chief\\Fragments\\App\\Queries\\FragmentsRenderer::class)->render($model instanceof \Thinktomorrow\Chief\Shared\Concerns\Nestable\Tree\NestedNode ? $model->getModel() : $model, app()->getLocale(), get_defined_vars()); ?>'; |
125 | 125 | }); |
126 | 126 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | 'role' => Role::class, |
150 | 150 | ]; |
151 | 151 | |
152 | - Auth::provider('chief-eloquent', function ($app, array $config) { |
|
152 | + Auth::provider('chief-eloquent', function($app, array $config) { |
|
153 | 153 | return new ChiefUserProvider($app['hash'], $config['model']); |
154 | 154 | }); |
155 | 155 | } |
@@ -157,10 +157,10 @@ discard block |
||
157 | 157 | private function bootChiefSquanto(): void |
158 | 158 | { |
159 | 159 | // Project specific squanto files |
160 | - $this->app['view']->addNamespace('squanto', __DIR__ . '/../../resources/views/vendor/squanto'); |
|
160 | + $this->app['view']->addNamespace('squanto', __DIR__.'/../../resources/views/vendor/squanto'); |
|
161 | 161 | |
162 | 162 | // Chief squanto defaults |
163 | - $this->app['view']->addNamespace('squanto', base_path() . '/resources/views/vendor/thinktomorrow/chief/vendor/squanto'); |
|
163 | + $this->app['view']->addNamespace('squanto', base_path().'/resources/views/vendor/thinktomorrow/chief/vendor/squanto'); |
|
164 | 164 | |
165 | 165 | // Use the chief routing |
166 | 166 | $this->app['config']['squanto.use_default_routes'] = false; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | // User events |
172 | 172 | Event::listen(Login::class, LogSuccessfulLogin::class); |
173 | 173 | Event::listen(UserInvited::class, SendInvite::class); |
174 | - Event::listen(InviteAccepted::class, EnableUser::class . '@onAcceptingInvite'); |
|
174 | + Event::listen(InviteAccepted::class, EnableUser::class.'@onAcceptingInvite'); |
|
175 | 175 | |
176 | 176 | // Managed model events |
177 | 177 | Event::listen(ManagedModelCreated::class, [CreateUrlForPage::class, 'onManagedModelCreated']); |
@@ -210,18 +210,18 @@ discard block |
||
210 | 210 | |
211 | 211 | public function register() |
212 | 212 | { |
213 | - $this->mergeConfigFrom(__DIR__ . '/../../config/chief.php', 'chief'); |
|
214 | - $this->mergeConfigFrom(__DIR__ . '/../../config/chief-settings.php', 'chief-settings'); |
|
213 | + $this->mergeConfigFrom(__DIR__.'/../../config/chief.php', 'chief'); |
|
214 | + $this->mergeConfigFrom(__DIR__.'/../../config/chief-settings.php', 'chief-settings'); |
|
215 | 215 | |
216 | 216 | if ($this->app->runningInConsole()) { |
217 | 217 | (new ConsoleServiceProvider($this->app))->register(); |
218 | 218 | } |
219 | 219 | |
220 | - $this->app->singleton(Registry::class, function () { |
|
220 | + $this->app->singleton(Registry::class, function() { |
|
221 | 221 | return new Registry([]); |
222 | 222 | }); |
223 | 223 | |
224 | - $this->app->singleton(Settings::class, function () { |
|
224 | + $this->app->singleton(Settings::class, function() { |
|
225 | 225 | return new Settings(); |
226 | 226 | }); |
227 | 227 | |
@@ -232,12 +232,12 @@ discard block |
||
232 | 232 | if ($this->app->make(AdminEnvironment::class)->check(request())) { |
233 | 233 | $this->app->when(SettingsController::class) |
234 | 234 | ->needs(SettingFields::class) |
235 | - ->give(function () { |
|
235 | + ->give(function() { |
|
236 | 236 | return new SettingFields(new Settings()); |
237 | 237 | }); |
238 | 238 | |
239 | 239 | // Global chief nav singleton |
240 | - $this->app->singleton(Nav::class, function () { |
|
240 | + $this->app->singleton(Nav::class, function() { |
|
241 | 241 | return new Nav(); |
242 | 242 | }); |
243 | 243 |