diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 151103b2e..5a6f99fd4 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -375,16 +375,13 @@ EOT $replacement = (is_string($latestPackage->getReplacementPackage())) ? 'Use ' . $latestPackage->getReplacementPackage() . ' instead' : 'No replacement was suggested'; - - $io->writeError(''); - $io->writeError( - sprintf( - "Package %s is abandoned, you should avoid using it. %s.", - $package->getPrettyName(), - $replacement - ), - false + $packageWarning = sprintf( + 'Package %s is abandoned, you should avoid using it. %s.', + $package->getPrettyName(), + $replacement ); + $io->writeError(''); + $io->writeError('' . $packageWarning . '', false); } } else { $io->write($indent . $package, false);