original_string: private function buildUrl($url)
      {
          $url = $this->protocol . '://' . $url . '/';
  
          if ($this->date) {
              $url .= $this->date;
          } else {
              $url .= 'latest';
          }
  
          $url .= '?base=' . $this->base;
  
          if ($this->key) {
              $url .= '&access_key=' . $this->key;
          }
  
          if ($symbols = $this->symbols) {
              $url .= '&symbols=' . implode(',', $symbols);
          }
  
          return $url;
      }
code: private function buildUrl($url)
      {
          $url = $this->protocol . '://' . $url . '/';
  
          if ($this->date) {
              $url .= $this->date;
          } else {
              $url .= 'latest';
          }
  
          $url .= '?base=' . $this->base;
  
          if ($this->key) {
              $url .= '&access_key=' . $this->key;
          }
  
          if ($symbols = $this->symbols) {
              $url .= '&symbols=' . implode(',', $symbols);
          }
  
          return $url;
      }
code_tokens: private function buildUrl ( $ url ) { $ url = $ this -> protocol . '://' . $ url . '/' ; if ( $ this -> date ) { $ url .= $ this -> date ; } else { $ url .= 'latest' ; } $ url .= '?base=' . $ this -> base ; if ( $ this -> key ) { $ url .= '&access_key=' . $ this -> key ; } if ( $ symbols = $ this -> symbols ) { $ url .= '&symbols=' . implode ( ',' , $ symbols ) ; } return $ url ; }
docstring: Forms the correct url from the different parts
  
  @param  string $url
  @return string
docstring_tokens: Forms the correct url from the different parts