original_string: public static function from($filename)
      {
          $extension = strtok(pathinfo($filename, PATHINFO_EXTENSION), '?');
  
          return self::getMimeTypeFromExtension($extension);
      }
code: public static function from($filename)
      {
          $extension = strtok(pathinfo($filename, PATHINFO_EXTENSION), '?');
  
          return self::getMimeTypeFromExtension($extension);
      }
code_tokens: public static function from ( $ filename ) { $ extension = strtok ( pathinfo ( $ filename , PATHINFO_EXTENSION ) , '?' ) ; return self :: getMimeTypeFromExtension ( $ extension ) ; }
docstring: Get the MIME type for a file based on the file's extension.
  
  @param  string  $filename
  @return string
docstring_tokens: Get the MIME type for a file based on the file s extension .