Code Duplication    Length = 11-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 552-562 (lines=11) @@
549
     *
550
     * @return SimpleHtmlDomInterface|null
551
     */
552
    public function lastChild()
553
    {
554
        /** @var \DOMNode|null $node */
555
        $node = $this->node->lastChild;
556
557
        if ($node === null) {
558
            return null;
559
        }
560
561
        return new static($node);
562
    }
563
564
    /**
565
     * Returns the next sibling of node.

src/voku/helper/SimpleXmlDom.php 1 location

@@ 538-548 (lines=11) @@
535
     *
536
     * @return SimpleXmlDomInterface|null
537
     */
538
    public function lastChild()
539
    {
540
        /** @var \DOMNode|null $node */
541
        $node = $this->node->lastChild;
542
543
        if ($node === null) {
544
            return null;
545
        }
546
547
        return new static($node);
548
    }
549
550
    /**
551
     * Returns the next sibling of node.