Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PostStatementCommentSniff.php

PostStatementCommentSniff::$controlStructureExceptions

Exceptions to the rule.

If post statement comments are found within the condition parenthesis of these structures, leave them alone.

Type: array

File

vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php, line 36

Class

PostStatementCommentSniff

Namespace

PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting

Code

private $controlStructureExceptions = [
    T_IF => true,
    T_ELSEIF => true,
    T_SWITCH => true,
    T_WHILE => true,
    T_FOR => true,
    T_FOREACH => true,
    T_MATCH => true,
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal