Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 596-606 (lines=11) @@
593
     *
594
     * @return SimpleHtmlDomInterface|null
595
     */
596
    public function previousSibling()
597
    {
598
        /** @var \DOMNode|null $node */
599
        $node = $this->node->previousSibling;
600
601
        if ($node === null) {
602
            return null;
603
        }
604
605
        return new static($node);
606
    }
607
608
    /**
609
     * @param string|string[]|null $value <p>

src/voku/helper/SimpleXmlDom.php 1 location

@@ 582-592 (lines=11) @@
579
     *
580
     * @return SimpleXmlDomInterface|null
581
     */
582
    public function previousSibling()
583
    {
584
        /** @var \DOMNode|null $node */
585
        $node = $this->node->previousSibling;
586
587
        if ($node === null) {
588
            return null;
589
        }
590
591
        return new static($node);
592
    }
593
594
    /**
595
     * @param string|string[]|null $value <p>