Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Facade.php

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

Facade

Namespace

SebastianBergmann\CodeCoverage\Report\Html

Code

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);
    }
}
RSS feed
Powered by Drupal