From cf4d182c38b966f82ba571e166e557a029e18163 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 23 Jul 2024 14:40:01 +0200 Subject: [PATCH] Changed Command::SUCCESS to self::SUCCESS --- src/bundle/Command/CreateExampleDataCommand.php | 2 +- src/bundle/Command/CreateExampleDataManagerCommand.php | 2 +- src/bundle/Command/CreateLanguageCommand.php | 2 +- src/bundle/Command/TestSiteaccessCommand.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bundle/Command/CreateExampleDataCommand.php b/src/bundle/Command/CreateExampleDataCommand.php index 3043b77..89f9e92 100644 --- a/src/bundle/Command/CreateExampleDataCommand.php +++ b/src/bundle/Command/CreateExampleDataCommand.php @@ -77,7 +77,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $this->logger->log(LogLevel::INFO, $statsEnd); $output->writeln($statsEnd); - return Command::SUCCESS; + return self::SUCCESS; } private function parseInputData(string $serializedTransitionEvent): InitialEvent diff --git a/src/bundle/Command/CreateExampleDataManagerCommand.php b/src/bundle/Command/CreateExampleDataManagerCommand.php index d20d71c..18f8d09 100644 --- a/src/bundle/Command/CreateExampleDataManagerCommand.php +++ b/src/bundle/Command/CreateExampleDataManagerCommand.php @@ -62,7 +62,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $event = $this->stopwatch->stop('timer'); $output->writeln(sprintf('Duration: %d s, memory: %s MB', $event->getDuration() / 1000, $event->getMemory() / 1024 / 1024)); - return Command::SUCCESS; + return self::SUCCESS; } private function executeCommand(OutputInterface $output, $cmd, float $timeout = 1200) diff --git a/src/bundle/Command/CreateLanguageCommand.php b/src/bundle/Command/CreateLanguageCommand.php index 3c50dbc..f401747 100644 --- a/src/bundle/Command/CreateLanguageCommand.php +++ b/src/bundle/Command/CreateLanguageCommand.php @@ -70,6 +70,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->languageService->createLanguage($languageCreateStruct); - return Command::SUCCESS; + return self::SUCCESS; } } diff --git a/src/bundle/Command/TestSiteaccessCommand.php b/src/bundle/Command/TestSiteaccessCommand.php index 355e6dc..8a12732 100644 --- a/src/bundle/Command/TestSiteaccessCommand.php +++ b/src/bundle/Command/TestSiteaccessCommand.php @@ -37,6 +37,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln($this->siteaccess->name); - return Command::SUCCESS; + return self::SUCCESS; } }