PHP Class Kohana_Sniffs_NamingConventions_ValidFunctionNameSniff, coding-standards

Inheritance: extends PHP_CodeSniffer_Standards_AbstractScopeSniff
Afficher le fichier Open project: kohana/coding-standards

Protected Properties

Свойство Type Description
$_magicFunctions Copied from the base class because it's declared as private there
$_magicMethods Copied from the base class because it's declared as private there

Méthodes publiques

Méthode Description
__construct ( ) : void Constructor.

Méthodes protégées

Méthode Description
isInvalidName ( string $name ) : boolean Supporting method to validate a function or method name.
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

Constructor.
public __construct ( ) : void
Résultat void

isInvalidName() protected méthode

Supporting method to validate a function or method name.
protected isInvalidName ( string $name ) : boolean
$name string Name of the function or method to validate
Résultat boolean TRUE if the function or method name is valid, FALSE otherwise

processTokenOutsideScope() protected méthode

Processes the tokens outside the scope.
protected processTokenOutsideScope ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : void
$phpcsFile PHP_CodeSniffer_File File being processed
$stackPtr integer 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 File being processed
$stackPtr integer Position where this token was found
$currScope integer Position of the current scope
Résultat void

Property Details

$_magicFunctions protected_oe property

Copied from the base class because it's declared as private there
protected $_magicFunctions

$_magicMethods protected_oe property

Copied from the base class because it's declared as private there
protected $_magicMethods