Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 664-674 (lines=11) @@
661
     *
662
     * @return SimpleHtmlDomInterface|null
663
     */
664
    public function previousSibling()
665
    {
666
        /** @var \DOMNode|null $node */
667
        $node = $this->node->previousSibling;
668
669
        if ($node === null) {
670
            return null;
671
        }
672
673
        return new static($node);
674
    }
675
676
    /**
677
     * @param string|string[]|null $value <p>

src/voku/helper/SimpleXmlDom.php 1 location

@@ 649-659 (lines=11) @@
646
     *
647
     * @return SimpleXmlDomInterface|null
648
     */
649
    public function previousSibling()
650
    {
651
        /** @var \DOMNode|null $node */
652
        $node = $this->node->previousSibling;
653
654
        if ($node === null) {
655
            return null;
656
        }
657
658
        return new static($node);
659
    }
660
661
    /**
662
     * @param string|string[]|null $value <p>