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

Breadcrumb

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

function ComplexityCollection::cyclomaticComplexity

@psalm-return non-negative-int

File

vendor/sebastian/complexity/src/Complexity/ComplexityCollection.php, line 73

Class

ComplexityCollection
@psalm-immutable

Namespace

SebastianBergmann\Complexity

Code

public function cyclomaticComplexity() : int {
    $cyclomaticComplexity = 0;
    foreach ($this as $item) {
        $cyclomaticComplexity += $item->cyclomaticComplexity();
    }
    return $cyclomaticComplexity;
}

API Navigation

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