original_string: public static function reset_token() {
          global $DB;
          if (!$hub = self::get_registration()) {
              return true;
          }
          $DB->delete_records('registration_hubs', array('id' => $hub->id));
          self::$registration = null;
      }
code: public static function reset_token() {
          global $DB;
          if (!$hub = self::get_registration()) {
              return true;
          }
          $DB->delete_records('registration_hubs', array('id' => $hub->id));
          self::$registration = null;
      }
code_tokens: public static function reset_token ( ) { global $ DB ; if ( ! $ hub = self :: get_registration ( ) ) { return true ; } $ DB -> delete_records ( 'registration_hubs' , array ( 'id' => $ hub -> id ) ) ; self :: $ registration = null ; }
docstring: Resets the registration token without changing site identifier so site can be re-registered
  
  @return bool
docstring_tokens: Resets the registration token without changing site identifier so site can be re - registered