original_string: public function get_addons_repository_url() {
          global $CFG;
  
          if (!empty($CFG->config_php_settings['alternativeaddonsrepositoryurl'])) {
              $url = $CFG->config_php_settings['alternativeaddonsrepositoryurl'];
          } else {
              $url = 'https://moodle.org/plugins/get.php';
          }
  
          if (!$this->should_send_site_info()) {
              return new moodle_url($url);
          }
  
          // Append the basic information about our site.
          $site = array(
              'fullname' => $this->get_site_fullname(),
              'url' => $this->get_site_url(),
              'majorversion' => $this->get_site_major_version(),
          );
  
          $site = $this->encode_site_information($site);
  
          return new moodle_url($url, array('site' => $site));
      }
code: public function get_addons_repository_url() {
          global $CFG;
  
          if (!empty($CFG->config_php_settings['alternativeaddonsrepositoryurl'])) {
              $url = $CFG->config_php_settings['alternativeaddonsrepositoryurl'];
          } else {
              $url = 'https://moodle.org/plugins/get.php';
          }
  
          if (!$this->should_send_site_info()) {
              return new moodle_url($url);
          }
  
          // Append the basic information about our site.
          $site = array(
              'fullname' => $this->get_site_fullname(),
              'url' => $this->get_site_url(),
              'majorversion' => $this->get_site_major_version(),
          );
  
          $site = $this->encode_site_information($site);
  
          return new moodle_url($url, array('site' => $site));
      }
code_tokens: public function get_addons_repository_url ( ) { global $ CFG ; if ( ! empty ( $ CFG -> config_php_settings [ 'alternativeaddonsrepositoryurl' ] ) ) { $ url = $ CFG -> config_php_settings [ 'alternativeaddonsrepositoryurl' ] ; } else { $ url = 'https://moodle.org/plugins/get.php' ; } if ( ! $ this -> should_send_site_info ( ) ) { return new moodle_url ( $ url ) ; } // Append the basic information about our site. $ site = array ( 'fullname' => $ this -> get_site_fullname ( ) , 'url' => $ this -> get_site_url ( ) , 'majorversion' => $ this -> get_site_major_version ( ) , ) ; $ site = $ this -> encode_site_information ( $ site ) ; return new moodle_url ( $ url , array ( 'site' => $ site ) ) ; }
docstring: Returns URL to the repository that addons can be searched in and installed from
  
  @return moodle_url
docstring_tokens: Returns URL to the repository that addons can be searched in and installed from