Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 603-613 (lines=11) @@
600
     *
601
     * @return SimpleHtmlDomInterface|null
602
     */
603
    public function lastChild()
604
    {
605
        /** @var \DOMNode|null $node */
606
        $node = $this->node->lastChild;
607
608
        if ($node === null) {
609
            return null;
610
        }
611
612
        return new static($node);
613
    }
614
615
    /**
616
     * Returns the next sibling of node.

src/voku/helper/SimpleXmlDom.php 1 location

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