REBELinBLUE\Deployer\Console\Commands\InstallApp::block PHP Method

block() protected method

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