PHP Класс Kohana_Sniffs_NamingConventions_ValidVariableNameSniff, coding-standards

Автор: Matthew Turland ([email protected])
Наследование: extends PHP_CodeSniffer_Standards_AbstractVariableSniff
Показать файл Открыть проект

Защищенные методы

Метод Описание
processMemberVar ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes class member variables.
processVariable ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes normal variables.
processVariableInString ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void Processes interpolated variables in double quoted strings.

Приватные методы

Метод Описание
validateName ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean Supporting method to validate variable names.

Описание методов

processMemberVar() защищенный Метод

Processes class member variables.
protected processMemberVar ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File File being scanned
$stackPtr integer Position of the current token in the stack passed in $tokens
Результат void

processVariable() защищенный Метод

Processes normal variables.
protected processVariable ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File File where this token was found
$stackPtr integer Position where the token was found
Результат void

processVariableInString() защищенный Метод

Processes interpolated variables in double quoted strings.
protected processVariableInString ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File File where this token was found
$stackPtr integer Position where the token was found
Результат void