public function block($messages, $type = 'error')
    {
        $output = [];
        if (!is_array($messages)) {
            $messages = (array) $messages;
        }
        foreach ($messages as $message) {
            $output[] = trim($message);
        }
        $formatter = new FormatterHelper();
        $this->line($formatter->formatBlock($output, $type, true));
    }
public function block($messages, $type = 'error')
    {
        $output = [];
        if (!is_array($messages)) {
            $messages = (array) $messages;
        }
        foreach ($messages as $message) {
            $output[] = trim($message);
        }
        $formatter = new FormatterHelper();
        $this->line($formatter->formatBlock($output, $type, true));
    }
public function block ( $ messages , $ type = 'error' ) { $ output = [ ] ; if ( ! is_array ( $ messages ) ) { $ messages = ( array ) $ messages ; } foreach ( $ messages as $ message ) { $ output [ ] = trim ( $ message ) ; } $ formatter = new FormatterHelper ( ) ; $ this -> line ( $ formatter -> formatBlock ( $ output , $ type , true ) ) ; }
A wrapper around symfony's formatter helper to output a block.

@param string|array $messages Messages to output
@param string       $type     The type of message to output
A wrapper around symfony s formatter helper to output a block .