From 46140689814bf8a6829266035e04f7cf35ae0c97 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sat, 27 Mar 2021 09:51:55 +0100 Subject: [PATCH] wording --- src/Console/ConsoleApplication.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Console/ConsoleApplication.php b/src/Console/ConsoleApplication.php index cda28c75840..668717d7894 100644 --- a/src/Console/ConsoleApplication.php +++ b/src/Console/ConsoleApplication.php @@ -65,7 +65,11 @@ final class ConsoleApplication extends Application if ($newWorkDir !== '') { $oldWorkingDir = getcwd(); chdir($newWorkDir); - $output->isDebug() && $output->writeln('Changed CWD form ' . $oldWorkingDir . ' to ' . getcwd()); + + if ($output->isDebug()) { + $message = sprintf('Changed working directory from "%s" to "%s"', $oldWorkingDir, getcwd()); + $output->writeln($message); + } } // skip in this case, since generate content must be clear from meta-info