selectTokensOfType('T_INLINE_HTML');
foreach ($inline_html as $html) {
if (substr($html->getValue(), 0, 2) == '#!') {
// Ignore shebang lines.
continue;
}
if (preg_match('/^\s*$/', $html->getValue())) {
continue;
}
$this->raiseLintAtToken(
$html,
pht('PHP files must only contain PHP code.'));
break;
}
}
}