Complexity

The Complexity section is for now only one Insight in one Metric:

  • NunoMaduro\PhpInsights\Domain\Metrics\Complexity\Complexity Complexity

Cyclomatic Complexity is high ^1.0 Complexity

This insight checks complexity cyclomatic on your classes. It raises an issue if complexity is over 5.

Insight Class: NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh

Configuration
\NunoMaduro\PhpInsights\Domain\Insights\CyclomaticComplexityIsHigh::class => [
     'maxComplexity' => 5,
]