original_string: public function getMimeType()
      {
          if (!$this->mimeType) {
              $finfo = finfo_open(FILEINFO_MIME_TYPE, $this->magicFile);
              if (!$finfo) {
                  throw new \UnexpectedValueException('Failed to open fileinfo database');
              }
              $this->mimeType = finfo_file($finfo, $this->file);
          }
          return $this->mimeType;
      }
code: public function getMimeType()
      {
          if (!$this->mimeType) {
              $finfo = finfo_open(FILEINFO_MIME_TYPE, $this->magicFile);
              if (!$finfo) {
                  throw new \UnexpectedValueException('Failed to open fileinfo database');
              }
              $this->mimeType = finfo_file($finfo, $this->file);
          }
          return $this->mimeType;
      }
code_tokens: public function getMimeType ( ) { if ( ! $ this -> mimeType ) { $ finfo = finfo_open ( FILEINFO_MIME_TYPE , $ this -> magicFile ) ; if ( ! $ finfo ) { throw new \ UnexpectedValueException ( 'Failed to open fileinfo database' ) ; } $ this -> mimeType = finfo_file ( $ finfo , $ this -> file ) ; } return $ this -> mimeType ; }
docstring: Returns the file mime type on success
  
  @return string|false
  @throws \UnexpectedValueException When failed to open fileinfo database
docstring_tokens: Returns the file mime type on success