MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
|
Sniff for missing control structures between closing and opening brackets. More...
Public Member Functions | |
register () | |
@inheritDoc | |
process (File $phpcsFile, $stackPtr) | |
@inheritDoc | |
Sniff for missing control structures between closing and opening brackets.
Fail: if ( $a ) { functionCall(); } { somethingElse(); } Pass: if ( $a ) { functionCall(); } else { somethingElse(); } Pass: "{{a}} {{b}}"