Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleXmlDom.php 1 location

@@ 609-619 (lines=11) @@
606
     *
607
     * @return SimpleXmlDomInterface|null
608
     */
609
    public function nextSibling()
610
    {
611
        /** @var \DOMNode|null $node */
612
        $node = $this->node->nextSibling;
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.

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 626-636 (lines=11) @@
623
     *
624
     * @return SimpleHtmlDomInterface|null
625
     */
626
    public function nextSibling()
627
    {
628
        /** @var \DOMNode|null $node */
629
        $node = $this->node->nextSibling;
630
631
        if ($node === null) {
632
            return null;
633
        }
634
635
        return new static($node);
636
    }
637
638
    /**
639
     * Returns the next sibling of node.