Skip to content

Commit

Permalink
Update DepthOfInheritance.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbrandt87 committed Jul 24, 2014
1 parent 054aa49 commit fb5dcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/PHPMD/Rule/Design/DepthOfInheritance.php
Expand Up @@ -78,7 +78,7 @@ public function apply(AbstractNode $node)
$dit = $node->getMetric('dit');
if (
($comparision === 1 && $dit > $threshold) ||
($comparision === 2 && $dit <= $threshold)
($comparision === 2 && $dit >= $threshold)
) {
$this->addViolation(
$node,
Expand Down

0 comments on commit fb5dcba

Please sign in to comment.