BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff Class Reference
Inheritance diagram for MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff:
Collaboration diagram for MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff:

Public Member Functions

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

Protected Member Functions

 processLineDiff (File $phpcsFile, $openBrace, $closeBracket, $stackPtr)
 
 processLineSame (File $phpcsFile, $openBrace, $closeBracket, $stackPtr)
 
 processEmptyLine (File $phpcsFile, $openBrace, $stackPtr)
 

Member Function Documentation

MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff::process ( File  $phpcsFile,
  $stackPtr 
)
Parameters
File$phpcsFileFile object.
int$stackPtrThe index of current token.
Returns
void

Implements PHP_CodeSniffer\Sniffs\Sniff.

MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff::processEmptyLine ( File  $phpcsFile,
  $openBrace,
  $stackPtr 
)
protected

Process empty line after the open brace.

Parameters
File$phpcsFileFile object.
int$openBraceThe index of open brace.
int$stackPtrThe index of current token.
Returns
void
MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff::processLineDiff ( File  $phpcsFile,
  $openBrace,
  $closeBracket,
  $stackPtr 
)
protected

Process The close parenthesis on the same line as open brace.

Parameters
File$phpcsFileFile object.
int$openBraceThe index of open brace.
int$closeBracketThe index of close bracket.
int$stackPtrThe index of current token.
Returns
void
MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff::processLineSame ( File  $phpcsFile,
  $openBrace,
  $closeBracket,
  $stackPtr 
)
protected

Process The close parenthesis on the different line with open brace.

Parameters
File$phpcsFileFile object.
int$openBraceThe index of open brace.
int$closeBracketThe index of close bracket.
int$stackPtrThe index of current token.
Returns
void
MediaWiki\Sniffs\WhiteSpace\SpaceBeforeControlStructureBraceSniff::register ( )
Returns
array

Implements PHP_CodeSniffer\Sniffs\Sniff.


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