You are here

private function PHP_CodeCoverage_Report_Text::format in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php \PHP_CodeCoverage_Report_Text::format()
1 call to PHP_CodeCoverage_Report_Text::format()
PHP_CodeCoverage_Report_Text::process in vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Text.php, line 240

Class

PHP_CodeCoverage_Report_Text
Generates human readable output from an PHP_CodeCoverage object.

Code

private function format($color, $padding, $string) {
  $reset = $color ? $this->colors['reset'] : '';
  return $color . str_pad($string, $padding) . $reset . PHP_EOL;
}