Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

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