/** * Visits a switch label. * * @param \PDepend\Source\AST\ASTNode $node The currently visited node. * @param array(string=>integer) $data The previously calculated ccn values. * * @return array(string=>integer) * @since 0.9.8 */ public function visitSwitchLabel($node, $data) { if (!$node->isDefault()) { ++$data[self::M_CYCLOMATIC_COMPLEXITY_1]; ++$data[self::M_CYCLOMATIC_COMPLEXITY_2]; } return $this->visit($node, $data); }