@@ -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 | } |