Codor
Codor copied to clipboard
Sniff for conditional complexity.
Checks if if
statement has too many conditions.
This issue is not resolved by https://github.com/bmitch/Codor/blob/master/src/Codor/Sniffs/ControlStructures/NestedIfSniff.php ?
I think this new sniff would check if a single if
contains too many conditions, like:
if ($cond1 && $cond2 && $cond3 /* and so on... */ && $cond42)
Thanks,
Can you assign to me please ?
:)