Skip to content

Commit

Permalink
Merge pull request #9071 from 3Dgoo/patch-1
Browse files Browse the repository at this point in the history
Requirements_Backend.php API documentation fix
  • Loading branch information
robbieaverill authored Jun 15, 2019
2 parents 7124313 + 7e12bee commit 1fc94ec
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/View/Requirements_Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ class Requirements_Backend
protected $customScript = array();

/**
* All custom CSS rules which are inserted directly at the bottom of the HTML <head> tag
* All custom CSS rules which are inserted directly at the bottom of the HTML `<head>` tag
*
* @var array
*/
protected $customCSS = array();

/**
* All custom HTML markup which is added before the closing <head> tag, e.g. additional
* All custom HTML markup which is added before the closing `<head>` tag, e.g. additional
* metatags.
*
* @var array
Expand Down Expand Up @@ -148,8 +148,8 @@ class Requirements_Backend
protected $combinedFilesFolder = null;

/**
* Put all JavaScript includes at the bottom of the template before the closing <body> tag,
* rather than the default behaviour of placing them at the end of the <head> tag. This means
* Put all JavaScript includes at the bottom of the template before the closing `<body>` tag,
* rather than the default behaviour of placing them at the end of the `<head>` tag. This means
* script downloads won't block other HTTP requests, which can be a performance improvement.
*
* @var bool
Expand Down Expand Up @@ -522,7 +522,7 @@ protected function getAllJavascript()
/**
* Register the given JavaScript code into the list of requirements
*
* @param string $script The script content as a string (without enclosing <script> tag)
* @param string $script The script content as a string (without enclosing `<script>` tag)
* @param string $uniquenessID A unique ID that ensures a piece of code is only added once
*/
public function customScript($script, $uniquenessID = null)
Expand All @@ -547,7 +547,7 @@ public function getCustomScripts()
/**
* Register the given CSS styles into the list of requirements
*
* @param string $script CSS selectors as a string (without enclosing <style> tag)
* @param string $script CSS selectors as a string (without enclosing `<style>` tag)
* @param string $uniquenessID A unique ID that ensures a piece of code is only added once
*/
public function customCSS($script, $uniquenessID = null)
Expand All @@ -570,7 +570,7 @@ public function getCustomCSS()
}

/**
* Add the following custom HTML code to the <head> section of the page
* Add the following custom HTML code to the `<head>` section of the page
*
* @param string $html Custom HTML code
* @param string $uniquenessID A unique ID that ensures a piece of code is only added once
Expand Down Expand Up @@ -868,9 +868,9 @@ public function includeInHTML($content)

/**
* Given a block of HTML, insert the given scripts at the bottom before
* the closing </body> tag
* the closing `</body>` tag
*
* @param string $jsRequirements String containing one or more javascript <script /> tags
* @param string $jsRequirements String containing one or more javascript `<script />` tags
* @param string $content HTML body
* @return string Merged HTML
*/
Expand All @@ -887,9 +887,9 @@ protected function insertScriptsAtBottom($jsRequirements, $content)
}

/**
* Given a block of HTML, insert the given scripts inside the <body></body>
* Given a block of HTML, insert the given scripts inside the `<body></body>`
*
* @param string $jsRequirements String containing one or more javascript <script /> tags
* @param string $jsRequirements String containing one or more javascript `<script />` tags
* @param string $content HTML body
* @return string Merged HTML
*/
Expand Down Expand Up @@ -924,7 +924,7 @@ protected function insertScriptsIntoBody($jsRequirements, $content)
}

/**
* Given a block of HTML, insert the given code inside the <head></head> block
* Given a block of HTML, insert the given code inside the `<head></head>` block
*
* @param string $jsRequirements String containing one or more html tags
* @param string $content HTML body
Expand Down

0 comments on commit 1fc94ec

Please sign in to comment.