Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 16, 2021
1 parent bb5b628 commit 28cf5ee
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/Commands/Concerns/InteractsWithIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit 28cf5ee

Please sign in to comment.