private static function formatMessage($message, $styles)
	{
		if (empty($styles) || !self::ansiColorsSupported()) {
			return $message;
		}

		return sprintf("\x1b[%sm", implode(';', array_map('Output::getStyleCode', $styles))) . $message . "\x1b[0m";
	}
private static function formatMessage($message, $styles)
	{
		if (empty($styles) || !self::ansiColorsSupported()) {
			return $message;
		}

		return sprintf("\x1b[%sm", implode(';', array_map('Output::getStyleCode', $styles))) . $message . "\x1b[0m";
	}
private static function formatMessage ( $ message , $ styles ) { if ( empty ( $ styles ) || ! self :: ansiColorsSupported ( ) ) { return $ message ; } return sprintf ( "\x1b[%sm" , implode ( ';' , array_map ( 'Output::getStyleCode' , $ styles ) ) ) . $ message . "\x1b[0m" ; }
Formats message using styles if STDOUT supports it.
@param string $message message
@param string[] $styles styles
@return string formatted message.
Formats message using styles if STDOUT supports it .