public function outputFormatted(string $text = '', array $arguments = [], int $leftPadding = 0): void
    {
        $lines = explode(PHP_EOL, $text);
        foreach ($lines as $line) {
            $formattedText = str_repeat(' ', $leftPadding) . wordwrap($line, $this->getMaximumLineLength() - $leftPadding, PHP_EOL . str_repeat(' ', $leftPadding), true);
            $this->outputLine($formattedText, $arguments);
        }
    }
public function outputFormatted(string $text = '', array $arguments = [], int $leftPadding = 0): void
    {
        $lines = explode(PHP_EOL, $text);
        foreach ($lines as $line) {
            $formattedText = str_repeat(' ', $leftPadding) . wordwrap($line, $this->getMaximumLineLength() - $leftPadding, PHP_EOL . str_repeat(' ', $leftPadding), true);
            $this->outputLine($formattedText, $arguments);
        }
    }
public function outputFormatted ( string $ text = '' , array $ arguments = [ ] , int $ leftPadding = 0 ) : void { $ lines = explode ( PHP_EOL , $ text ) ; foreach ( $ lines as $ line ) { $ formattedText = str_repeat ( ' ' , $ leftPadding ) . wordwrap ( $ line , $ this -> getMaximumLineLength ( ) - $ leftPadding , PHP_EOL . str_repeat ( ' ' , $ leftPadding ) , true ) ; $ this -> outputLine ( $ formattedText , $ arguments ) ; } }
Formats the given text to fit into the maximum line length and outputs it to the
console window

@param string $text Text to output
@param array $arguments Optional arguments to use for sprintf
@param integer $leftPadding The number of spaces to use for indentation
@return void
@see outputLine()
Formats the given text to fit into the maximum line length and outputs it to the console window