app/Report/ReportBaseText.php
public function setWrapWidth(float $wrapwidth, float $cellwidth): float
    {
        $this->wrapWidthCell = $cellwidth;
        if (strpos($this->text, "\n") !== false) {
            $this->wrapWidthRemaining = $cellwidth;
        } else {
            $this->wrapWidthRemaining = $wrapwidth;
        }

        return $this->wrapWidthRemaining;
    }
public function setWrapWidth(float $wrapwidth, float $cellwidth): float
    {
        $this->wrapWidthCell = $cellwidth;
        if (strpos($this->text, "\n") !== false) {
            $this->wrapWidthRemaining = $cellwidth;
        } else {
            $this->wrapWidthRemaining = $wrapwidth;
        }

        return $this->wrapWidthRemaining;
    }
public function setWrapWidth ( float $ wrapwidth , float $ cellwidth ) : float { $ this -> wrapWidthCell = $ cellwidth ; if ( strpos ( $ this -> text , "\n" ) !== false ) { $ this -> wrapWidthRemaining = $ cellwidth ; } else { $ this -> wrapWidthRemaining = $ wrapwidth ; } return $ this -> wrapWidthRemaining ; }
Set the width for word-wrapping.

@param float $wrapwidth
@param float $cellwidth

@return float
Set the width for word - wrapping .