original_string: private function getRepositoryUrlWithVersionPath($version)
      {
          $repositoryUrl = $this->repositoryUrl;
          if (in_array($version, array('master', $this->trunkPath))) {
              $repositoryUrl .= '/'.$this->trunkPath;
          } elseif (in_array($version, $this->getBranches())) {
              $repositoryUrl .= '/'.$this->branchesPath.'/'.$version;
          } elseif (in_array($version, $this->getTags())) {
              $repositoryUrl .= '/'.$this->tagsPath.'/'.$version;
          } else {
              return false;
          }
  
          return ProcessUtils::escapeArgument($repositoryUrl);
      }
code: private function getRepositoryUrlWithVersionPath($version)
      {
          $repositoryUrl = $this->repositoryUrl;
          if (in_array($version, array('master', $this->trunkPath))) {
              $repositoryUrl .= '/'.$this->trunkPath;
          } elseif (in_array($version, $this->getBranches())) {
              $repositoryUrl .= '/'.$this->branchesPath.'/'.$version;
          } elseif (in_array($version, $this->getTags())) {
              $repositoryUrl .= '/'.$this->tagsPath.'/'.$version;
          } else {
              return false;
          }
  
          return ProcessUtils::escapeArgument($repositoryUrl);
      }
code_tokens: private function getRepositoryUrlWithVersionPath ( $ version ) { $ repositoryUrl = $ this -> repositoryUrl ; if ( in_array ( $ version , array ( 'master' , $ this -> trunkPath ) ) ) { $ repositoryUrl .= '/' . $ this -> trunkPath ; } elseif ( in_array ( $ version , $ this -> getBranches ( ) ) ) { $ repositoryUrl .= '/' . $ this -> branchesPath . '/' . $ version ; } elseif ( in_array ( $ version , $ this -> getTags ( ) ) ) { $ repositoryUrl .= '/' . $ this -> tagsPath . '/' . $ version ; } else { return false ; } return ProcessUtils :: escapeArgument ( $ repositoryUrl ) ; }
docstring: Returns the escaped repository URL with version path.
  Returns false when the repository URL for a version cannot be found.
  
  @param string $version
  
  @return string|bool
docstring_tokens: Returns the escaped repository URL with version path . Returns false when the repository URL for a version cannot be found .