BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
MediaWiki\Sniffs\WhiteSpace Namespace Reference

Classes

class  DisallowEmptyLineFunctionsSniff
 
class  MultipleEmptyLinesSniff
 
class  OpeningKeywordParenthesisSniff
 
class  SpaceAfterClosureSniff
 
class  SpaceAfterControlStructureSniff
 
class  SpaceBeforeClassBraceSniff
 
class  SpaceBeforeControlStructureBraceSniff
 
class  SpaceBeforeSingleLineCommentSniff
 
class  SpaceyParenthesisSniff
 

Detailed Description

Disallow empty line at the begin of function.

Check multiple consecutive newlines in a file.

Verify specific control structures are followed by a single space.

make sure a space before class open brace. fail: class TestClass{ fail: class TestClass{ fail: class TestClass { pass: class TestClass {

make sure a space between closing parenthesis and opening brace during if,while,for,foreach,switch,catch statement fail: if ( $a == 1 ){ fail: if ( $a == 1 ){ fail: switch ( $a ){ pass: if ( $a == 1 ) { pass: switch ( $a ) {

Verify comments are preceeded by a single space.

Make sure calling functions is spacey: $this->foo( $arg, $arg2 ); wfFoo( $arg, $arg2 );

But, wfFoo() is ok.

Also disallow wfFoo( ) and wfFoo( $param )