BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures Namespace Reference

Classes

class  ControlSignatureSniff
 
class  ElseIfDeclarationSniff
 
class  ForEachLoopDeclarationSniff
 
class  ForLoopDeclarationSniff
 
class  InlineIfDeclarationSniff
 
class  LowercaseDeclarationSniff
 
class  SwitchDeclarationSniff
 

Detailed Description

Verifies that control statements conform to their coding standards.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Ensures the use of else if over elseif.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Verifies that there is a space between each condition of foreach loops.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Verifies that there is a space between each condition of for loops.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Tests the spacing of shorthand IF statements.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Ensures all control structure keywords are lowercase.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Enforces switch statement formatting.

Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t