Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

@@ 579-589 (lines=11) @@
576
     *
577
     * @return SimpleXmlDomInterface|null
578
     */
579
    public function nextSibling()
580
    {
581
        /** @var \DOMNode|null $node */
582
        $node = $this->node->nextSibling;
583
584
        if ($node === null) {
585
            return null;
586
        }
587
588
        return new static($node);
589
    }
590
591
    /**
592
     * Returns the parent of node.