From f5fe146a05617b8b50acfb653655411ca77e8a69 Mon Sep 17 00:00:00 2001 From: Omar Date: Wed, 17 Jan 2024 16:43:30 +0100 Subject: [PATCH] Improve output - Remove unnecesary break lines - Do not show updated packages list when it comes empty --- src/UpdaterCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UpdaterCommand.php b/src/UpdaterCommand.php index 86b40c5..9320a13 100644 --- a/src/UpdaterCommand.php +++ b/src/UpdaterCommand.php @@ -398,9 +398,11 @@ protected function updatePackage(string $package) { } - $this->output->writeln("\nUpdated packages:"); $updated_packages = trim($this->runCommand('composer-lock-diff')->getOutput()); - $this->output->writeln($updated_packages . "\n"); + if (!empty($updated_packages)) { + $this->output->writeln("Updated packages:"); + $this->output->writeln($updated_packages); + } $commit_message = $this->calculateModuleUpdateCommitMessage($package);