From c5d341716f274d9d8cdc4999614c329d85a6b951 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Tue, 21 Jul 2020 23:19:38 +0200 Subject: [PATCH] done const --- compiler/src/Console/Command/CompileCommand.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/compiler/src/Console/Command/CompileCommand.php b/compiler/src/Console/Command/CompileCommand.php index 25e0d920884..e7c7e285ca6 100644 --- a/compiler/src/Console/Command/CompileCommand.php +++ b/compiler/src/Console/Command/CompileCommand.php @@ -25,6 +25,11 @@ final class CompileCommand extends Command */ private const ANSI = '--ansi'; + /** + * @var string + */ + private const DONE = 'Done'; + /** * @var string */ @@ -88,7 +93,7 @@ final class CompileCommand extends Command $this->composerJsonManipulator->fixComposerJson($composerJsonFile); - $this->symfonyStyle->success('Done'); + $this->symfonyStyle->success(self::DONE); $this->symfonyStyle->newLine(2); @@ -107,7 +112,7 @@ final class CompileCommand extends Command $output->write($buffer); }); - $this->symfonyStyle->success('Done'); + $this->symfonyStyle->success(self::DONE); $this->symfonyStyle->newLine(2); @@ -115,14 +120,14 @@ final class CompileCommand extends Command $this->downgradePHPStanCodeToPHP71($output); - $this->symfonyStyle->success('Done'); + $this->symfonyStyle->success(self::DONE); $this->symfonyStyle->newLine(2); $this->symfonyStyle->title('4. Renaming PHPStorm stubs from "*.php" to ".stub"'); $this->jetbrainsStubsRenamer->renamePhpStormStubs($this->buildDir); - $this->symfonyStyle->success('Done'); + $this->symfonyStyle->success(self::DONE); $this->symfonyStyle->newLine(2); // the '--no-parallel' is needed, so "scoper.php.inc" can "require __DIR__ ./vendor/autoload.php" @@ -140,7 +145,7 @@ final class CompileCommand extends Command $output->write($buffer); }); - $this->symfonyStyle->success('Done'); + $this->symfonyStyle->success(self::DONE); $this->symfonyStyle->newLine(2); @@ -149,7 +154,7 @@ final class CompileCommand extends Command $this->composerJsonManipulator->restoreComposerJson($composerJsonFile); $this->restoreDependenciesLocallyIfNotCi($output); - $this->symfonyStyle->success('Done'); + $this->symfonyStyle->success(self::DONE); return ShellCode::SUCCESS; }