Class: EmptyStatementSniff
Source Location: /PHP_CodeSniffer-3.0.0/src/Standards/Generic/Sniffs/CodeAnalysis/EmptyStatementSniff.php
This sniff class detected empty statement.
Author(s):
Copyright:
- 2007-2014 Manuel Pichler. All rights reserved.
Inherited Variables
Inherited Methods
Class Details
[line
30]
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 66]
void process(
File
$phpcsFile, int
$stackPtr)
Processes this test, when one of its tokens is encountered.
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file being scanned.
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
register [line 39]
Registers the tokens that this sniff wants to listen for.
Documentation generated on 2019年3月11日 14:23:05 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.