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

Public Member Functions

 register ()
 
 process (File $phpcsFile, $stackPtr)
 
 isMultiLineCall (File $phpcsFile, $stackPtr, $openBracket, $tokens)
 
 processSingleLineCall (File $phpcsFile, $stackPtr, $openBracket, $tokens)
 
 processMultiLineCall (File $phpcsFile, $stackPtr, $openBracket, $tokens)
 

Public Attributes

 $supportedTokenizers
 
 $indent = 4
 
 $allowMultipleArguments = true
 
 $requiredSpacesAfterOpen = 0
 
 $requiredSpacesBeforeClose = 0
 

Member Function Documentation

PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff::isMultiLineCall ( File  $phpcsFile,
  $stackPtr,
  $openBracket,
  $tokens 
)

Determine if this is a multi-line function call.

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file being scanned.
int$stackPtrThe position of the current token in the stack passed in $tokens.
int$openBracketThe position of the opening bracket in the stack passed in $tokens.
array$tokensThe stack of tokens that make up the file.
Returns
void
PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff::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
void

Implements PHP_CodeSniffer\Sniffs\Sniff.

PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff::processMultiLineCall ( File  $phpcsFile,
  $stackPtr,
  $openBracket,
  $tokens 
)

Processes multi-line calls.

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file being scanned.
int$stackPtrThe position of the current token in the stack passed in $tokens.
int$openBracketThe position of the opening bracket in the stack passed in $tokens.
array$tokensThe stack of tokens that make up the file.
Returns
void
PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff::processSingleLineCall ( File  $phpcsFile,
  $stackPtr,
  $openBracket,
  $tokens 
)

Processes single-line calls.

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file being scanned.
int$stackPtrThe position of the current token in the stack passed in $tokens.
int$openBracketThe position of the opening bracket in the stack passed in $tokens.
array$tokensThe stack of tokens that make up the file.
Returns
void
PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff::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\PEAR\Sniffs\Functions\FunctionCallSignatureSniff::$supportedTokenizers
Initial value:
= array(
'PHP',
'JS',
)

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