[Console] Removed text transformation for empty styles.

This commit is contained in:
Jean-François Simon 2012-08-06 21:22:20 +02:00
parent c7e324af90
commit 696a65370e
1 changed files with 4 additions and 0 deletions

View File

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