BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff Class Reference
Inheritance diagram for PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff:
Collaboration diagram for PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff:

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from PHP_CodeSniffer\Sniffs\AbstractScopeSniff
 __construct (array $scopeTokens, array $tokens, $listenOutside=false)
 
 register ()
 
 process (File $phpcsFile, $stackPtr)
 

Protected Member Functions

 processTokenWithinScope (File $phpcsFile, $stackPtr, $currScope)
 
 processTokenOutsideScope (File $phpcsFile, $stackPtr)
 
- Protected Member Functions inherited from PHP_CodeSniffer\Sniffs\AbstractScopeSniff
 processTokenWithinScope (File $phpcsFile, $stackPtr, $currScope)
 
 processTokenOutsideScope (File $phpcsFile, $stackPtr)
 

Constructor & Destructor Documentation

PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff::__construct ( )

Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.

Member Function Documentation

PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff::processTokenOutsideScope ( File  $phpcsFile,
  $stackPtr 
)
protected

Processes a token that is found within the scope that this test is listening to.

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file where this token was found.
int$stackPtrThe position in the stack where this token was found.
Returns
void
PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff::processTokenWithinScope ( File  $phpcsFile,
  $stackPtr,
  $currScope 
)
protected

Processes the function tokens within the class.

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file where this token was found.
int$stackPtrThe position where the token was found.
int$currScopeThe current scope opener token.
Returns
void

The documentation for this class was generated from the following file: