public static function isSupportedFormat($format)
    {
        if (!is_string($format)) {
            throw new Exception\InvalidArgumentException(__METHOD__ . " file_format must be a string");
        }
        return in_array((string) $format, self::$supportedFormats);
    }
public static function isSupportedFormat($format)
    {
        if (!is_string($format)) {
            throw new Exception\InvalidArgumentException(__METHOD__ . " file_format must be a string");
        }
        return in_array((string) $format, self::$supportedFormats);
    }
public static function isSupportedFormat ( $ format ) { if ( ! is_string ( $ format ) ) { throw new Exception \ InvalidArgumentException ( __METHOD__ . " file_format must be a string" ) ; } return in_array ( ( string ) $ format , self :: $ supportedFormats ) ; }
Check whether the format is supported

@throws Exception\InvalidArgumentException
@param string $format
@return boolean
Check whether the format is supported