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()))
? 'Use ' . $latestPackage->getReplacementPackage() . ' instead'
: 'No replacement was suggested';
$io->writeError('');
$io->writeError(
sprintf(
"<warning>Package %s is abandoned, you should avoid using it. %s.</warning>",
$packageWarning = sprintf(
'Package %s is abandoned, you should avoid using it. %s.',
$package->getPrettyName(),
$replacement
),
false
);
$io->writeError('');
$io->writeError('<warning>' . $packageWarning . '</warning>', false);
}
} else {
$io->write($indent . $package, false);