From ceb245594fcbc9f6ac5cb7937f2ea3539409aa5e Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Fri, 19 Jul 2024 16:47:43 +0200 Subject: [PATCH 1/2] [Rector] Applied all Symfony 5.x rectors to the production codebase Applied rules: * CommandConstantReturnCodeRector --- src/lib/Command/IbexaSetupCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Command/IbexaSetupCommand.php b/src/lib/Command/IbexaSetupCommand.php index 2e10660..2c2c817 100644 --- a/src/lib/Command/IbexaSetupCommand.php +++ b/src/lib/Command/IbexaSetupCommand.php @@ -104,7 +104,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $output->writeln("\nPlatform.sh config files installed successfully"); } - return 0; + return \Symfony\Component\Console\Command\Command::SUCCESS; } protected function getCommonFiles(string $product): Finder From 61859797e978e766173f4faab24404bc7b2df29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Fri, 9 Aug 2024 13:33:09 +0200 Subject: [PATCH 2/2] Applied code review suggestions --- src/lib/Command/IbexaSetupCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Command/IbexaSetupCommand.php b/src/lib/Command/IbexaSetupCommand.php index 2c2c817..dbe51c4 100644 --- a/src/lib/Command/IbexaSetupCommand.php +++ b/src/lib/Command/IbexaSetupCommand.php @@ -15,6 +15,7 @@ use Composer\Semver\VersionParser; use Exception; use Ibexa\PostInstall\IbexaProductVersion; +use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Exception\RuntimeException; use Symfony\Component\Console\Helper\ProgressBar; use Symfony\Component\Console\Input\InputInterface; @@ -104,7 +105,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $output->writeln("\nPlatform.sh config files installed successfully"); } - return \Symfony\Component\Console\Command\Command::SUCCESS; + return Command::SUCCESS; } protected function getCommonFiles(string $product): Finder