original_string: public function checkMimeType($fileInfo)
      {
          $mime = $fileInfo->getMimetype();
          if ($mime != 'directory' && !in_array($mime, $this->getFileManager()->getExtensionsAllowed())) {
              return 'Mime type "' . $mime . '" not allowed for file "' . $fileInfo->getFilename() . '"';
          }
  
          return true;
      }
code: public function checkMimeType($fileInfo)
      {
          $mime = $fileInfo->getMimetype();
          if ($mime != 'directory' && !in_array($mime, $this->getFileManager()->getExtensionsAllowed())) {
              return 'Mime type "' . $mime . '" not allowed for file "' . $fileInfo->getFilename() . '"';
          }
  
          return true;
      }
code_tokens: public function checkMimeType ( $ fileInfo ) { $ mime = $ fileInfo -> getMimetype ( ) ; if ( $ mime != 'directory' && ! in_array ( $ mime , $ this -> getFileManager ( ) -> getExtensionsAllowed ( ) ) ) { return 'Mime type "' . $ mime . '" not allowed for file "' . $ fileInfo -> getFilename ( ) . '"' ; } return true ; }
docstring: Check the mimetype
  
  @param FileInfo $fileInfo
  @return string|bool
docstring_tokens: Check the mimetype