Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

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