namespace Drupal\Sniffs\Semantics
Object name | File name | Summary |
---|---|---|
ConstantNameSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/ConstantNameSniff.php | Checks that constants introduced with define() in module or install files start with the module's name. |
EmptyInstallSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/EmptyInstallSniff.php | Throws an error if hook_install() or hook_uninstall() definitions are empty. |
FunctionAliasSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/FunctionAliasSniff.php | Checks that no PHP function name aliases are used. |
FunctionCall | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/FunctionCall.php | Helper class to sniff for specific function calls. |
FunctionDefinition | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/FunctionDefinition.php | Helper class to sniff for function definitions. |
FunctionTriggerErrorSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/FunctionTriggerErrorSniff.php | Checks that the trigger_error deprecation text message adheres to standards. |
FunctionTSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php | Check the usage of the t() function to not escape translatable strings with back slashes. Also checks that the first argument does not use string concatenation. |
FunctionWatchdogSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/FunctionWatchdogSniff.php | Checks that the second argument to watchdog() is not enclosed with t(). |
InstallHooksSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/InstallHooksSniff.php | Checks that hook_disable(), hook_enable(), hook_install(), hook_uninstall(), hook_requirements() and hook_schema() are not defined in the module file. |
LStringTranslatableSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/LStringTranslatableSniff.php | Checks that string literals passed to l() are translatable. |
PregSecuritySniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/PregSecuritySniff.php | Check the usage of the preg functions to ensure the insecure /e flag isn't used: https://www.drupal.org/node/750148 |
RemoteAddressSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/RemoteAddressSniff.php | Make sure that ip_address() or Drupal::request()->getClientIp() is used instead of $_SERVER['REMOTE_ADDR']. |
TInHookMenuSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/TInHookMenuSniff.php | Checks that t() is not used in hook_menu(). |
TInHookSchemaSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/TInHookSchemaSniff.php | Checks that t() is not used in hook_schema(). |
UnsilencedDeprecationSniff | vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/UnsilencedDeprecationSniff.php | Checks that the trigger_error deprecation is silenced by a preceding '@'. |