function Facade::renderCss
1 call to Facade::renderCss()
- Facade::process in vendor/
phpunit/ php-code-coverage/ src/ Report/ Html/ Facade.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Html/ Facade.php, line 118
Class
Namespace
SebastianBergmann\CodeCoverage\Report\HtmlCode
private function renderCss(string $target) : void {
$template = new Template($this->templatePath . 'css/style.css', '{{', '}}');
$template->setVar([
'success-low' => $this->colors
->successLow(),
'success-medium' => $this->colors
->successMedium(),
'success-high' => $this->colors
->successHigh(),
'warning' => $this->colors
->warning(),
'danger' => $this->colors
->danger(),
]);
try {
$template->renderTo($this->directory($target . '_css') . 'style.css');
} catch (Exception $e) {
throw new FileCouldNotBeWrittenException($e->getMessage(), $e->getCode(), $e);
}
}