Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/SimpleXmlDom.php 1 location

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