original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Check whether the format is supported
  
  @throws Exception\InvalidArgumentException
  @param string $format
  @return boolean
docstring_tokens: Check whether the format is supported