[Console] Removed text transformation for empty styles.
This commit is contained in:
parent
c7e324af90
commit
696a65370e
@ -213,6 +213,10 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
|
|||||||
$codes = array_merge($codes, $this->options);
|
$codes = array_merge($codes, $this->options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (0 === count($codes)) {
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
|
||||||
return sprintf("\033[%sm%s\033[0m", implode(';', $codes), $text);
|
return sprintf("\033[%sm%s\033[0m", implode(';', $codes), $text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user