Class: PEAR_Sniffs_Functions_FunctionDeclarationSniff
Source Location: /PHP_CodeSniffer-2.0.0a2/CodeSniffer/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php
PEAR_Sniffs_Functions_FunctionDeclarationSniff.
Author(s):
Version:
Copyright:
- 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
Child classes:
Inherited Variables
Inherited Methods
Class Details
[line 28]
PEAR_Sniffs_Functions_FunctionDeclarationSniff.
Ensure single and multi-line function declarations are defined correctly.
Class Variables
$indent = 4
[line 36]
The number of spaces code should be indented.
Method Detail
process [line 63]
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.
processMultiLineDeclaration [line 187]
processSingleLineDeclaration [line 155]
Processes single-line declarations.
Just uses the Generic BSD-Allman brace sniff.
Parameters:
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
array
$tokens
—
The stack of tokens that make up the file.
register [line 44]
Returns an array of tokens this test wants to listen for.
Documentation generated on 2019年3月11日 15:57:07 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.