Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 587-597 (lines=11) @@
584
     *
585
     * @return SimpleHtmlDomInterface|null
586
     */
587
    public function lastChild()
588
    {
589
        /** @var \DOMNode|null $node */
590
        $node = $this->node->lastChild;
591
592
        if ($node === null) {
593
            return null;
594
        }
595
596
        return new static($node);
597
    }
598
599
    /**
600
     * Returns the next sibling of node.

src/voku/helper/SimpleXmlDom.php 1 location

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