You are here

Classes, traits, and interfaces in Coder 8.2

Primary tabs

Namesort descending Type Namespace Location Description Direct uses Use statements Strings
AccessAdminPagesSniff class DrupalPractice\Sniffs\General coder_sniffer/DrupalPractice/Sniffs/General/AccessAdminPagesSniff.php Throws a warning if the "access administration pages" string is found in hook_menu().
AccessHookMenuSniff class DrupalPractice\Sniffs\FunctionDefinitions coder_sniffer/DrupalPractice/Sniffs/FunctionDefinitions/AccessHookMenuSniff.php Checks that there are no undocumented open access callbacks in hook_menu().
AccessHookMenuUnitTest class DrupalPractice\Sniffs\FunctionDefinitions coder_sniffer/DrupalPractice/Test/FunctionDefinitions/AccessHookMenuUnitTest.php Unit test class for the HookInitCss sniff.
AliasDelete class coder_sniffer/Drupal/Test/good/good.php Provides a 'Delete any path alias' action.
ArraySniff class Drupal\Sniffs\Arrays coder_sniffer/Drupal/Sniffs/Arrays/ArraySniff.php ArraySniff.
ArrayUnitTest class Drupal\Sniffs\Arrays coder_sniffer/Drupal/Test/Arrays/ArrayUnitTest.php
AuthorTagSniff class DrupalPractice\Sniffs\Commenting coder_sniffer/DrupalPractice/Sniffs/Commenting/AuthorTagSniff.php Checks the usage of @author tags.
AuthorTagUnitTest class DrupalPractice\Sniffs\Commenting coder_sniffer/DrupalPractice/Test/Commenting/AuthorTagUnitTest.php
AutoAddedKeysSniff class Drupal\Sniffs\InfoFiles coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php "version", "project" and "timestamp" are added automatically by drupal.org packaging scripts.
AutoAddedKeysUnitTest class Drupal\Sniffs\InfoFiles coder_sniffer/Drupal/Test/InfoFiles/AutoAddedKeysUnitTest.php A sniff unit test checks a .inc file for expected violations of a single coding standard. Expected errors and warnings are stored in this class.
BadUnitTest class Drupal\bad coder_sniffer/Drupal/Test/bad/BadUnitTest.php Unit test class for all bad files.
Bar class coder_sniffer/Drupal/Test/bad/bad.php
Bar class coder_sniffer/Drupal/Test/good/good.php Class declaration.
Bingo trait coder_sniffer/Drupal/Test/Commenting/ClassCommentUnitTest.inc @file Testing class/trait comments.
CheckPlainSniff class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/CheckPlainSniff.php Check that check_plain() is not used on literal strings.
CheckPlainUnitTest class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Test/FunctionCalls/CheckPlainUnitTest.php Unit test class for the CheckPlain sniff.
ClassCommentSniff class Drupal\Sniffs\Commenting coder_sniffer/Drupal/Sniffs/Commenting/ClassCommentSniff.php Checks that comment doc blocks exist on classes, interfaces and traits. Largely copied from PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClassCommentSniff.
ClassCommentUnitTest class Drupal\Sniffs\Commenting coder_sniffer/Drupal/Test/Commenting/ClassCommentUnitTest.php
ClassCreateInstanceSniff class Drupal\Sniffs\Classes coder_sniffer/Drupal/Sniffs/Classes/ClassCreateInstanceSniff.php Class create instance Test.
ClassCreateInstanceUnitTest class Drupal\Sniffs\Classes coder_sniffer/Drupal/Test/Classes/ClassCreateInstanceUnitTest.php
ClassDeclarationSniff class Drupal\Sniffs\Classes coder_sniffer/Drupal/Sniffs/Classes/ClassDeclarationSniff.php Class Declaration Test.
ClassDeclarationUnitTest class Drupal\Sniffs\Classes coder_sniffer/Drupal/Test/Classes/ClassDeclarationUnitTest.php
ClassDefinitionNameSpacingSniff class Drupal\Sniffs\CSS coder_sniffer/Drupal/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php Ensure there are no blank lines between the names of classes/IDs. Copied from \PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\ClassDefinitionNameSpacingSniff because we also check for comma separated selectors on their own line.
ClassFilesSniff class Drupal\Sniffs\InfoFiles coder_sniffer/Drupal/Sniffs/InfoFiles/ClassFilesSniff.php Checks files[] entries in info files. Only files containing classes/interfaces should be listed. 3
ClassFilesUnitTest class Drupal\Sniffs\InfoFiles coder_sniffer/Drupal/Test/InfoFiles/ClassFilesUnitTest.php
ClassNameSniff class DrupalPractice\Sniffs\General coder_sniffer/DrupalPractice/Sniffs/General/ClassNameSniff.php Checks that classes without namespaces are properly prefixed with the module name.
CloseBracketSpacingSniff class Drupal\Sniffs\WhiteSpace coder_sniffer/Drupal/Sniffs/WhiteSpace/CloseBracketSpacingSniff.php Checks that there is no white space before a closing bracket, for ")" and "}". Square Brackets are handled by \PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayBracketSpacingSniff.
CloseBracketSpacingUnitTest class Drupal\Sniffs\WhiteSpace coder_sniffer/Drupal/Test/WhiteSpace/CloseBracketSpacingUnitTest.php
ClosureTest class coder_sniffer/DrupalPractice/Test/good/good.php Testing closures.
CoderSniffUnitTest abstract class Drupal\Test coder_sniffer/Drupal/Test/CoderSniffUnitTest.php 71 71
ColourDefinitionSniff class Drupal\Sniffs\CSS coder_sniffer/Drupal/Sniffs/CSS/ColourDefinitionSniff.php \Drupal\Sniffs\CSS\ColourDefinitionSniff.
CommaSniff class Drupal\Sniffs\WhiteSpace coder_sniffer/Drupal/Sniffs/WhiteSpace/CommaSniff.php \Drupal\Sniffs\WhiteSpace\CommaSniff.
CommaUnitTest class Drupal\Sniffs\WhiteSpace coder_sniffer/Drupal/Test/WhiteSpace/CommaUnitTest.php
CommentEmptyLineSniff class DrupalPractice\Sniffs\Commenting coder_sniffer/DrupalPractice/Sniffs/Commenting/CommentEmptyLineSniff.php Throws a warning if there is a blank line after an inline comment.
CommentEmptyLineUnitTest class DrupalPractice\Sniffs\Commenting coder_sniffer/DrupalPractice/Test/Commenting/CommentEmptyLineUnitTest.php Unit test class for the EmptyStatement sniff.
ConstantNameSniff class Drupal\Sniffs\Semantics coder_sniffer/Drupal/Sniffs/Semantics/ConstantNameSniff.php Checks that constants introduced with define() in module or install files start with the module's name.
ConstantNameUnitTest class Drupal\Sniffs\Semantics coder_sniffer/Drupal/Test/Semantics/ConstantNameUnitTest.php
ControlSignatureSniff class Drupal\Sniffs\ControlStructures coder_sniffer/Drupal/Sniffs/ControlStructures/ControlSignatureSniff.php Verifies that control statements conform to their coding standards.
ControlSignatureUnitTest class Drupal\Sniffs\ControlStructures coder_sniffer/Drupal/Test/ControlStructures/ControlSignatureUnitTest.php Class ControlSignatureUnitTest
CurlSslVerifierSniff class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/CurlSslVerifierSniff.php Make sure that CURLOPT_SSL_VERIFYPEER is not disabled, since that is a security issue.
CurlSslVerifierUnitTest class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Test/FunctionCalls/CurlSslVerifierUnitTest.php Unit test class for the CurlSslVerifier sniff.
DataTypeNamespaceSniff class Drupal\Sniffs\Commenting coder_sniffer/Drupal/Sniffs/Commenting/DataTypeNamespaceSniff.php Checks that data types in param, return, var tags are fully namespaced.
DataTypeNamespaceUnitTest class Drupal\Sniffs\Commenting coder_sniffer/Drupal/Test/Commenting/DataTypeNamespaceUnitTest.php
DbQuerySniff class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/DbQuerySniff.php Check that UPDATE/DELETE queries are not used in db_query() in Drupal 7.
DbQueryUnitTest class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Test/FunctionCalls/DbQueryUnitTest.php Unit test class for the DbQuery sniff.
DbSelectBracesSniff class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/DbSelectBracesSniff.php Check that db_select() calls do not use {} braces for the table name.
DbSelectBracesUnitTest class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Test/FunctionCalls/DbSelectBracesUnitTest.php Unit test class for the DbSelectBraces sniff.
DefaultValueSanitizeSniff class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/DefaultValueSanitizeSniff.php Check that sanitization functions such as check_plain() are not used on Form API #default_value elements.
DefaultValueSanitizeUnitTest class DrupalPractice\Sniffs\FunctionCalls coder_sniffer/DrupalPractice/Test/FunctionCalls/DefaultValueSanitizeUnitTest.php Unit test class for the DefaultValueSanitize sniff.
DescriptionTSniff class DrupalPractice\Sniffs\General coder_sniffer/DrupalPractice/Sniffs/General/DescriptionTSniff.php Checks that string values for #description in render arrays are translated.

Pages

Other projects