Complexity

For now the Complexity section is 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, the lower the score the easier your code is to understand. 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,
]