Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleXmlDom.php 1 location

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

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 675-685 (lines=11) @@
672
     *
673
     * @return SimpleHtmlDomInterface|null
674
     */
675
    public function previousSibling()
676
    {
677
        /** @var \DOMNode|null $node */
678
        $node = $this->node->previousSibling;
679
680
        if ($node === null) {
681
            return null;
682
        }
683
684
        return new static($node);
685
    }
686
687
688
    /**