Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/markuprule/PhutilRemarkupEvalRule.php
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | final class PhutilRemarkupEvalRule extends PhutilRemarkupRule { | ||||
private function evaluateExpression($expression) { | private function evaluateExpression($expression) { | ||||
static $string_map; | static $string_map; | ||||
if ($string_map === null) { | if ($string_map === null) { | ||||
$string_map = array( | $string_map = array( | ||||
'strings' => array( | 'strings' => array( | ||||
'platform' => array( | 'platform' => array( | ||||
'server' => array( | 'server' => array( | ||||
'name' => pht('Phabricator'), | 'name' => PlatformSymbols::getPlatformServerName(), | ||||
'path' => pht('phabricator/'), | 'path' => pht('phabricator/'), | ||||
), | ), | ||||
'client' => array( | 'client' => array( | ||||
'name' => pht('Arcanist'), | 'name' => PlatformSymbols::getPlatformClientName(), | ||||
'path' => pht('arcanist/'), | 'path' => pht('arcanist/'), | ||||
), | ), | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
$parts = explode('.', $expression); | $parts = explode('.', $expression); | ||||
Show All 18 Lines |