Components_Output::_getType PHP Method

_getType() private method

Modify the type for the --nocolor switch.
private _getType ( string $type ) : string
$type string The message to rewrite.
return string The message type that should be used for the output.
    private function _getType($type)
    {
        if ($this->_nocolor) {
            return '';
        } else {
            return $type;
        }
    }