Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 639-649 (lines=11) @@
636
     *
637
     * @return SimpleHtmlDomInterface|null
638
     */
639
    public function previousSibling()
640
    {
641
        /** @var \DOMNode|null $node */
642
        $node = $this->node->previousSibling;
643
644
        if ($node === null) {
645
            return null;
646
        }
647
648
        return new static($node);
649
    }
650
651
    /**
652
     * @param string|string[]|null $value <p>

src/voku/helper/SimpleXmlDom.php 1 location

@@ 625-635 (lines=11) @@
622
     *
623
     * @return SimpleXmlDomInterface|null
624
     */
625
    public function previousSibling()
626
    {
627
        /** @var \DOMNode|null $node */
628
        $node = $this->node->previousSibling;
629
630
        if ($node === null) {
631
            return null;
632
        }
633
634
        return new static($node);
635
    }
636
637
    /**
638
     * @param string|string[]|null $value <p>