MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
Loading...
Searching...
No Matches
MediaWiki\Sniffs\Usage\IsNullSniff Class Reference

Identify usage of is_null and replace it with a comparison against null. More...

+ Inheritance diagram for MediaWiki\Sniffs\Usage\IsNullSniff:

Public Member Functions

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

Detailed Description

Identify usage of is_null and replace it with a comparison against null.

Member Function Documentation

◆ process()

MediaWiki\Sniffs\Usage\IsNullSniff::process ( File $phpcsFile,
$stackPtr )

@inheritDoc

Parameters
File$phpcsFileThe PHP_CodeSniffer file where the token was found.
int$stackPtrThe position in the PHP_CodeSniffer file's token stack where the token was found.

◆ register()

MediaWiki\Sniffs\Usage\IsNullSniff::register ( )

@inheritDoc

Returns
int[]

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