BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff Class Reference
Inheritance diagram for PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff:
Collaboration diagram for PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff:

Public Member Functions

 register ()
 
 process (File $phpcsFile, $stackPtr)
 
 checkAlignment ($phpcsFile, $stackPtr)
 

Public Attributes

 $supportedTokenizers
 
 $error = false
 
 $maxPadding = 1000
 

Member Function Documentation

PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff::checkAlignment (   $phpcsFile,
  $stackPtr 
)

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

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file being scanned.
int$stackPtrThe position of the current token in the stack passed in $tokens.
Returns
int
PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff::process ( File  $phpcsFile,
  $stackPtr 
)

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

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file being scanned.
int$stackPtrThe position of the current token in the stack passed in $tokens.
Returns
int

Implements PHP_CodeSniffer\Sniffs\Sniff.

PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff::register ( )

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

Returns
array

Implements PHP_CodeSniffer\Sniffs\Sniff.

Member Data Documentation

PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff::$supportedTokenizers
Initial value:
= array(
'PHP',
'JS',
)

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