From 016c88c09d371c9826ed82e5ac8bcbf2d69f9523 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 4 Nov 2024 16:00:31 +0100 Subject: [PATCH] Generators/HTML: move static string to class constant --- src/Generators/HTML.php | 139 +++++++++++++++++++++------------------- 1 file changed, 73 insertions(+), 66 deletions(-) diff --git a/src/Generators/HTML.php b/src/Generators/HTML.php index a042f36be9..2a4a8076da 100644 --- a/src/Generators/HTML.php +++ b/src/Generators/HTML.php @@ -20,6 +20,78 @@ class HTML extends Generator { + /** + * Stylesheet for the HTML output. + * + * @var string + */ + const STYLESHEET = ''; + /** * Generates the documentation for a standard. @@ -61,72 +133,7 @@ protected function printHeader() echo ''.PHP_EOL; echo ' '.PHP_EOL; echo " $standard Coding Standards".PHP_EOL; - echo ' '.PHP_EOL; + echo ' '.self::STYLESHEET.PHP_EOL; echo ' '.PHP_EOL; echo ' '.PHP_EOL; echo "

$standard Coding Standards

".PHP_EOL;