-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I'm not sure if this issue is really a "issue", or if it's just my misconception of cyclomatic complexity, but:
- if the
if+else iftokens are sufficient to get full branch coverage (i.e.:elseworth 0), shouldn't the same logic be applied to thedefaultcase ofswitchstatements, instead of valuing it as 1? - if I have a block of code that looks like this:
try
{
// something
}
catch (\PDOException $e)
{
// foo
}
catch (\Exception $e)
{
// bar
}
Shouldn't try be worth 0 and each catch block be worth 1?
- in PHP 5.5+: I don't think the new
finally(http://php.net/manual/en/language.exceptions.php) block should be counted, but should it? - in PHP 5.3+: what about the
gotokeywords or it's labels?
Metadata
Metadata
Assignees
Labels
No labels