Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 631-641 (lines=11) @@
628
     *
629
     * @return SimpleHtmlDomInterface|null
630
     */
631
    public function previousSibling()
632
    {
633
        /** @var \DOMNode|null $node */
634
        $node = $this->node->previousSibling;
635
636
        if ($node === null) {
637
            return null;
638
        }
639
640
        return new static($node);
641
    }
642
643
    /**
644
     * @param string|string[]|null $value <p>

src/voku/helper/SimpleXmlDom.php 1 location

@@ 617-627 (lines=11) @@
614
     *
615
     * @return SimpleXmlDomInterface|null
616
     */
617
    public function previousSibling()
618
    {
619
        /** @var \DOMNode|null $node */
620
        $node = $this->node->previousSibling;
621
622
        if ($node === null) {
623
            return null;
624
        }
625
626
        return new static($node);
627
    }
628
629
    /**
630
     * @param string|string[]|null $value <p>