Cake\Console\Shell::wrapText PHP Method

wrapText() public method

Allows you to set the width, and indenting on a block of text. ### Options - width The width to wrap to. Defaults to 72 - wordWrap Only wrap on words breaks (spaces) Defaults to true. - indent Indent the text with the string provided. Defaults to null.
public wrapText ( string $text, integer | array $options = [] ) : string
$text string Text the text to format.
$options integer | array Array of options to use, or an integer to wrap the text to.
return string Wrapped / indented text
    public function wrapText($text, $options = [])
    {
        return Text::wrap($text, $options);
    }