app/Report/ReportHtmlFootnote.php
public function getFootnoteHeight($html, float $cellWidth = 0): float
    {
        if ($html->getCurrentStyle() != $this->styleName) {
            $html->setCurrentStyle($this->styleName);
        }

        if ($cellWidth > 0) {
            $this->text = $html->textWrap($this->text, $cellWidth);
        }

        $this->text .= "\n\n";
        $ct         = substr_count($this->text, "\n");
        $fsize      = $html->getCurrentStyleHeight();

        return ($fsize * $ct) * $html->cellHeightRatio;
    }
public function getFootnoteHeight($html, float $cellWidth = 0): float
    {
        if ($html->getCurrentStyle() != $this->styleName) {
            $html->setCurrentStyle($this->styleName);
        }

        if ($cellWidth > 0) {
            $this->text = $html->textWrap($this->text, $cellWidth);
        }

        $this->text .= "\n\n";
        $ct         = substr_count($this->text, "\n");
        $fsize      = $html->getCurrentStyleHeight();

        return ($fsize * $ct) * $html->cellHeightRatio;
    }
public function getFootnoteHeight ( $ html , float $ cellWidth = 0 ) : float { if ( $ html -> getCurrentStyle ( ) != $ this -> styleName ) { $ html -> setCurrentStyle ( $ this -> styleName ) ; } if ( $ cellWidth > 0 ) { $ this -> text = $ html -> textWrap ( $ this -> text , $ cellWidth ) ; } $ this -> text .= "\n\n" ; $ ct = substr_count ( $ this -> text , "\n" ) ; $ fsize = $ html -> getCurrentStyleHeight ( ) ; return ( $ fsize * $ ct ) * $ html -> cellHeightRatio ; }
Calculates the Footnotes height

@param ReportHtml $html
@param float      $cellWidth The width of the cell to use it for text wraping

@return float     Footnote height in points
Calculates the Footnotes height