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

Breadcrumb

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

CognitiveSniff::NESTING_INCREMENTS

* B3. Nesting increments

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Complexity/CognitiveSniff.php, line 79

Class

CognitiveSniff
Cognitive Complexity

Namespace

SlevomatCodingStandard\Sniffs\Complexity

Code

private const NESTING_INCREMENTS = [
    T_CLOSURE => T_CLOSURE,
    // increments, but does not receive
T_ELSEIF => T_ELSEIF,
    // increments, but does not receive
T_ELSE => T_ELSE,
    T_IF => T_IF,
    T_INLINE_THEN => T_INLINE_THEN,
    T_SWITCH => T_SWITCH,
    T_FOR => T_FOR,
    T_FOREACH => T_FOREACH,
    T_WHILE => T_WHILE,
    T_DO => T_DO,
    T_CATCH => T_CATCH,
];

API Navigation

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