Differential D11680 Diff 28251 src/applications/repository/data/PhabricatorRepositoryURINormalizer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/data/PhabricatorRepositoryURINormalizer.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | final class PhabricatorRepositoryURINormalizer extends Phobject { | ||||
public function __construct($type, $uri) { | public function __construct($type, $uri) { | ||||
switch ($type) { | switch ($type) { | ||||
case self::TYPE_GIT: | case self::TYPE_GIT: | ||||
case self::TYPE_SVN: | case self::TYPE_SVN: | ||||
case self::TYPE_MERCURIAL: | case self::TYPE_MERCURIAL: | ||||
break; | break; | ||||
default: | default: | ||||
throw new Exception(pht('Unknown URI type "%s"!')); | throw new Exception(pht('Unknown URI type "%s"!', $type)); | ||||
} | } | ||||
$this->type = $type; | $this->type = $type; | ||||
$this->uri = $uri; | $this->uri = $uri; | ||||
} | } | ||||
/* -( Normalizing URIs )--------------------------------------------------- */ | /* -( Normalizing URIs )--------------------------------------------------- */ | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |