function ShowCommand::updateStatusToVersionStyle
2 calls to ShowCommand::updateStatusToVersionStyle()
- ShowCommand::getVersionStyle in vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php - ShowCommand::printPackages in vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php, line 1420
Class
- ShowCommand
- @author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be> @author Jérémy Romey <jeremyFreeAgent> @author Mihai Plasoianu <mihai@plasoianu.de>
Namespace
Composer\CommandCode
private function updateStatusToVersionStyle(string $updateStatus) : string {
// 'up-to-date' is printed green
// 'semver-safe-update' is printed red
// 'update-possible' is printed yellow
return str_replace([
'up-to-date',
'semver-safe-update',
'update-possible',
], [
'info',
'highlight',
'comment',
], $updateStatus);
}