Source Location: /PHP_CodeSniffer-3.0.2/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php
$magicFunctions = array('autoload' => true)
[line 68]
A list of all PHP magic functions.
$magicMethods = array(
'construct' => true,
'destruct' => true,
'call' => true,
'callstatic' => true,
'get' => true,
'set' => true,
'isset' => true,
'unset' => true,
'sleep' => true,
'wakeup' => true,
'tostring' => true,
'set_state' => true,
'clone' => true,
'invoke' => true,
'debuginfo' => true,
)
[line 24]
A list of all PHP magic methods.
$methodsDoubleUnderscore = array(
'soapcall' => true,
'getlastrequest' => true,
'getlastresponse' => true,
'getlastrequestheaders' => true,
'getlastresponseheaders' => true,
'getfunctions' => true,
'gettypes' => true,
'dorequest' => true,
'setcookie' => true,
'setlocation' => true,
'setsoapheaders' => true,
)
[line 49]
A list of all PHP non-magic methods starting with a double underscore.
These come from PHP modules such as SOAPClient.
$strict = true
[line 75]
If TRUE, the string must not have two capital letters next to each other.
__construct (Constructor) [line 81]
CamelCapsFunctionNameSniff __construct(
)
Constructs a Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.
Overrides
AbstractScopeSniff::__construct() (Constructs a new AbstractScopeTest.)
processTokenOutsideScope [line 167]
void processTokenOutsideScope(
File
$phpcsFile, int
$stackPtr)
Processes the tokens outside the scope.
Overrides
AbstractScopeSniff::processTokenOutsideScope() (Processes a token that is found outside the scope that this test is listening to.)
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file being processed.
int
$stackPtr
—
The position where this token was found.
processTokenWithinScope [line 98]
void processTokenWithinScope(
File
$phpcsFile, int
$stackPtr, int
$currScope)
Processes the tokens within the scope.
Overrides
AbstractScopeSniff::processTokenWithinScope() (Processes a token that is found within the scope that this test is listening to.)
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file being processed.
int
$stackPtr
—
The position where this token was found.
int
$currScope
—
The position of the current scope.