1.2.326. Cyclomatic Complexity¶
This rules calculates cyclomatic complexity for each method, function, and closures.
<?php
// cyclomatic complexity of 2
function foo() {
if ($a) {
} else {
}
}
?>
See also Cyclomatic complexity.
1.2.326.1. Connex PHP features¶
1.2.326.1.1. Specs¶
Short name |
Dump/CyclomaticComplexity |
Rulesets |
|
Exakat since |
1.9.4 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |