3
final class ArcanistPHPShortTagXHPASTLinterRule
4
extends ArcanistXHPASTLinterRule {
8
public function getLintName() {
9
return pht('Use of Short Tag "%s"', '<?');
12
public function process(XHPASTNode $root) {
13
$tokens = $root->getTokens();
15
foreach ($tokens as $token) {
16
if ($token->getTypeName() === 'T_OPEN_TAG') {
17
if (trim($token->getValue()) === '<?') {
18
$this->raiseLintAtToken(
21
'Use the full form of the PHP open tag, "%s".',