private static function containsEscapeCharacters($string)
    {
        $escapeCodePattern = '#' . static::ANSI_ESCAPE_CODE_REGEX . '#';
        $result            = preg_match($escapeCodePattern, $string);

        return (boolean) $result;
    }
private static function containsEscapeCharacters($string)
    {
        $escapeCodePattern = '#' . static::ANSI_ESCAPE_CODE_REGEX . '#';
        $result            = preg_match($escapeCodePattern, $string);

        return (boolean) $result;
    }
private static function containsEscapeCharacters ( $ string ) { $ escapeCodePattern = '#' . static :: ANSI_ESCAPE_CODE_REGEX . '#' ; $ result = preg_match ( $ escapeCodePattern , $ string ) ; return ( boolean ) $ result ; }
Check if given string contains color escape code

@param string $string

@return boolean
Check if given string contains color escape code