original_string: public function getRepositoryUrl($repositoryId, $selector = null)
      {
          $baseUrl = $this->getRepositoryBaseUrl($repositoryId);
          if ($baseUrl === null) {
              return null;
          }
          $repositoryUrl = $this->buildUrl($baseUrl);
  
          if ($selector !== null && $selector !== '') {
              $repositoryUrl->getQuery()->modify([Constants::PARAM_SELECTOR => $selector]);
          }
  
          return $repositoryUrl;
      }
code: public function getRepositoryUrl($repositoryId, $selector = null)
      {
          $baseUrl = $this->getRepositoryBaseUrl($repositoryId);
          if ($baseUrl === null) {
              return null;
          }
          $repositoryUrl = $this->buildUrl($baseUrl);
  
          if ($selector !== null && $selector !== '') {
              $repositoryUrl->getQuery()->modify([Constants::PARAM_SELECTOR => $selector]);
          }
  
          return $repositoryUrl;
      }
code_tokens: public function getRepositoryUrl ( $ repositoryId , $ selector = null ) { $ baseUrl = $ this -> getRepositoryBaseUrl ( $ repositoryId ) ; if ( $ baseUrl === null ) { return null ; } $ repositoryUrl = $ this -> buildUrl ( $ baseUrl ) ; if ( $ selector !== null && $ selector !== '' ) { $ repositoryUrl -> getQuery ( ) -> modify ( [ Constants :: PARAM_SELECTOR => $ selector ] ) ; } return $ repositoryUrl ; }
docstring: Returns the repository URL of a repository.
  
  @param string $repositoryId
  @param string|null $selector add optional cmis selector parameter
  @return Url|null
docstring_tokens: Returns the repository URL of a repository .