src/TweedeGolf/Generator/Console/Questioner.php
public function message($message, $lineWidth = 80, $style = 'info')
    {
        if (null === $lineWidth) {
            $lineWidth = 80;
        }

        if (is_string($message)) {
            $message = explode("\n", wordwrap($message, $lineWidth, "\n", true));
        }

        foreach ($message as $line) {
            $line = str_pad(OutputFormatter::escape($line), $lineWidth);
            $this->getOutput()->writeln("<{$style}>{$line}</{$style}>");
        }
    }
public function message($message, $lineWidth = 80, $style = 'info')
    {
        if (null === $lineWidth) {
            $lineWidth = 80;
        }

        if (is_string($message)) {
            $message = explode("\n", wordwrap($message, $lineWidth, "\n", true));
        }

        foreach ($message as $line) {
            $line = str_pad(OutputFormatter::escape($line), $lineWidth);
            $this->getOutput()->writeln("<{$style}>{$line}</{$style}>");
        }
    }
public function message ( $ message , $ lineWidth = 80 , $ style = 'info' ) { if ( null === $ lineWidth ) { $ lineWidth = 80 ; } if ( is_string ( $ message ) ) { $ message = explode ( "\n" , wordwrap ( $ message , $ lineWidth , "\n" , true ) ) ; } foreach ( $ message as $ line ) { $ line = str_pad ( OutputFormatter :: escape ( $ line ) , $ lineWidth ) ; $ this -> getOutput ( ) -> writeln ( "<{$style}>{$line}</{$style}>" ) ; } }
Write a message in the given style, with line breaks at the given length.
@param string|array    $message      Message to be formatted.
@param int             $lineWidth    Maximum line width of the message.
@param string          $style        Style to be used for formatting the message.
Write a message in the given style with line breaks at the given length .