Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

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