This sniff implements the common algorithm for empty statement body detection. A body is considered as empty if it is completely empty or it only contains whitespace characters and|or comments.
Statements covered by this sniff are catch, do, else, elsif, for, foreach<b>, <b>if, switch, try and while.
[line 55]
List of block tokens that this sniff covers.The key of this hash identifies the required token while the boolean value says mark an error or mark a warning.
void process(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)