src/Rocketeer/Services/Display/QueueExplainer.php
protected function colorize($message, $color = null)
    {
        if (!$color) {
            return $message;
        }

        // Create tag
        $tag = in_array($color, ['error', 'comment', 'info'], true) ? $color : 'fg='.$color;

        return sprintf('<%s>%s</%s>', $tag, $message, $tag);
    }
protected function colorize($message, $color = null)
    {
        if (!$color) {
            return $message;
        }

        // Create tag
        $tag = in_array($color, ['error', 'comment', 'info'], true) ? $color : 'fg='.$color;

        return sprintf('<%s>%s</%s>', $tag, $message, $tag);
    }
protected function colorize ( $ message , $ color = null ) { if ( ! $ color ) { return $ message ; } // Create tag $ tag = in_array ( $ color , [ 'error' , 'comment' , 'info' ] , true ) ? $ color : 'fg=' . $ color ; return sprintf ( '<%s>%s</%s>' , $ tag , $ message , $ tag ) ; }
Colorize text using Symfony Console tags.

@param string      $message
@param string|null $color

@return string
Colorize text using Symfony Console tags .