Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 595-605 (lines=11) @@
592
     *
593
     * @return SimpleHtmlDomInterface|null
594
     */
595
    public function lastChild()
596
    {
597
        /** @var \DOMNode|null $node */
598
        $node = $this->node->lastChild;
599
600
        if ($node === null) {
601
            return null;
602
        }
603
604
        return new static($node);
605
    }
606
607
    /**
608
     * Returns the next sibling of node.

src/voku/helper/SimpleXmlDom.php 1 location

@@ 581-591 (lines=11) @@
578
     *
579
     * @return SimpleXmlDomInterface|null
580
     */
581
    public function lastChild()
582
    {
583
        /** @var \DOMNode|null $node */
584
        $node = $this->node->lastChild;
585
586
        if ($node === null) {
587
            return null;
588
        }
589
590
        return new static($node);
591
    }
592
593
    /**
594
     * Returns the next sibling of node.