Class: Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff
Source Location: /PHP_CodeSniffer-2.3.0/CodeSniffer/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php
Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff.
Author(s):
Version:
Copyright:
- 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line 30]
Squiz_Sniffs_Functions_FunctionDeclarationArgumentSpacingSniff.
Checks that arguments in function declarations are spaced correctly.
Class Variables
$equalsSpacing = 0
[line 38]
How many spaces should surround the equals signs.
$requiredSpacesAfterOpen = 0
[line 45]
How many spaces should follow the opening bracket.
$requiredSpacesBeforeClose = 0
[line 52]
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.
processBracket [line 109]
Processes the contents of a single set of brackets.
Parameters:
int
$openBracket
—
The position of the open bracket in the stack passed in $tokens.
register [line 60]
Returns an array of tokens this test wants to listen for.
Documentation generated on 2019年3月11日 16:01:35 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.