Goose\Modules\Formatters\OutputFormatter::isNodeScoreThreshholdMet PHP Method

isNodeScoreThreshholdMet() private method

private isNodeScoreThreshholdMet ( DOMWrap\Element $topNode, DOMWrap\Element $node ) : boolean
$topNode DOMWrap\Element
$node DOMWrap\Element
return boolean
    private function isNodeScoreThreshholdMet(Element $topNode, Element $node)
    {
        $topNodeScore = $this->getScore($topNode);
        $currentNodeScore = $this->getScore($node);
        $thresholdScore = $topNodeScore * 0.08;
        if ($currentNodeScore < $thresholdScore && $node->is(':not(td)')) {
            return false;
        }
        return true;
    }