@@ -25,9 +25,9 @@ |
||
| 25 | 25 | $locales = config('chief.locales'); |
| 26 | 26 | |
| 27 | 27 | foreach ($locales as $locale) { |
| 28 | - $filepath = public_path('image-sitemap-' . $locale . '.xml'); |
|
| 28 | + $filepath = public_path('image-sitemap-'.$locale.'.xml'); |
|
| 29 | 29 | |
| 30 | - $this->info('Generating an image sitemap for locale: ' . $locale . ' at: ' . $filepath); |
|
| 30 | + $this->info('Generating an image sitemap for locale: '.$locale.' at: '.$filepath); |
|
| 31 | 31 | |
| 32 | 32 | $this->sitemapXmlFile->create($locale, $filepath); |
| 33 | 33 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | public function boot(): void |
| 11 | 11 | { |
| 12 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'chief'); |
|
| 12 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'chief'); |
|
| 13 | 13 | |
| 14 | 14 | Blade::componentNamespace('Thinktomorrow\\Chief\\App\\View\\Components', 'chief'); |
| 15 | 15 | |
@@ -28,19 +28,19 @@ discard block |
||
| 28 | 28 | Blade::component('chief::templates.mail.template', 'chief::mail.template'); |
| 29 | 29 | |
| 30 | 30 | // Chief directives |
| 31 | - Blade::directive('adminRoute', function ($expression) { |
|
| 31 | + Blade::directive('adminRoute', function($expression) { |
|
| 32 | 32 | return "<?php echo \$manager->route({$expression}); ?>"; |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | - Blade::directive('adminCan', function ($expression) { |
|
| 35 | + Blade::directive('adminCan', function($expression) { |
|
| 36 | 36 | return "<?php if (isset(\$manager) && \$manager->can({$expression})) { ?>"; |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | - Blade::directive('elseAdminCan', function () { |
|
| 39 | + Blade::directive('elseAdminCan', function() { |
|
| 40 | 40 | return '<?php } else { ?>'; |
| 41 | 41 | }); |
| 42 | 42 | |
| 43 | - Blade::directive('endAdminCan', function () { |
|
| 43 | + Blade::directive('endAdminCan', function() { |
|
| 44 | 44 | return '<?php } ?>'; |
| 45 | 45 | }); |
| 46 | 46 | |