Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 1,145 Lines • ▼ Show 20 Lines | public function getRemoteProtocol() { | ||||
$uri = $this->getRemoteURIObject(); | $uri = $this->getRemoteURIObject(); | ||||
return $uri->getProtocol(); | return $uri->getProtocol(); | ||||
} | } | ||||
/** | /** | ||||
* Get a parsed object representation of the repository's remote URI.. | * Get a parsed object representation of the repository's remote URI.. | ||||
* | * | ||||
* @return wild A @{class@libphutil:PhutilURI}. | * @return wild A @{class@arcanist:PhutilURI}. | ||||
* @task uri | * @task uri | ||||
*/ | */ | ||||
public function getRemoteURIObject() { | public function getRemoteURIObject() { | ||||
$raw_uri = $this->getDetail('remote-uri'); | $raw_uri = $this->getDetail('remote-uri'); | ||||
if (!strlen($raw_uri)) { | if (!strlen($raw_uri)) { | ||||
return new PhutilURI(''); | return new PhutilURI(''); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,719 Lines • Show Last 20 Lines |