You are here

private function PHP_CodeCoverage_Report_HTML::copyFiles in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php \PHP_CodeCoverage_Report_HTML::copyFiles()

Parameters

string $target:

1 call to PHP_CodeCoverage_Report_HTML::copyFiles()
PHP_CodeCoverage_Report_HTML::process in vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php, line 131

Class

PHP_CodeCoverage_Report_HTML
Generates an HTML report from an PHP_CodeCoverage object.

Code

private function copyFiles($target) {
  $dir = $this
    ->getDirectory($target . 'css');
  copy($this->templatePath . 'css/bootstrap.min.css', $dir . 'bootstrap.min.css');
  copy($this->templatePath . 'css/nv.d3.min.css', $dir . 'nv.d3.min.css');
  copy($this->templatePath . 'css/style.css', $dir . 'style.css');
  $dir = $this
    ->getDirectory($target . 'fonts');
  copy($this->templatePath . 'fonts/glyphicons-halflings-regular.eot', $dir . 'glyphicons-halflings-regular.eot');
  copy($this->templatePath . 'fonts/glyphicons-halflings-regular.svg', $dir . 'glyphicons-halflings-regular.svg');
  copy($this->templatePath . 'fonts/glyphicons-halflings-regular.ttf', $dir . 'glyphicons-halflings-regular.ttf');
  copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff', $dir . 'glyphicons-halflings-regular.woff');
  copy($this->templatePath . 'fonts/glyphicons-halflings-regular.woff2', $dir . 'glyphicons-halflings-regular.woff2');
  $dir = $this
    ->getDirectory($target . 'js');
  copy($this->templatePath . 'js/bootstrap.min.js', $dir . 'bootstrap.min.js');
  copy($this->templatePath . 'js/d3.min.js', $dir . 'd3.min.js');
  copy($this->templatePath . 'js/holder.min.js', $dir . 'holder.min.js');
  copy($this->templatePath . 'js/html5shiv.min.js', $dir . 'html5shiv.min.js');
  copy($this->templatePath . 'js/jquery.min.js', $dir . 'jquery.min.js');
  copy($this->templatePath . 'js/nv.d3.min.js', $dir . 'nv.d3.min.js');
  copy($this->templatePath . 'js/respond.min.js', $dir . 'respond.min.js');
}