Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 569-579 (lines=11) @@
566
     *
567
     * @return SimpleHtmlDomInterface|null
568
     */
569
    public function nextSibling()
570
    {
571
        /** @var \DOMNode|null $node */
572
        $node = $this->node->nextSibling;
573
574
        if ($node === null) {
575
            return null;
576
        }
577
578
        return new static($node);
579
    }
580
581
    /**
582
     * Returns the parent of node.

src/voku/helper/SimpleXmlDom.php 1 location

@@ 555-565 (lines=11) @@
552
     *
553
     * @return SimpleXmlDomInterface|null
554
     */
555
    public function nextSibling()
556
    {
557
        /** @var \DOMNode|null $node */
558
        $node = $this->node->nextSibling;
559
560
        if ($node === null) {
561
            return null;
562
        }
563
564
        return new static($node);
565
    }
566
567
    /**
568
     * Returns the parent of node.