think\console\output\Formatter::applyCurrentStyle PHP Method

applyCurrentStyle() private method

从堆栈应用样式到文字
private applyCurrentStyle ( string $text ) : string
$text string 文字
return string
    private function applyCurrentStyle($text)
    {
        return $this->isDecorated() && strlen($text) > 0 ? $this->styleStack->getCurrent()->apply($text) : $text;
    }