Convert ConsoleColors constants to enum cases
This commit is contained in:
parent
e1013f6c15
commit
baf11f5cb9
6 changed files with 48 additions and 48 deletions
|
@ -181,11 +181,11 @@
|
|||
{
|
||||
if($installed)
|
||||
{
|
||||
Console::out("$ext ... " . Console::formatColor("installed", ConsoleColors::LIGHT_GREEN));
|
||||
Console::out("$ext ... " . Console::formatColor("installed", ConsoleColors::LIGHT_GREEN->value));
|
||||
}
|
||||
else
|
||||
{
|
||||
Console::out("$ext ... " . Console::formatColor("missing", ConsoleColors::LIGHT_RED));
|
||||
Console::out("$ext ... " . Console::formatColor("missing", ConsoleColors::LIGHT_RED->value));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -210,11 +210,11 @@
|
|||
|
||||
try
|
||||
{
|
||||
Console::out(Console::formatColor($full_name, ConsoleColors::GREEN) . ' Version: ' . Console::formatColor($component->getVersion(), ConsoleColors::LIGHT_MAGENTA));
|
||||
Console::out(Console::formatColor($full_name, ConsoleColors::GREEN->value) . ' Version: ' . Console::formatColor($component->getVersion(), ConsoleColors::LIGHT_MAGENTA));
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
Console::outWarning('Cannot determine component version of ' . Console::formatColor($full_name, ConsoleColors::GREEN));
|
||||
Console::outWarning('Cannot determine component version of ' . Console::formatColor($full_name, ConsoleColors::GREEN->value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue