Code Duplication    Length = 11-11 lines in 2 locations

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.

src/voku/helper/SimpleHtmlDom.php 1 location

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