Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 611-621 (lines=11) @@
608
     *
609
     * @return SimpleHtmlDomInterface|null
610
     */
611
    public function lastChild()
612
    {
613
        /** @var \DOMNode|null $node */
614
        $node = $this->node->lastChild;
615
616
        if ($node === null) {
617
            return null;
618
        }
619
620
        return new static($node);
621
    }
622
623
    /**
624
     * Returns the next sibling of node.

src/voku/helper/SimpleXmlDom.php 1 location

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