mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Code formatting fixes in Requirements_Backend
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@71906 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5012fcb3ca
commit
a1f21fe5ec
@ -383,11 +383,9 @@ class Requirements_Backend {
|
||||
* @param uniquenessID Use this to ensure that pieces of code only get added once.
|
||||
*/
|
||||
public function customScript($script, $uniquenessID = null) {
|
||||
if($uniquenessID)
|
||||
$this->customScript[$uniquenessID] = $script;
|
||||
else {
|
||||
$this->customScript[] = $script;
|
||||
}
|
||||
if($uniquenessID) $this->customScript[$uniquenessID] = $script;
|
||||
else $this->customScript[] = $script;
|
||||
|
||||
$script .= "\n";
|
||||
}
|
||||
|
||||
@ -398,11 +396,8 @@ class Requirements_Backend {
|
||||
* @param int $uniquenessID Group CSS by a unique ID as to avoid duplicate custom CSS in header
|
||||
*/
|
||||
function customCSS($script, $uniquenessID = null) {
|
||||
if($uniquenessID)
|
||||
$this->customCSS[$uniquenessID] = $script;
|
||||
else {
|
||||
$this->customCSS[] = $script;
|
||||
}
|
||||
if($uniquenessID) $this->customCSS[$uniquenessID] = $script;
|
||||
else $this->customCSS[] = $script;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -412,12 +407,8 @@ class Requirements_Backend {
|
||||
* @param string $uniquenessID
|
||||
*/
|
||||
function insertHeadTags($html, $uniquenessID = null) {
|
||||
if($uniquenessID)
|
||||
$this->customHeadTags[$uniquenessID] = $html;
|
||||
else {
|
||||
$this->customHeadTags[] = $html;
|
||||
}
|
||||
|
||||
if($uniquenessID) $this->customHeadTags[$uniquenessID] = $html;
|
||||
else $this->customHeadTags[] = $html;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user