original_string: public static function getMime($file)
      {
          $fileInfo = finfo_open(FILEINFO_MIME_TYPE);
          $mime = finfo_file($fileInfo, $file);
  
          return empty($mime) ? : $mime;
      }
code: public static function getMime($file)
      {
          $fileInfo = finfo_open(FILEINFO_MIME_TYPE);
          $mime = finfo_file($fileInfo, $file);
  
          return empty($mime) ? : $mime;
      }
code_tokens: public static function getMime ( $ file ) { $ fileInfo = finfo_open ( FILEINFO_MIME_TYPE ) ; $ mime = finfo_file ( $ fileInfo , $ file ) ; return empty ( $ mime ) ? : $ mime ; }
docstring: Gets the mime of a file
  
  @param string $file
  @return mixed
docstring_tokens: Gets the mime of a file