Similar named classes, interfaces, traits and enums.

This is the list of classes, interfaces, traits and enumerations with the same name. They may be in different namespaces, yet this leads to easy confusion.

CITECountTypesNamespaces
ScopeClosingBraceUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace
  • PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace
ScopeIndentUnitTest2
  • class
  • PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace
  • PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace
FunctionDeclarationUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\Functions
  • PHP_CodeSniffer\Standards\Squiz\Tests\Functions
FunctionCallSignatureUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\Functions
  • PHP_CodeSniffer\Standards\PSR2\Tests\Methods
ControlSignatureUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures
ValidClassNameUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions
  • PHP_CodeSniffer\Standards\Squiz\Tests\Classes
ValidFunctionNameUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions
  • PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions
FileCommentUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Tests\Commenting
TodoController2
  • class
  • project\Controller
ClassCommentUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Tests\Commenting
InlineCommentUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Tests\Commenting
ScopeIndentSniff2
  • class
  • PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace
ScopeClosingBraceSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace
FunctionCallSignatureSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods
FunctionDeclarationSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions
ControlSignatureSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures
ValidClassNameSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes
ValidFunctionNameSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions
InlineCommentSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting
ClassCommentSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting
FileCommentSniff2
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting
ClosingTagUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PSR2\Tests\Files
  • PHP_CodeSniffer\Standards\Zend\Tests\Files
ClosingTagSniff2
  • class
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\Files
  • PHP_CodeSniffer\Standards\Zend\Sniffs\Files
UseDeclarationUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PSR12\Tests\Traits
  • PHP_CodeSniffer\Standards\PSR2\Tests\Namespaces
EndFileNewlineUnitTest2
  • class
  • PHP_CodeSniffer\Standards\Generic\Tests\Files
  • PHP_CodeSniffer\Standards\PSR2\Tests\Files
ElseIfDeclarationUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures
SwitchDeclarationUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures
UseDeclarationSniff2
  • class
  • PHP_CodeSniffer\Standards\PSR12\Sniffs\Traits
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces
EndFileNewlineSniff2
  • class
  • PHP_CodeSniffer\Standards\Generic\Sniffs\Files
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\Files
SwitchDeclarationSniff2
  • class
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures
ElseIfDeclarationSniff2
  • class
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures
LanguageConstructSpacingUnitTest2
  • class
  • PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace
  • PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace
ExampleClass2
  • class
LanguageConstructSpacingSniff2
  • class
  • PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace
SemicolonSpacingUnitTest2
  • class
  • PHP_CodeSniffer\Standards\Squiz\Tests\CSS
  • PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace
Example2
  • class
  • Test
OperatorSpacingUnitTest2
  • class
  • PHP_CodeSniffer\Standards\PSR12\Tests\Operators
  • PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace
SemicolonSpacingSniff2
  • class
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace
OperatorSpacingSniff2
  • class
  • PHP_CodeSniffer\Standards\PSR12\Sniffs\Operators
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace
Foo12
  • class
Foo22
  • class
  • interface
FooBar2
  • class
  • Vendor\Package
YourInterface2
  • interface
  • C
Foo32
  • interface
  • trait
SomeEnum2
  • enum
Foo42
  • enum
  • trait
ValidVariableNameUnitTest3
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions
  • PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions
  • PHP_CodeSniffer\Standards\Zend\Tests\NamingConventions
FunctionCommentUnitTest3
  • class
  • PHP_CodeSniffer\Standards\MySource\Tests\Commenting
  • PHP_CodeSniffer\Standards\PEAR\Tests\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Tests\Commenting
ValidVariableNameSniff3
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions
  • PHP_CodeSniffer\Standards\Zend\Sniffs\NamingConventions
FunctionCommentSniff3
  • class
  • PHP_CodeSniffer\Standards\MySource\Sniffs\Commenting
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting
ControlStructureSpacingUnitTest3
  • class
  • PHP_CodeSniffer\Standards\PSR12\Tests\ControlStructures
  • PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace
ControlStructureSpacingSniff3
  • class
  • PHP_CodeSniffer\Standards\PSR12\Sniffs\ControlStructures
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace
ClassDeclarationUnitTest4
  • class
  • PHP_CodeSniffer\Standards\PEAR\Tests\Classes
  • PHP_CodeSniffer\Standards\PSR1\Tests\Classes
  • PHP_CodeSniffer\Standards\PSR2\Tests\Classes
  • PHP_CodeSniffer\Standards\Squiz\Tests\Classes
Valid_Name4
  • class
  • enum
  • interface
  • trait
invalid_Name4
  • class
  • enum
  • interface
  • trait
invalid_name4
  • class
  • enum
  • interface
  • trait
Invalid_name4
  • class
  • enum
  • interface
  • trait
VALID_NAME4
  • class
  • enum
  • interface
  • trait
ValidName4
  • class
  • enum
  • interface
  • trait
_Invalid_Name4
  • class
  • enum
  • interface
  • trait
___4
  • class
  • enum
  • interface
  • trait
Invalid__Name4
  • class
  • enum
  • interface
  • trait
ClassDeclarationSniff4
  • class
  • PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes
  • PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes
  • PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes
  • PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes
Test4
  • class
foo4
  • class
  • interface
  • trait
bar4
  • class
  • interface
  • trait
baz4
  • class
  • interface
  • trait
classFileNameUnitTest4
  • class
  • enum
  • interface
  • trait
classfilenameunittest4
  • class
  • enum
  • interface
  • trait
CLASSFILENAMEUNITTEST4
  • class
  • enum
  • interface
  • trait
CompletelyWrongClassName4
  • class
  • enum
  • interface
  • trait
ClassFileNameUnitTestExtra4
  • class
  • enum
  • interface
  • trait
ClassFileNameUnitTestInc4
  • class
  • enum
  • interface
  • trait
ExtraClassFileNameUnitTest4
  • class
  • enum
  • interface
  • trait
Bar4
  • class
  • enum
  • Bar
MyEnum4
  • enum
MyTrait5
  • trait
ClassFileNameUnitTest6
  • class
  • enum
  • interface
  • trait
  • PHP_CodeSniffer\Standards\Squiz\Tests\Classes
Baz7
  • class
MyInterface7
  • interface
  • A\B
  • C
VALID_Name8
  • class
  • enum
  • interface
  • trait
MyClass11
  • class
  • A\B
  • C
  • D
Foo12
  • class
  • enum
  • MyProject