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

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff
 register ()
 
 process (File $phpcsFile, $stackPtr)
 

Public Attributes

 $forbiddenFunctions = array()
 
- Public Attributes inherited from PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff
 $forbiddenFunctions
 
 $error = true
 

Protected Member Functions

 addError ($phpcsFile, $stackPtr, $function, $pattern=null)
 
- Protected Member Functions inherited from PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff
 addError ($phpcsFile, $stackPtr, $function, $pattern=null)
 

Additional Inherited Members

- Protected Attributes inherited from PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff
 $forbiddenFunctionNames = array()
 
 $patternMatch = false
 

Constructor & Destructor Documentation

PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DeprecatedFunctionsSniff::__construct ( )

Constructor.

Uses the Reflection API to get a list of deprecated functions.

Member Function Documentation

PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DeprecatedFunctionsSniff::addError (   $phpcsFile,
  $stackPtr,
  $function,
  $pattern = null 
)
protected

Generates the error or warning for this sniff.

Parameters
\PHP_CodeSniffer\Files\File$phpcsFileThe file being scanned.
int$stackPtrThe position of the forbidden function in the token array.
string$functionThe name of the forbidden function.
string$patternThe pattern used for the match.
Returns
void

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