Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 670-680 (lines=11) @@
667
     *
668
     * @return SimpleHtmlDomInterface|null
669
     */
670
    public function previousSibling()
671
    {
672
        /** @var \DOMNode|null $node */
673
        $node = $this->node->previousSibling;
674
675
        if ($node === null) {
676
            return null;
677
        }
678
679
        return new static($node);
680
    }
681
682
    /**
683
     * @param string|string[]|null $value <p>

src/voku/helper/SimpleXmlDom.php 1 location

@@ 655-665 (lines=11) @@
652
     *
653
     * @return SimpleXmlDomInterface|null
654
     */
655
    public function previousSibling()
656
    {
657
        /** @var \DOMNode|null $node */
658
        $node = $this->node->previousSibling;
659
660
        if ($node === null) {
661
            return null;
662
        }
663
664
        return new static($node);
665
    }
666
667
    /**
668
     * @param string|string[]|null $value <p>