original_string: public function addRelativeUrl($relativeUrl) {
      $this->pathTrailingSlash = S::endsWith($relativeUrl, '/');
      
      $parts = array_filter(explode('/', trim($relativeUrl, '/')));
      
      $this->path = array_merge($this->path, $parts);
      return $this;
    }
code: public function addRelativeUrl($relativeUrl) {
      $this->pathTrailingSlash = S::endsWith($relativeUrl, '/');
      
      $parts = array_filter(explode('/', trim($relativeUrl, '/')));
      
      $this->path = array_merge($this->path, $parts);
      return $this;
    }
code_tokens: public function addRelativeUrl ( $ relativeUrl ) { $ this -> pathTrailingSlash = S :: endsWith ( $ relativeUrl , '/' ) ; $ parts = array_filter ( explode ( '/' , trim ( $ relativeUrl , '/' ) ) ) ; $ this -> path = array_merge ( $ this -> path , $ parts ) ; return $ this ; }
docstring: Modifies the current URL with adding an relative Url to the pathParts
  
  @param string $url only / slashes, first / is optional no query string, no fragment
docstring_tokens: Modifies the current URL with adding an relative Url to the pathParts