original_string: protected function make_url($uri, $params = array(), $uploadapi = false) {
          $api = $uploadapi ? self::UPLOAD_API : self::API;
          $url = new moodle_url($api . '/' . ltrim($uri, '/'), $params);
          return $url->out(false);
      }
code: protected function make_url($uri, $params = array(), $uploadapi = false) {
          $api = $uploadapi ? self::UPLOAD_API : self::API;
          $url = new moodle_url($api . '/' . ltrim($uri, '/'), $params);
          return $url->out(false);
      }
code_tokens: protected function make_url ( $ uri , $ params = array ( ) , $ uploadapi = false ) { $ api = $ uploadapi ? self :: UPLOAD_API : self :: API ; $ url = new moodle_url ( $ api . '/' . ltrim ( $ uri , '/' ) , $ params ) ; return $ url -> out ( false ) ; }
docstring: Build a request URL.
  
  @param string $uri The URI to request.
  @param array $params Query string parameters.
  @param bool $uploadapi Whether this works with the upload API or not.
  @return string
docstring_tokens: Build a request URL .