ClassCreateInstanceSniff |
coder_sniffer/Drupal/Sniffs/Classes/ClassCreateInstanceSniff.php |
Class create instance Test. |
ClassDeclarationSniff |
coder_sniffer/Drupal/Sniffs/Classes/ClassDeclarationSniff.php |
Class Declaration Test. |
ClassFileNameSniff |
coder_sniffer/Drupal/Sniffs/Classes/ClassFileNameSniff.php |
|
FullyQualifiedNamespaceSniff |
coder_sniffer/Drupal/Sniffs/Classes/FullyQualifiedNamespaceSniff.php |
Checks that class references do not use FQN but use statements. |
InterfaceNameSniff |
coder_sniffer/Drupal/Sniffs/Classes/InterfaceNameSniff.php |
Checks that interface names end with "Interface". |
PropertyDeclarationSniff |
coder_sniffer/Drupal/Sniffs/Classes/PropertyDeclarationSniff.php |
Laregely copied from
\PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\PropertyDeclarationSniff to have a fixer
for the var keyword. |
UnusedUseStatementSniff |
coder_sniffer/Drupal/Sniffs/Classes/UnusedUseStatementSniff.php |
Checks for "use" statements that are not needed in a file. |
UseGlobalClassSniff |
coder_sniffer/Drupal/Sniffs/Classes/UseGlobalClassSniff.php |
Checks non-namespaced classes are referenced by FQN, not imported. |
UseLeadingBackslashSniff |
coder_sniffer/Drupal/Sniffs/Classes/UseLeadingBackslashSniff.php |
Use statements to import classes must not begin with "\". |