Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistInlineHTMLXHPASTLinterRule.php
Context not available. | |||||
$inline_html = $root->selectTokensOfType('T_INLINE_HTML'); | $inline_html = $root->selectTokensOfType('T_INLINE_HTML'); | ||||
foreach ($inline_html as $html) { | foreach ($inline_html as $html) { | ||||
if (substr($html->getValue(), 0, 2) == '#!') { | if (@substr($html->getValue(), 0, 2) == '#!') { | ||||
// Ignore shebang lines. | // Ignore shebang lines. | ||||
continue; | continue; | ||||
} | } | ||||
if (preg_match('/^\s*$/', $html->getValue())) { | if (@preg_match('/^\s*$/', $html->getValue())) { | ||||
continue; | continue; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0