Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/constants/PhabricatorRepositoryType.php
| Show All 12 Lines | static $map = array( | ||||
| self::REPOSITORY_TYPE_SVN => 'Subversion', | self::REPOSITORY_TYPE_SVN => 'Subversion', | ||||
| self::REPOSITORY_TYPE_MERCURIAL => 'Mercurial', | self::REPOSITORY_TYPE_MERCURIAL => 'Mercurial', | ||||
| ); | ); | ||||
| return $map; | return $map; | ||||
| } | } | ||||
| public static function getNameForRepositoryType($type) { | public static function getNameForRepositoryType($type) { | ||||
| $map = self::getAllRepositoryTypes(); | $map = self::getAllRepositoryTypes(); | ||||
| return idx($map, $type, 'Unknown'); | return idx($map, $type, pht('Unknown')); | ||||
| } | } | ||||
| } | } | ||||