original_string: public function mime()
      {
          if (!$this->exists()) {
              return false;
          }
          if (function_exists('finfo_open')) {
              $finfo = finfo_open(FILEINFO_MIME);
              $finfo = finfo_file($finfo, $this->pwd());
              if (!$finfo) {
                  return false;
              }
              list($type) = explode(';', $finfo);
  
              return $type;
          }
          if (function_exists('mime_content_type')) {
              return mime_content_type($this->pwd());
          }
  
          return false;
      }
code: public function mime()
      {
          if (!$this->exists()) {
              return false;
          }
          if (function_exists('finfo_open')) {
              $finfo = finfo_open(FILEINFO_MIME);
              $finfo = finfo_file($finfo, $this->pwd());
              if (!$finfo) {
                  return false;
              }
              list($type) = explode(';', $finfo);
  
              return $type;
          }
          if (function_exists('mime_content_type')) {
              return mime_content_type($this->pwd());
          }
  
          return false;
      }
code_tokens: public function mime ( ) { if ( ! $ this -> exists ( ) ) { return false ; } if ( function_exists ( 'finfo_open' ) ) { $ finfo = finfo_open ( FILEINFO_MIME ) ; $ finfo = finfo_file ( $ finfo , $ this -> pwd ( ) ) ; if ( ! $ finfo ) { return false ; } list ( $ type ) = explode ( ';' , $ finfo ) ; return $ type ; } if ( function_exists ( 'mime_content_type' ) ) { return mime_content_type ( $ this -> pwd ( ) ) ; } return false ; }
docstring: Get the mime type of the file. Uses the finfo extension if
  its available, otherwise falls back to mime_content_type
  
  @return false|string The mimetype of the file, or false if reading fails.
docstring_tokens: Get the mime type of the file . Uses the finfo extension if its available otherwise falls back to mime_content_type