From 7e12bee86a7dffc5efec83067a63d8da5b18d2c8 Mon Sep 17 00:00:00 2001 From: 3Dgoo Date: Sat, 15 Jun 2019 10:37:49 +0930 Subject: [PATCH] Requirements_Backend.php API documentation fix The API documentation for Requirements_Backend is currently broken: https://api.silverstripe.org/4/SilverStripe/View/Requirements_Backend.html#method_customScript This is because there are unescaped start tags in the function documentation. This is the same as the recent #9060 PR, but for the Requirements_Backend class this time. This fix changes the tags to be escaped. --- src/View/Requirements_Backend.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/View/Requirements_Backend.php b/src/View/Requirements_Backend.php index 70bdba384..795379ff1 100644 --- a/src/View/Requirements_Backend.php +++ b/src/View/Requirements_Backend.php @@ -82,14 +82,14 @@ class Requirements_Backend protected $customScript = array(); /** - * All custom CSS rules which are inserted directly at the bottom of the HTML tag + * All custom CSS rules which are inserted directly at the bottom of the HTML `` tag * * @var array */ protected $customCSS = array(); /** - * All custom HTML markup which is added before the closing tag, e.g. additional + * All custom HTML markup which is added before the closing `` tag, e.g. additional * metatags. * * @var array @@ -148,8 +148,8 @@ class Requirements_Backend protected $combinedFilesFolder = null; /** - * Put all JavaScript includes at the bottom of the template before the closing tag, - * rather than the default behaviour of placing them at the end of the tag. This means + * Put all JavaScript includes at the bottom of the template before the closing `` tag, + * rather than the default behaviour of placing them at the end of the `` tag. This means * script downloads won't block other HTTP requests, which can be a performance improvement. * * @var bool @@ -522,7 +522,7 @@ class Requirements_Backend /** * Register the given JavaScript code into the list of requirements * - * @param string $script The script content as a string (without enclosing