Differential D25030 Diff 82 src/lint/linter/xhpast/rules/ArcanistImplicitFallthroughXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistImplicitFallthroughXHPASTLinterRule.php
Context not available. | |||||
if (!$token->isSemantic()) { | if (!$token->isSemantic()) { | ||||
// Liberally match "fall" in the comment text so that comments like | // Liberally match "fall" in the comment text so that comments like | ||||
// "fallthru", "fall through", "fallthrough", etc., are accepted. | // "fallthru", "fall through", "fallthrough", etc., are accepted. | ||||
if (preg_match('/fall/i', $token->getValue())) { | if (@preg_match('/fall/i', $token->getValue())) { | ||||
$block_ok = true; | $block_ok = true; | ||||
break; | break; | ||||
} | } | ||||
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