Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/ArcanistXHPASTLintSwitchHook.php
| <?php | <?php | ||||
| /** | /** | ||||
| * You can extend this class and set `xhpast.switchhook` in your `.arclint` | * You can extend this class and set `xhpast.switchhook` in your `.arclint` | ||||
| * to have an opportunity to override results for linting `switch` statements. | * to have an opportunity to override results for linting `switch` statements. | ||||
| * | |||||
| * @group lint | |||||
| */ | */ | ||||
| abstract class ArcanistXHPASTLintSwitchHook { | abstract class ArcanistXHPASTLintSwitchHook { | ||||
| /** | /** | ||||
| * @return bool True if token safely ends the block. | * @return bool True if token safely ends the block. | ||||
| */ | */ | ||||
| abstract public function checkSwitchToken(XHPASTToken $token); | abstract public function checkSwitchToken(XHPASTToken $token); | ||||
| } | } | ||||