aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/template/functions.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-19 11:10:31 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-19 14:21:20 +0200
commit9836e9b16484582d309c8437ab46d82e34956941 (patch)
treed3da87bb7dfd1a8877ed25072ecf609def844089 /lib/private/legacy/template/functions.php
parent8c60ffa0f21414e6e671c567d664a9b9e5253e26 (diff)
downloadnextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.tar.gz
nextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.zip
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private/legacy/template/functions.php')
-rw-r--r--lib/private/legacy/template/functions.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php
index a9a1f10a116..37df801c3c4 100644
--- a/lib/private/legacy/template/functions.php
+++ b/lib/private/legacy/template/functions.php
@@ -22,12 +22,12 @@ function p($string) {
function emit_css_tag($href, $opts = '') {
$s = '<link rel="stylesheet"';
if (!empty($href)) {
- $s .= ' href="' . $href .'"';
+ $s .= ' href="' . $href . '"';
}
if (!empty($opts)) {
- $s .= ' '.$opts;
+ $s .= ' ' . $opts;
}
- print_unescaped($s.">\n");
+ print_unescaped($s . ">\n");
}
/**
@@ -58,16 +58,16 @@ function emit_script_tag(string $src, string $script_content = '', string $conte
$s = '<script nonce="' . $nonceManager->getNonce() . '"';
if (!empty($src)) {
// emit script tag for deferred loading from $src
- $s .= $defer_str.' src="' . $src .'"' . $type . '>';
+ $s .= $defer_str . ' src="' . $src . '"' . $type . '>';
} elseif ($script_content !== '') {
// emit script tag for inline script from $script_content without defer (see MDN)
- $s .= ">\n".$script_content."\n";
+ $s .= ">\n" . $script_content . "\n";
} else {
// no $src nor $src_content, really useless empty tag
$s .= '>';
}
$s .= '</script>';
- print_unescaped($s."\n");
+ print_unescaped($s . "\n");
}
/**
@@ -314,7 +314,7 @@ function html_select_options($options, $selected, $params = []) {
$label = $label[$label_name];
}
$select = in_array($value, $selected) ? ' selected="selected"' : '';
- $html .= '<option value="' . \OCP\Util::sanitizeHTML($value) . '"' . $select . '>' . \OCP\Util::sanitizeHTML($label) . '</option>'."\n";
+ $html .= '<option value="' . \OCP\Util::sanitizeHTML($value) . '"' . $select . '>' . \OCP\Util::sanitizeHTML($label) . '</option>' . "\n";
}
return $html;
}