Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

@@ 606-616 (lines=11) @@
603
     *
604
     * @return SimpleXmlDomInterface|null
605
     */
606
    public function previousSibling()
607
    {
608
        /** @var \DOMNode|null $node */
609
        $node = $this->node->previousSibling;
610
611
        if ($node === null) {
612
            return null;
613
        }
614
615
        return new static($node);
616
    }
617
618
    /**
619
     * @param string|string[]|null $value <p>