Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

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