src/Console/BaseCommand.php
protected function showError($title, $messages = '', $output)
    {
        $output->writeln("<error>$title</error>");
        $output->writeln('');
        if (is_array($messages)) {
            foreach ($messages as $message) {
                $output->writeln("<comment>$message</comment>");
            }
            $output->writeln('');
        } elseif ($messages != '') {
            $output->writeln("<comment>$messages</comment>");
            $output->writeln('');
        }
    }
protected function showError($title, $messages = '', $output)
    {
        $output->writeln("<error>$title</error>");
        $output->writeln('');
        if (is_array($messages)) {
            foreach ($messages as $message) {
                $output->writeln("<comment>$message</comment>");
            }
            $output->writeln('');
        } elseif ($messages != '') {
            $output->writeln("<comment>$messages</comment>");
            $output->writeln('');
        }
    }
protected function showError ( $ title , $ messages = '' , $ output ) { $ output -> writeln ( "<error>$title</error>" ) ; $ output -> writeln ( '' ) ; if ( is_array ( $ messages ) ) { foreach ( $ messages as $ message ) { $ output -> writeln ( "<comment>$message</comment>" ) ; } $ output -> writeln ( '' ) ; } elseif ( $ messages != '' ) { $ output -> writeln ( "<comment>$messages</comment>" ) ; $ output -> writeln ( '' ) ; } }
Print error message with proper format.

@param string                                            $title
@param string                                            $messages
@param \Symfony\Component\Console\Output\OutputInterface $output
Print error message with proper format .