public function setUseColor($useColor)
{
if (null === $useColor) {
$useColor = $this->featureDetector->isSupported('stdout.ansi');
}
// @codeCoverageIgnoreStart
if ($useColor) {
$this->addStart = "[33m[2m{+[0m[33m";
$this->addEnd = "[2m+}[0m";
$this->removeStart = "[36m[2m[-[0m[36m";
$this->removeEnd = "[2m-][0m";
} else {
// @codeCoverageIgnoreEnd
$this->addStart = '{+';
$this->addEnd = '+}';
$this->removeStart = '[-';
$this->removeEnd = '-]';
}
}