CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | List of all members
PSR2_Sniffs_ControlStructures_ControlStructureSpacingSniff Class Reference
Inheritance diagram for PSR2_Sniffs_ControlStructures_ControlStructureSpacingSniff:

Public Member Functions

 register ()
 
 process (PHP_CodeSniffer_File $phpcsFile, $stackPtr)
 

Public Attributes

 $requiredSpacesAfterOpen = 0
 
 $requiredSpacesBeforeClose = 0
 

Member Function Documentation

PSR2_Sniffs_ControlStructures_ControlStructureSpacingSniff::process ( PHP_CodeSniffer_File  $phpcsFile,
  $stackPtr 
)

Processes this test, when one of its tokens is encountered.

Parameters
PHP_CodeSniffer_File$phpcsFileThe file being scanned.
int$stackPtrThe position of the current token in the stack passed in $tokens.
Returns
void
PSR2_Sniffs_ControlStructures_ControlStructureSpacingSniff::register ( )

Returns an array of tokens this test wants to listen for.

Returns
array

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