public function error($line)
    {
        if (is_array($line)) {
            $lines = [];
            foreach ($line as $one) {
                $lines[] = "<error>$one</error>";
            }

            $this->output->writeln($lines);

            return;
        }

        $this->output->writeln("<error>$line</error>");
    }
public function error($line)
    {
        if (is_array($line)) {
            $lines = [];
            foreach ($line as $one) {
                $lines[] = "<error>$one</error>";
            }

            $this->output->writeln($lines);

            return;
        }

        $this->output->writeln("<error>$line</error>");
    }
public function error ( $ line ) { if ( is_array ( $ line ) ) { $ lines = [ ] ; foreach ( $ line as $ one ) { $ lines [ ] = "<error>$one</error>" ; } $ this -> output -> writeln ( $ lines ) ; return ; } $ this -> output -> writeln ( "<error>$line</error>" ) ; }
Write an error.

@param string|array $line
Write an error .