Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

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