Differential D21674 Diff 51581 src/applications/owners/controller/PhabricatorOwnersDetailController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/controller/PhabricatorOwnersDetailController.php
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | private function buildPackageDetailView( | ||||
$dominion = $package->getDominion(); | $dominion = $package->getDominion(); | ||||
$dominion_map = PhabricatorOwnersPackage::getDominionOptionsMap(); | $dominion_map = PhabricatorOwnersPackage::getDominionOptionsMap(); | ||||
$spec = idx($dominion_map, $dominion, array()); | $spec = idx($dominion_map, $dominion, array()); | ||||
$name = idx($spec, 'short', $dominion); | $name = idx($spec, 'short', $dominion); | ||||
$view->addProperty(pht('Dominion'), $name); | $view->addProperty(pht('Dominion'), $name); | ||||
$authority_mode = $package->getAuthorityMode(); | |||||
$authority_map = PhabricatorOwnersPackage::getAuthorityOptionsMap(); | |||||
$spec = idx($authority_map, $authority_mode, array()); | |||||
$name = idx($spec, 'short', $authority_mode); | |||||
$view->addProperty(pht('Authority'), $name); | |||||
$auto = $package->getAutoReview(); | $auto = $package->getAutoReview(); | ||||
$autoreview_map = PhabricatorOwnersPackage::getAutoreviewOptionsMap(); | $autoreview_map = PhabricatorOwnersPackage::getAutoreviewOptionsMap(); | ||||
$spec = idx($autoreview_map, $auto, array()); | $spec = idx($autoreview_map, $auto, array()); | ||||
$name = idx($spec, 'name', $auto); | $name = idx($spec, 'name', $auto); | ||||
$view->addProperty(pht('Auto Review'), $name); | $view->addProperty(pht('Auto Review'), $name); | ||||
$rule = $package->newAuditingRule(); | $rule = $package->newAuditingRule(); | ||||
$view->addProperty(pht('Auditing'), $rule->getDisplayName()); | $view->addProperty(pht('Auditing'), $rule->getDisplayName()); | ||||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |