function HTML::printHeader
Print the header of the HTML page.
Return value
void
1 call to HTML::printHeader()
- HTML::generate in vendor/
squizlabs/ php_codesniffer/ src/ Generators/ HTML.php - Generates the documentation for a standard.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Generators/ HTML.php, line 132
Class
Namespace
PHP_CodeSniffer\GeneratorsCode
protected function printHeader() {
$standard = $this->ruleset->name;
echo '<html>' . PHP_EOL;
echo ' <head>' . PHP_EOL;
echo " <title>{$standard} Coding Standards</title>" . PHP_EOL;
echo ' ' . str_replace("\n", PHP_EOL, self::STYLESHEET) . PHP_EOL;
echo ' </head>' . PHP_EOL;
echo ' <body>' . PHP_EOL;
echo " <h1>{$standard} Coding Standards</h1>" . PHP_EOL;
}