MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
Loading...
Searching...
No Matches
MediaWiki\Sniffs\WhiteSpace\EmptyLinesBetweenUseSniff Class Reference

Complain about empty lines between the different use statements at the top of a file. More...

+ Inheritance diagram for MediaWiki\Sniffs\WhiteSpace\EmptyLinesBetweenUseSniff:

Public Member Functions

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

Detailed Description

Complain about empty lines between the different use statements at the top of a file.

We deliberately do check for multiple empty lines and remove them all, even though MultipleEmptyLinesSniff takes care of that too.

Author
DannyS712 @license GPL-2.0-or-later

Member Function Documentation

◆ process()

MediaWiki\Sniffs\WhiteSpace\EmptyLinesBetweenUseSniff::process ( File $phpcsFile,
$stackPtr )
Parameters
File$phpcsFile
int$stackPtrThe current token index.
Returns
int

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