Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryURI.php
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | switch ($this->getEffectiveIOType()) { | ||||
case self::IO_READ: | case self::IO_READ: | ||||
case self::IO_READWRITE: | case self::IO_READWRITE: | ||||
// By default, only show the "best" version of the builtin URI, not the | // By default, only show the "best" version of the builtin URI, not the | ||||
// other redundant versions. | // other redundant versions. | ||||
$repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
$other_uris = $repository->getURIs(); | $other_uris = $repository->getURIs(); | ||||
$identifier_value = array( | $identifier_value = array( | ||||
self::BUILTIN_IDENTIFIER_CALLSIGN => 3, | self::BUILTIN_IDENTIFIER_SHORTNAME => 3, | ||||
self::BUILTIN_IDENTIFIER_SHORTNAME => 2, | self::BUILTIN_IDENTIFIER_CALLSIGN => 2, | ||||
self::BUILTIN_IDENTIFIER_ID => 1, | self::BUILTIN_IDENTIFIER_ID => 1, | ||||
); | ); | ||||
$have_identifiers = array(); | $have_identifiers = array(); | ||||
foreach ($other_uris as $other_uri) { | foreach ($other_uris as $other_uri) { | ||||
if ($other_uri->getIsDisabled()) { | if ($other_uri->getIsDisabled()) { | ||||
continue; | continue; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 611 Lines • Show Last 20 Lines |