protected static function is_format_supported($format) {
        $formats = self::fetch_supported_formats();

        $format = trim(\core_text::strtolower($format));
        return in_array($format, $formats);
    }
protected static function is_format_supported($format) {
        $formats = self::fetch_supported_formats();

        $format = trim(\core_text::strtolower($format));
        return in_array($format, $formats);
    }
protected static function is_format_supported ( $ format ) { $ formats = self :: fetch_supported_formats ( ) ; $ format = trim ( \ core_text :: strtolower ( $ format ) ) ; return in_array ( $ format , $ formats ) ; }
Whether the specified file format is supported.

@param   string $format Whether conversions between this format and another are supported
@return  bool
Whether the specified file format is supported .