Source Location: /PHP_CodeSniffer-2.3.0/CodeSniffer/Standards/PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php
$allowMultipleArguments = true
[line 53]
If TRUE, multiple arguments can be defined per line in a multi-line call.
$indent = 4
[line 46]
The number of spaces code should be indented.
$requiredSpacesAfterOpen = 0
[line 60]
How many spaces should follow the opening bracket.
$requiredSpacesBeforeClose = 0
[line 67]
How many spaces should precede the closing bracket.
$supportedTokenizers = array(
'PHP',
'JS',
)
[line 36]
A list of tokenizers this sniff supports.
isMultiLineCall [line 174]
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 91]
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 284]
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 opening bracket in the stack passed in $tokens.
array
$tokens
—
The stack of tokens that make up the file.
processSingleLineCall [line 199]
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 75]
Returns an array of tokens this test wants to listen for.