Class: Generic_Sniffs_CodeAnalysis_EmptyStatementSniff
Source Location: /PHP_CodeSniffer-2.1.0/CodeSniffer/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php
This sniff class detected empty statement.
Author(s):
Version:
Copyright:
- 2007-2014 Manuel Pichler. All rights reserved.
Inherited Variables
Inherited Methods
Class Details
[line 41]
This sniff class detected empty statement.
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.
stmt {
// foo
}
stmt (conditions) {
// foo
}
Method Detail
process [line 77]
Processes this test, when one of its tokens is encountered.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
register [line 50]
Registers the tokens that this sniff wants to listen for.
Documentation generated on 2019年3月11日 16:00:51 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.