Example #1
0
 /**
  * Writes a buffer out with a color sequence if colors are enabled.
  *
  * @author Sebastian Bergmann <*****@*****.**>
  * @param  string $color
  * @param  string $buffer
  */
 protected function writeWithColor($color, $buffer)
 {
     if ($this->colors) {
         $buffer = Util\Cli::formatWithColor($color, $buffer);
     }
     $this->write($buffer . PHP_EOL);
 }