public function leaveComment(Comment $node) { $this->undent()->write(')', $node->hasChilds()); }
public function leaveComment(Comment $comment) { if (!$comment->isRendered()) { return false; } if ($comment->hasCondition()) { $close = '<![endif]-->'; } else { $close = '-->'; } if ($comment->hasContent()) { $this->write(' ' . $close, false, $comment->hasParent()); } else { if ($comment->hasChilds()) { $this->undent()->write($close, true, true); } } }