@@ -75,17 +75,17 @@ |
||
75 | 75 | |
76 | 76 | public function register() |
77 | 77 | { |
78 | - $this->callAfterResolving(Schedule::class, function (Schedule $schedule) { |
|
78 | + $this->callAfterResolving(Schedule::class, function(Schedule $schedule) { |
|
79 | 79 | $schedule->command('chief:sitemap')->dailyAt('01:00'); |
80 | 80 | $schedule->command('chief:image-sitemap')->weekly(); |
81 | 81 | }); |
82 | 82 | |
83 | 83 | // Setup commands |
84 | - $this->app->bind(CreatePageCommand::class, function ($app) { |
|
84 | + $this->app->bind(CreatePageCommand::class, function($app) { |
|
85 | 85 | return new CreatePageCommand($app->make(FileManipulation::class), new SetupConfig(config('chief.setup', []))); |
86 | 86 | }); |
87 | 87 | |
88 | - $this->app->bind(CreateFragmentCommand::class, function ($app) { |
|
88 | + $this->app->bind(CreateFragmentCommand::class, function($app) { |
|
89 | 89 | return new CreateFragmentCommand($app->make(FileManipulation::class), new SetupConfig(config('chief.setup', []))); |
90 | 90 | }); |
91 | 91 | } |
@@ -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 |