return ;
-- NP(return) = NP() --
public visitReturnStatement ( PDepend\Source\AST\ASTNode $node, string $data ) : string | ||
$node | PDepend\Source\AST\ASTNode | The currently visited node. |
$data | string | The previously calculated npath value. |
Résultat | string |
public function visitReturnStatement($node, $data)
{
if (($npath = $this->sumComplexity($node)) === '0') {
return $data;
}
return MathUtil::mul($npath, $data);
}