PHP Class Kohana_Sniffs_NamingConventions_ValidFunctionNameSniff, coding-standards

Inheritance: extends PHP_CodeSniffer_Standards_AbstractScopeSniff
显示文件 Open project: kohana/coding-standards

Protected Properties

Property 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

Public Methods

Method Description
__construct ( ) : void Constructor.

Protected Methods

Method 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 method

Constructor.
public __construct ( ) : void
return void

isInvalidName() protected method

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

processTokenOutsideScope() protected method

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
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 File being processed
$stackPtr integer Position where this token was found
$currScope integer Position of the current scope
return 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