MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
Loading...
Searching...
No Matches
MediaWiki\Sniffs\NamingConventions\LowerCamelFunctionsNameSniff Class Reference

Make sure function names follow lower camel case. More...

+ Inheritance diagram for MediaWiki\Sniffs\NamingConventions\LowerCamelFunctionsNameSniff:

Public Member Functions

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

Detailed Description

Make sure function names follow lower camel case.

This ignores methods in the form on(Something) where the class implements an interface with the name (Something)Hook, to avoid sending warnings for code in MediaWiki extensions and skins for hook handlers where the method cannot be renamed because it is inherited from the hook interface

Author
DannyS712

Member Function Documentation

◆ process()

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

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