PHP Class CakePHP_Sniffs_NamingConventions_ValidFunctionNameSniff

Inheritance: extends PHP_CodeSniffer_Standards_AbstractScopeSniff
Datei anzeigen Open project: cakephp/cakephp-codesniffer

Protected Properties

Property Type Description
$_magicMethods array A list of all PHP magic methods.

Public Methods

Method Description
__construct ( ) Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.

Protected Methods

Method Description
processTokenOutsideScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes the tokens outside the scope.
processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void Processes the tokens within the scope.

Method Details

__construct() public method

Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
public __construct ( )

processTokenOutsideScope() protected method

Processes the tokens outside the scope.
protected processTokenOutsideScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File The file being processed.
$stackPtr integer The position where this token was found.
return void

processTokenWithinScope() protected method

Processes the tokens within the scope.
protected processTokenWithinScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr, integer $currScope ) : void
$phpcsFile PHP_CodeSniffer_File The file being processed.
$stackPtr integer The position where this token was found.
$currScope integer The position of the current scope.
return void

Property Details

$_magicMethods protected_oe property

A list of all PHP magic methods.
protected array $_magicMethods
return array