diff --git a/src/Commands/Concerns/InteractsWithIO.php b/src/Commands/Concerns/InteractsWithIO.php index 1dcc7ae0f..97011d65b 100644 --- a/src/Commands/Concerns/InteractsWithIO.php +++ b/src/Commands/Concerns/InteractsWithIO.php @@ -29,42 +29,42 @@ trait InteractsWithIO ]; /** - * Write a string as information output. + * Write a string as raw output. * * @param string $string - * @param int|string|null $verbosity * @return void */ - public function info($string, $verbosity = null) + public function raw($string) { - $this->label($string, $verbosity, 'INFO', 'cyan', 'black'); + if (! Str::startsWith($string, $this->ignoreMessages)) { + $this->output instanceof OutputStyle + ? fwrite(STDERR, $string."\n") + : $this->output->writeln($string); + } } /** - * Write a string as error output. + * Write a string as information output. * * @param string $string * @param int|string|null $verbosity * @return void */ - public function error($string, $verbosity = null) + public function info($string, $verbosity = null) { - $this->label($string, $verbosity, 'ERROR', 'red', 'white'); + $this->label($string, $verbosity, 'INFO', 'cyan', 'black'); } /** - * Write a string as raw output. + * Write a string as error output. * * @param string $string + * @param int|string|null $verbosity * @return void */ - public function raw($string) + public function error($string, $verbosity = null) { - if (! Str::startsWith($string, $this->ignoreMessages)) { - $this->output instanceof OutputStyle - ? fwrite(STDERR, $string."\n") - : $this->output->writeln($string); - } + $this->label($string, $verbosity, 'ERROR', 'red', 'white'); } /**