Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

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>