1
0
Fork 0

Separate package warning from view representation

pull/6228/head
Alexander Schwenn 2017-03-05 22:33:00 +01:00
parent 52ca1bd9c5
commit 086c9d5c56
1 changed files with 6 additions and 9 deletions

View File

@ -375,16 +375,13 @@ EOT
$replacement = (is_string($latestPackage->getReplacementPackage())) $replacement = (is_string($latestPackage->getReplacementPackage()))
? 'Use ' . $latestPackage->getReplacementPackage() . ' instead' ? 'Use ' . $latestPackage->getReplacementPackage() . ' instead'
: 'No replacement was suggested'; : 'No replacement was suggested';
$packageWarning = sprintf(
$io->writeError(''); 'Package %s is abandoned, you should avoid using it. %s.',
$io->writeError(
sprintf(
"<warning>Package %s is abandoned, you should avoid using it. %s.</warning>",
$package->getPrettyName(), $package->getPrettyName(),
$replacement $replacement
),
false
); );
$io->writeError('');
$io->writeError('<warning>' . $packageWarning . '</warning>', false);
} }
} else { } else {
$io->write($indent . $package, false); $io->write($indent . $package, false);