original_string: public function uninstall_cleanup() {
          global $CFG;
          require_once($CFG->dirroot.'/repository/lib.php');
  
          $repo = \repository::get_type_by_typename($this->name);
          if ($repo) {
              $repo->delete(true);
          }
  
          parent::uninstall_cleanup();
      }
code: public function uninstall_cleanup() {
          global $CFG;
          require_once($CFG->dirroot.'/repository/lib.php');
  
          $repo = \repository::get_type_by_typename($this->name);
          if ($repo) {
              $repo->delete(true);
          }
  
          parent::uninstall_cleanup();
      }
code_tokens: public function uninstall_cleanup ( ) { global $ CFG ; require_once ( $ CFG -> dirroot . '/repository/lib.php' ) ; $ repo = \ repository :: get_type_by_typename ( $ this -> name ) ; if ( $ repo ) { $ repo -> delete ( true ) ; } parent :: uninstall_cleanup ( ) ; }
docstring: Pre-uninstall hook.
  This is intended for disabling of plugin, some DB table purging, etc.
  Converts all linked files to standard files when repository is removed
  and cleans up all records in the DB for that repository.
docstring_tokens: Pre - uninstall hook . This is intended for disabling of plugin some DB table purging etc . Converts all linked files to standard files when repository is removed and cleans up all records in the DB for that repository .