Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 643-653 (lines=11) @@
640
     *
641
     * @return SimpleHtmlDomInterface|null
642
     */
643
    public function previousSibling()
644
    {
645
        /** @var \DOMNode|null $node */
646
        $node = $this->node->previousSibling;
647
648
        if ($node === null) {
649
            return null;
650
        }
651
652
        return new static($node);
653
    }
654
655
    /**
656
     * @param string|string[]|null $value <p>

src/voku/helper/SimpleXmlDom.php 1 location

@@ 629-639 (lines=11) @@
626
     *
627
     * @return SimpleXmlDomInterface|null
628
     */
629
    public function previousSibling()
630
    {
631
        /** @var \DOMNode|null $node */
632
        $node = $this->node->previousSibling;
633
634
        if ($node === null) {
635
            return null;
636
        }
637
638
        return new static($node);
639
    }
640
641
    /**
642
     * @param string|string[]|null $value <p>