[Console] Fixed empty style appliance.

This commit is contained in:
Jean-François Simon 2012-03-16 07:29:46 +01:00
parent 31d5fe58fe
commit ad334b68a3

View File

@ -212,6 +212,9 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
if (count($this->options)) {
$codes = array_merge($codes, $this->options);
}
if (0 === count($codes)) {
$codes = array(0);
}
return sprintf("\033[%sm%s\033[0m", implode(';', $codes), $text);
}