Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 576-586 (lines=11) @@
573
     *
574
     * @return SimpleHtmlDomInterface|null
575
     */
576
    public function lastChild()
577
    {
578
        /** @var \DOMNode|null $node */
579
        $node = $this->node->lastChild;
580
581
        if ($node === null) {
582
            return null;
583
        }
584
585
        return new static($node);
586
    }
587
588
    /**
589
     * Returns the next sibling of node.

src/voku/helper/SimpleXmlDom.php 1 location

@@ 562-572 (lines=11) @@
559
     *
560
     * @return SimpleXmlDomInterface|null
561
     */
562
    public function lastChild()
563
    {
564
        /** @var \DOMNode|null $node */
565
        $node = $this->node->lastChild;
566
567
        if ($node === null) {
568
            return null;
569
        }
570
571
        return new static($node);
572
    }
573
574
    /**
575
     * Returns the next sibling of node.