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

Classes

class  ClassDeclarationSniff
 
class  ClassFileNameSniff
 
class  DuplicatePropertySniff
 
class  LowercaseClassKeywordsSniff
 
class  SelfMemberReferenceSniff
 
class  ValidClassNameSniff
 

Detailed Description

Checks the declaration of the class and its inheritance is correct.

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

Tests that the file name and the name of the class contained within the file match.

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

Ensures JS classes don't contain duplicate property names.

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

Ensures all class keywords are lowercase.

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

Tests self member references.

Verifies that :

  • self:: is used instead of Self::
  • self:: is used for local static member reference
  • self:: is used instead of self ::
Author
Greg Sherwood gsher.nosp@m.wood.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Ensures classes are in camel caps, and the first letter is capitalised.

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