src/Behat/Behat/Output/Printer/Formatter/ConsoleFormatter.php
private function replaceStyle($match)
    {
        if (!$this->isDecorated()) {
            return $match[2];
        }

        if ($this->hasStyle($match[1])) {
            $style = $this->getStyle($match[1]);
        } else {
            return $match[0];
        }

        return $style->apply($match[2]);
    }
private function replaceStyle($match)
    {
        if (!$this->isDecorated()) {
            return $match[2];
        }

        if ($this->hasStyle($match[1])) {
            $style = $this->getStyle($match[1]);
        } else {
            return $match[0];
        }

        return $style->apply($match[2]);
    }
private function replaceStyle ( $ match ) { if ( ! $ this -> isDecorated ( ) ) { return $ match [ 2 ] ; } if ( $ this -> hasStyle ( $ match [ 1 ] ) ) { $ style = $ this -> getStyle ( $ match [ 1 ] ) ; } else { return $ match [ 0 ] ; } return $ style -> apply ( $ match [ 2 ] ) ; }
Replaces style of the output.

@param array $match

@return string The replaced style
Replaces style of the output .