1.2.321. 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.321.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 |
Features |
cyclomatic-complexity |
Available in |