Class: PSR2_Sniffs_ControlStructures_ControlStructureSpacingSniff
Source Location: /PHP_CodeSniffer-2.6.0/CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/ControlStructureSpacingSniff.php
PSR2_Sniffs_WhiteSpace_ControlStructureSpacingSniff.
Author(s):
Version:
Copyright:
- 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line 28]
PSR2_Sniffs_WhiteSpace_ControlStructureSpacingSniff.
Checks that control structures have the correct spacing around brackets.
Class Variables
$requiredSpacesAfterOpen = 0
[line 37]
How many spaces should follow the opening bracket.
$requiredSpacesBeforeClose = 0
[line 44]
How many spaces should precede the closing bracket.
Method Detail
process [line 79]
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 52]
Returns an array of tokens this test wants to listen for.
Documentation generated on 2019年3月11日 14:56:09 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.