I am looking for PHPCodeSniffer rule to limit the maximum number of code lines per function / method.
function something($b) {
// some comment that should be ignored in the count
$a = 12;
$value = sqrt(
$a * $b
);
return $value;
}
I would like the above function to be accounted as having 5 coding lines (not counting the comments an blank lines).