public static function write($messages, $style = '', $length = 0, $suffix = '')
    {
        if (self::$silent) {
            return;
        }
        if (!is_array($messages)) {
            $messages = [(string)$messages];
        }
        if (count($messages) > 0) {
            foreach ($messages as $message) {
                if ($length > 0) {
                    $message = str_pad($message, $length, ' ', STR_PAD_RIGHT);
                }
                print(Style::applyStyle($message, $style));
                if ($suffix != '') {
                    print($suffix);
                }
            }
        }
    }
public static function write($messages, $style = '', $length = 0, $suffix = '')
    {
        if (self::$silent) {
            return;
        }
        if (!is_array($messages)) {
            $messages = [(string)$messages];
        }
        if (count($messages) > 0) {
            foreach ($messages as $message) {
                if ($length > 0) {
                    $message = str_pad($message, $length, ' ', STR_PAD_RIGHT);
                }
                print(Style::applyStyle($message, $style));
                if ($suffix != '') {
                    print($suffix);
                }
            }
        }
    }
public static function write ( $ messages , $ style = '' , $ length = 0 , $ suffix = '' ) { if ( self :: $ silent ) { return ; } if ( ! is_array ( $ messages ) ) { $ messages = [ ( string ) $ messages ] ; } if ( count ( $ messages ) > 0 ) { foreach ( $ messages as $ message ) { if ( $ length > 0 ) { $ message = str_pad ( $ message , $ length , ' ' , STR_PAD_RIGHT ) ; } print ( Style :: applyStyle ( $ message , $ style ) ) ; if ( $ suffix != '' ) { print ( $ suffix ) ; } } } }
Write messages.

@param string|array $messages
@param string $style Default '' which means 'normal'.
@param integer $length Default 0 which means not fixed length. $messages NOT shortened.
@param string $suffix Default ''.
Write messages .