Source Location: /PHP_CodeSniffer-2.0.0RC1/CodeSniffer/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php
$allowMultipleArguments = true
[line 43]
If TRUE, multiple arguments can be defined per line in a multi-line call.
$indent = 4
[line 36]
The number of spaces code should be indented.
$requiredSpacesAfterOpen = 0
[line 50]
How many spaces should follow the opening bracket.
$requiredSpacesBeforeClose = 0
[line 57]
How many spaces should precede the closing bracket.
isMultiLineCall [line 148]
void isMultiLineCall(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr, int
$openBracket, array
$tokens)
Processes single-line calls.
Overridden in child classes as:
- PSR2_Sniffs_Methods_FunctionCallSignatureSniff::isMultiLineCall()
- Processes single-line calls.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
int
$openBracket
—
The position of the opening bracket in the stack passed in $tokens.
array
$tokens
—
The stack of tokens that make up the file.
process [line 81]
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.
processMultiLineCall [line 232]
void processMultiLineCall(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr, int
$openBracket, array
$tokens)
Processes multi-line calls.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
int
$openBracket
—
The position of the openning bracket in the stack passed in $tokens.
array
$tokens
—
The stack of tokens that make up the file.
processSingleLineCall [line 173]
void processSingleLineCall(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr, int
$openBracket, array
$tokens)
Processes single-line calls.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
int
$openBracket
—
The position of the opening bracket in the stack passed in $tokens.
array
$tokens
—
The stack of tokens that make up the file.
register [line 65]
Returns an array of tokens this test wants to listen for.