original_string: private function _groupUrl($groupId, $subPath = '')
      {
          $egid = rawurlencode($groupId);
  
          if (empty($egid)) {
              throw new \InvalidArgumentException("Empty group ID given");
          }
  
          return $this->_url('/groups/' . $egid . $subPath);
      }
code: private function _groupUrl($groupId, $subPath = '')
      {
          $egid = rawurlencode($groupId);
  
          if (empty($egid)) {
              throw new \InvalidArgumentException("Empty group ID given");
          }
  
          return $this->_url('/groups/' . $egid . $subPath);
      }
code_tokens: private function _groupUrl ( $ groupId , $ subPath = '' ) { $ egid = rawurlencode ( $ groupId ) ; if ( empty ( $ egid ) ) { throw new \ InvalidArgumentException ( "Empty group ID given" ) ; } return $ this -> _url ( '/groups/' . $ egid . $ subPath ) ; }
docstring: Builds an endpoint URL for the given group and sub-path.
  
  @param string $groupId a group identifier
  @param string $subPath additional sub-path
  
  @return string a complete URL
  
  @throws \InvalidArgumentException if given an invalid group ID
docstring_tokens: Builds an endpoint URL for the given group and sub - path .