original_string: public static function upload_course_backup($hubcourseid, \stored_file $backupfile) {
          $curl = new \curl();
          $params = array();
          $params['filetype'] = self::HUB_BACKUP_FILE_TYPE;
          $params['courseid'] = $hubcourseid;
          $params['file'] = $backupfile;
          $params['token'] = registration::get_token();
          $curl->post(HUB_MOODLEORGHUBURL . '/local/hub/webservice/upload.php', $params);
      }
code: public static function upload_course_backup($hubcourseid, \stored_file $backupfile) {
          $curl = new \curl();
          $params = array();
          $params['filetype'] = self::HUB_BACKUP_FILE_TYPE;
          $params['courseid'] = $hubcourseid;
          $params['file'] = $backupfile;
          $params['token'] = registration::get_token();
          $curl->post(HUB_MOODLEORGHUBURL . '/local/hub/webservice/upload.php', $params);
      }
code_tokens: public static function upload_course_backup ( $ hubcourseid , \ stored_file $ backupfile ) { $ curl = new \ curl ( ) ; $ params = array ( ) ; $ params [ 'filetype' ] = self :: HUB_BACKUP_FILE_TYPE ; $ params [ 'courseid' ] = $ hubcourseid ; $ params [ 'file' ] = $ backupfile ; $ params [ 'token' ] = registration :: get_token ( ) ; $ curl -> post ( HUB_MOODLEORGHUBURL . '/local/hub/webservice/upload.php' , $ params ) ; }
docstring: Uploads a course backup
  
  @param int $hubcourseid id of the published course on moodle.net, it must be published from this site
  @param \stored_file $backupfile
docstring_tokens: Uploads a course backup