Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-05 16:12:57 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-10-05 21:25:24 +0300
commitd9015a8c94bfd71fe484618a06d276701d3bf9ff (patch)
tree3f7a1cd6ec2fd982dd02de71b76076f7f01cef70 /lib/private/legacy/template/functions.php
parentd357f4b10fe1b59e1e07bb90641d647522c7bfe2 (diff)
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/legacy/template/functions.php')
-rw-r--r--lib/private/legacy/template/functions.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php
index e2a1c476433..e69abbe9f60 100644
--- a/lib/private/legacy/template/functions.php
+++ b/lib/private/legacy/template/functions.php
@@ -47,12 +47,12 @@ function p($string) {
* @param string $opts, additional optional options
*/
function emit_css_tag($href, $opts = '') {
- $s='<link rel="stylesheet"';
+ $s = '<link rel="stylesheet"';
if (!empty($href)) {
- $s.=' href="' . $href .'"';
+ $s .= ' href="' . $href .'"';
}
if (!empty($opts)) {
- $s.=' '.$opts;
+ $s .= ' '.$opts;
}
print_unescaped($s.">\n");
}
@@ -75,20 +75,20 @@ function emit_css_loading_tags($obj) {
* @param string $src the source URL, ignored when empty
* @param string $script_content the inline script content, ignored when empty
*/
-function emit_script_tag($src, $script_content='') {
- $defer_str=' defer';
- $s='<script nonce="' . \OC::$server->getContentSecurityPolicyNonceManager()->getNonce() . '"';
+function emit_script_tag($src, $script_content = '') {
+ $defer_str = ' defer';
+ $s = '<script nonce="' . \OC::$server->getContentSecurityPolicyNonceManager()->getNonce() . '"';
if (!empty($src)) {
// emit script tag for deferred loading from $src
- $s.=$defer_str.' src="' . $src .'">';
+ $s .= $defer_str.' src="' . $src .'">';
} elseif (!empty($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 .= '>';
}
- $s.='</script>';
+ $s .= '</script>';
print_unescaped($s."\n");
}
@@ -306,9 +306,9 @@ function relative_modified_date($timestamp, $fromTime = null, $dateOnly = false)
return $formatter->formatTimeSpan($timestamp, $fromTime);
}
-function html_select_options($options, $selected, $params=[]) {
+function html_select_options($options, $selected, $params = []) {
if (!is_array($selected)) {
- $selected=[$selected];
+ $selected = [$selected];
}
if (isset($params['combine']) && $params['combine']) {
$options = array_combine($options, $options);