From 8f0602be30f54bb58597cd354b7c6648284e4acb Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Tue, 11 Feb 2025 16:36:05 +0100 Subject: [PATCH] Apply fixes from StyleCI (#2112) --- src/Command/About.php | 3 ++- src/Command/Build.php | 3 ++- src/Command/CacheClear.php | 3 ++- src/Command/CacheClearAssets.php | 3 ++- src/Command/CacheClearTemplates.php | 3 ++- src/Command/CacheClearTranslations.php | 3 ++- src/Command/Clear.php | 3 ++- src/Command/NewPage.php | 3 ++- src/Command/NewSite.php | 3 ++- src/Command/OpenWith.php | 3 ++- src/Command/SelfUpdate.php | 3 ++- src/Command/Serve.php | 3 ++- src/Command/ShowConfig.php | 3 ++- src/Command/ShowContent.php | 3 ++- src/Command/UtilTemplatesExtract.php | 3 ++- src/Command/UtilTranslationsExtract.php | 3 ++- 16 files changed, 32 insertions(+), 16 deletions(-) diff --git a/src/Command/About.php b/src/Command/About.php index 0c4720f33..7b217e514 100644 --- a/src/Command/About.php +++ b/src/Command/About.php @@ -30,7 +30,8 @@ protected function configure() $this ->setName('about') ->setDescription('Shows a short description about Cecil') - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command displays a short description about Cecil. EOF ); diff --git a/src/Command/Build.php b/src/Command/Build.php index d3b20e9ef..57d0b45ab 100644 --- a/src/Command/Build.php +++ b/src/Command/Build.php @@ -45,7 +45,8 @@ protected function configure() new InputOption('clear-cache', null, InputOption::VALUE_OPTIONAL, 'Clear cache before build (optional cache key regular expression)', false), new InputOption('show-pages', null, InputOption::VALUE_NONE, 'Show built pages as table'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command generates the website in the output directory. To build the website, run: diff --git a/src/Command/CacheClear.php b/src/Command/CacheClear.php index 20fc8aa16..056697fdd 100644 --- a/src/Command/CacheClear.php +++ b/src/Command/CacheClear.php @@ -34,7 +34,8 @@ protected function configure() ->setDefinition([ new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command removes all cached files. EOF ); diff --git a/src/Command/CacheClearAssets.php b/src/Command/CacheClearAssets.php index 2bbe48aef..2289fa81a 100644 --- a/src/Command/CacheClearAssets.php +++ b/src/Command/CacheClearAssets.php @@ -34,7 +34,8 @@ protected function configure() ->setDefinition([ new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command removes cached assets files. EOF ); diff --git a/src/Command/CacheClearTemplates.php b/src/Command/CacheClearTemplates.php index 61418f99d..ebc722ed2 100644 --- a/src/Command/CacheClearTemplates.php +++ b/src/Command/CacheClearTemplates.php @@ -34,7 +34,8 @@ protected function configure() ->setDefinition([ new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command removes cached templates files. EOF ); diff --git a/src/Command/CacheClearTranslations.php b/src/Command/CacheClearTranslations.php index 9023e35d0..32eb94708 100644 --- a/src/Command/CacheClearTranslations.php +++ b/src/Command/CacheClearTranslations.php @@ -34,7 +34,8 @@ protected function configure() ->setDefinition([ new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command removes cached translations files. EOF ); diff --git a/src/Command/Clear.php b/src/Command/Clear.php index 0881780a0..0c9ad053b 100644 --- a/src/Command/Clear.php +++ b/src/Command/Clear.php @@ -34,7 +34,8 @@ protected function configure() ->setDefinition([ new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command removes generated, temporary and cache files. EOF ); diff --git a/src/Command/NewPage.php b/src/Command/NewPage.php index 583d515b2..7bca2b252 100644 --- a/src/Command/NewPage.php +++ b/src/Command/NewPage.php @@ -41,7 +41,8 @@ protected function configure() new InputOption('open', 'o', InputOption::VALUE_NONE, 'Open editor automatically'), new InputOption('editor', null, InputOption::VALUE_REQUIRED, 'Editor to use with open option'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command creates a new page file. To create a new page, run: diff --git a/src/Command/NewSite.php b/src/Command/NewSite.php index a2bdf8589..38d083399 100644 --- a/src/Command/NewSite.php +++ b/src/Command/NewSite.php @@ -39,7 +39,8 @@ protected function configure() new InputOption('force', 'f', InputOption::VALUE_NONE, 'Override directory if it already exists'), new InputOption('demo', null, InputOption::VALUE_NONE, 'Add demo content (pages, templates and assets)'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command creates a new website in the current directory, or in if provided. To create a new website, run: diff --git a/src/Command/OpenWith.php b/src/Command/OpenWith.php index a0a7c9960..7b8a57c15 100644 --- a/src/Command/OpenWith.php +++ b/src/Command/OpenWith.php @@ -37,7 +37,8 @@ protected function configure() new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), new InputOption('editor', null, InputOption::VALUE_REQUIRED, 'Editor to use'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command open pages directory with the editor defined in the configuration file. To open pages directory with the editor, run: diff --git a/src/Command/SelfUpdate.php b/src/Command/SelfUpdate.php index 528397c05..a1b38c455 100644 --- a/src/Command/SelfUpdate.php +++ b/src/Command/SelfUpdate.php @@ -36,7 +36,8 @@ protected function configure() new InputOption('stable', null, InputOption::VALUE_NONE, 'Force an update to the last stable version'), new InputOption('preview', null, InputOption::VALUE_NONE, 'Force an update to the last unstable version'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command checks for a newer version and, if found, downloads and installs the latest. To update Cecil, run: diff --git a/src/Command/Serve.php b/src/Command/Serve.php index d7db2c2dd..5248dceb0 100644 --- a/src/Command/Serve.php +++ b/src/Command/Serve.php @@ -53,7 +53,8 @@ protected function configure() new InputOption('clear-cache', null, InputOption::VALUE_OPTIONAL, 'Clear cache before build (optional cache key regular expression)', false), new InputOption('no-ignore-vcs', null, InputOption::VALUE_NONE, 'Changes watcher must not ignore VCS directories'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command starts the live-reloading-built-in web server. To start the server, run: diff --git a/src/Command/ShowConfig.php b/src/Command/ShowConfig.php index 4b55d7964..d7122f95e 100644 --- a/src/Command/ShowConfig.php +++ b/src/Command/ShowConfig.php @@ -37,7 +37,8 @@ protected function configure() new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), new InputOption('config', 'c', InputOption::VALUE_REQUIRED, 'Set the path to the config file'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command shows the website\'s configuration in YAML format. To show the configuration, run: diff --git a/src/Command/ShowContent.php b/src/Command/ShowContent.php index 2e9e0e8c2..9bc893103 100644 --- a/src/Command/ShowContent.php +++ b/src/Command/ShowContent.php @@ -41,7 +41,8 @@ protected function configure() new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), new InputOption('config', 'c', InputOption::VALUE_REQUIRED, 'Set the path to the config file'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command shows the website\'s content as a tree. To show the content, run: diff --git a/src/Command/UtilTemplatesExtract.php b/src/Command/UtilTemplatesExtract.php index fd7cae95c..e1e6b5bbf 100644 --- a/src/Command/UtilTemplatesExtract.php +++ b/src/Command/UtilTemplatesExtract.php @@ -38,7 +38,8 @@ protected function configure() new InputArgument('path', InputArgument::OPTIONAL, 'Use the given path as working directory'), new InputOption('force', 'f', InputOption::VALUE_NONE, 'Override files if they already exist'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command extracts built-in templates in the "layouts" directory. To extract built-in templates, run: diff --git a/src/Command/UtilTranslationsExtract.php b/src/Command/UtilTranslationsExtract.php index 636b695fc..d83c9fcc0 100644 --- a/src/Command/UtilTranslationsExtract.php +++ b/src/Command/UtilTranslationsExtract.php @@ -50,7 +50,8 @@ protected function configure(): void new InputOption('format', null, InputOption::VALUE_REQUIRED, 'Override the default output format', 'po'), new InputOption('theme', null, InputOption::VALUE_REQUIRED, 'Merge translation messages from a given theme'), ]) - ->setHelp(<<<'EOF' + ->setHelp( + <<<'EOF' The %command.name% command extracts translation strings from your templates. To extract translations from a specific directory, run: