Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 616-626 (lines=11) @@
613
     *
614
     * @return SimpleHtmlDomInterface|null
615
     */
616
    public function nextSibling()
617
    {
618
        /** @var \DOMNode|null $node */
619
        $node = $this->node->nextSibling;
620
621
        if ($node === null) {
622
            return null;
623
        }
624
625
        return new static($node);
626
    }
627
628
    /**
629
     * Returns the parent of node.

src/voku/helper/SimpleXmlDom.php 1 location

@@ 602-612 (lines=11) @@
599
     *
600
     * @return SimpleXmlDomInterface|null
601
     */
602
    public function nextSibling()
603
    {
604
        /** @var \DOMNode|null $node */
605
        $node = $this->node->nextSibling;
606
607
        if ($node === null) {
608
            return null;
609
        }
610
611
        return new static($node);
612
    }
613
614
    /**
615
     * Returns the parent of node.