Skip to content

Commit

Permalink
Rename variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Apr 17, 2019
1 parent 1c17f5c commit cbabeed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Log/Console.php
Expand Up @@ -20,18 +20,18 @@ class Console implements Logger
*
* @var \JakubOnderka\PhpConsoleColor\ConsoleColor
*/
protected $styler;
protected $consoleColor;

/**
* Construct a console logger.
*
* @param \React\Stream\WritableStreamInterface $writer
* @param \JakubOnderka\PhpConsoleColor\ConsoleColor $styler
* @param \JakubOnderka\PhpConsoleColor\ConsoleColor $consoleColor
*/
public function __construct(WritableStreamInterface $writer, ConsoleColor $styler)
public function __construct(WritableStreamInterface $writer, ConsoleColor $consoleColor)
{
$this->writer = $writer;
$this->styler = $styler;
$this->consoleColor = $consoleColor;
}

/**
Expand All @@ -55,7 +55,7 @@ public function info(string $message): void
*/
public function warn(string $message): void
{
$this->writer->write($this->styler->apply('yellow', $message));
$this->writer->write($this->consoleColor->apply('yellow', $message));
}

/**
Expand All @@ -67,6 +67,6 @@ public function warn(string $message): void
*/
public function error(string $message): void
{
$this->writer->write($this->styler->apply('red', $message));
$this->writer->write($this->consoleColor->apply('red', $message));
}
}

0 comments on commit cbabeed

Please sign in to comment.