Differential D16472 Diff 39630 src/applications/repository/storage/PhabricatorRepositoryStatusMessage.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryStatusMessage.php
| Show All 34 Lines | return array( | ||||
| ), | ), | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function getParameter($key, $default = null) { | public function getParameter($key, $default = null) { | ||||
| return idx($this->parameters, $key, $default); | return idx($this->parameters, $key, $default); | ||||
| } | } | ||||
| public function getStatusTypeName() { | |||||
| $names = array( | |||||
| self::TYPE_INIT => pht('Error While Initializing Repository'), | |||||
| self::TYPE_FETCH => pht('Error While Fetching Changes'), | |||||
| self::TYPE_NEEDS_UPDATE => pht('Repository Needs Update'), | |||||
| ); | |||||
| $type = $this->getStatusType(); | |||||
| return idx($names, $type, $type); | |||||
| } | |||||
| } | } | ||||