From 9025c1fc7bdccc3cdef8b86e13805902bdb4e55a Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 31 Aug 2022 16:40:56 +0000 Subject: [PATCH] Apply fixes from StyleCI --- packages/framework/src/Commands/HydeBuildRssFeedCommand.php | 1 + packages/framework/src/Commands/HydeBuildSearchCommand.php | 2 +- packages/framework/src/Commands/HydeBuildSitemapCommand.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/framework/src/Commands/HydeBuildRssFeedCommand.php b/packages/framework/src/Commands/HydeBuildRssFeedCommand.php index 9641614c828..1dfc5335bef 100644 --- a/packages/framework/src/Commands/HydeBuildRssFeedCommand.php +++ b/packages/framework/src/Commands/HydeBuildRssFeedCommand.php @@ -20,6 +20,7 @@ public function handle(): int { if (! Features::rss()) { $this->error('Could not generate the RSS feed, please check your configuration.'); + return 1; } diff --git a/packages/framework/src/Commands/HydeBuildSearchCommand.php b/packages/framework/src/Commands/HydeBuildSearchCommand.php index b456a05a3fa..c68ad7237f1 100644 --- a/packages/framework/src/Commands/HydeBuildSearchCommand.php +++ b/packages/framework/src/Commands/HydeBuildSearchCommand.php @@ -18,9 +18,9 @@ class HydeBuildSearchCommand extends Command public function handle(): int { - if (! Features::rss()) { $this->error('Could not generate the search index, please check your configuration.'); + return 1; } diff --git a/packages/framework/src/Commands/HydeBuildSitemapCommand.php b/packages/framework/src/Commands/HydeBuildSitemapCommand.php index d1546ec4818..8bb01b02eb0 100644 --- a/packages/framework/src/Commands/HydeBuildSitemapCommand.php +++ b/packages/framework/src/Commands/HydeBuildSitemapCommand.php @@ -20,6 +20,7 @@ public function handle(): int { if (! Features::sitemap()) { $this->error('Could not generate the sitemap, please check your configuration.'); + return 1; }