Skip to content

Commit

Permalink
Make the CCN / NOM method more accurate.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 28, 2009
1 parent 22a1250 commit 062c973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPLOC/Analyser.php
Expand Up @@ -138,7 +138,7 @@ public function countFiles(array $files, $countTests)
}

if ($count['methods'] > 0) {
$count['ccnByNom'] = $count['ccnMethods'] / $count['methods'];
$count['ccnByNom'] = 1 + ($count['ccnMethods'] / $count['methods']);
}

if ($count['classes'] > 0) {
Expand Down

0 comments on commit 062c973

Please sign in to comment.