PHP Class CakePHP_Sniffs_NamingConventions_ValidFunctionNameSniff

Inheritance: extends PHP_CodeSniffer_Standards_AbstractScopeSniff
Afficher le fichier Open project: cakephp/cakephp-codesniffer

Protected Properties

Свойство Type Description
$_magicMethods array A list of all PHP magic methods.

Méthodes publiques

Méthode Description
__construct ( ) Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.

Méthodes protégées

Méthode 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 méthode

Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
public __construct ( )

processTokenOutsideScope() protected méthode

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.
Résultat void

processTokenWithinScope() protected méthode

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.
Résultat void

Property Details

$_magicMethods protected_oe property

A list of all PHP magic methods.
protected array $_magicMethods
Résultat array