Differential D17192 Diff 41342 src/applications/audit/constants/PhabricatorAuditCommitStatusConstants.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/constants/PhabricatorAuditCommitStatusConstants.php
Show All 22 Lines | final class PhabricatorAuditCommitStatusConstants extends Phobject { | ||||
public static function getStatusName($code) { | public static function getStatusName($code) { | ||||
return idx(self::getStatusNameMap(), $code, pht('Unknown')); | return idx(self::getStatusNameMap(), $code, pht('Unknown')); | ||||
} | } | ||||
public static function getOpenStatusConstants() { | public static function getOpenStatusConstants() { | ||||
return array( | return array( | ||||
self::CONCERN_RAISED, | self::CONCERN_RAISED, | ||||
self::NEEDS_AUDIT, | self::NEEDS_AUDIT, | ||||
self::PARTIALLY_AUDITED, | |||||
); | ); | ||||
} | } | ||||
public static function getStatusColor($code) { | public static function getStatusColor($code) { | ||||
switch ($code) { | switch ($code) { | ||||
case self::CONCERN_RAISED: | case self::CONCERN_RAISED: | ||||
$color = 'red'; | $color = 'red'; | ||||
break; | break; | ||||
Show All 36 Lines |