Differential D21776 Diff 51932 src/lint/linter/xhpast/rules/ArcanistProductNameLiteralXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistProductNameLiteralXHPASTLinterRule.php
Show All 35 Lines | foreach ($calls as $call) { | ||||
continue; | continue; | ||||
} | } | ||||
$identifier = $parameters->getChildByIndex(0); | $identifier = $parameters->getChildByIndex(0); | ||||
if (!$identifier->isConstantString()) { | if (!$identifier->isConstantString()) { | ||||
continue; | continue; | ||||
} | } | ||||
$literal_value = $identifier->getStringLiteralValue(); | $literal_value = $identifier->evalStatic(); | ||||
$matches = phutil_preg_match_all($search_pattern, $literal_value); | $matches = phutil_preg_match_all($search_pattern, $literal_value); | ||||
if (!$matches[0]) { | if (!$matches[0]) { | ||||
continue; | continue; | ||||
} | } | ||||
$name_list = array(); | $name_list = array(); | ||||
foreach ($matches[0] as $match) { | foreach ($matches[0] as $match) { | ||||
Show All 15 Lines |