summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Template.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-05 15:12:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-10-05 20:25:24 +0200
commitd9015a8c94bfd71fe484618a06d276701d3bf9ff (patch)
tree3f7a1cd6ec2fd982dd02de71b76076f7f01cef70 /lib/private/legacy/OC_Template.php
parentd357f4b10fe1b59e1e07bb90641d647522c7bfe2 (diff)
downloadnextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.tar.gz
nextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.zip
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/legacy/OC_Template.php')
-rw-r--r--lib/private/legacy/OC_Template.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php
index 54c203a3ab6..c14a43ea430 100644
--- a/lib/private/legacy/OC_Template.php
+++ b/lib/private/legacy/OC_Template.php
@@ -161,8 +161,8 @@ class OC_Template extends \OC\Template\Base {
* @param string $text the text content for the element. If $text is null then the
* element will be written as empty element. So use "" to get a closing tag.
*/
- public function addHeader($tag, $attributes, $text=null) {
- $this->headers[]= [
+ public function addHeader($tag, $attributes, $text = null) {
+ $this->headers[] = [
'tag' => $tag,
'attributes' => $attributes,
'text' => $text
@@ -195,7 +195,7 @@ class OC_Template extends \OC\Template\Base {
if (strcasecmp($header['tag'], 'script') === 0 && in_array('src', array_map('strtolower', array_keys($header['attributes'])))) {
$headers .= ' defer';
}
- foreach ($header['attributes'] as $name=>$value) {
+ foreach ($header['attributes'] as $name => $value) {
$headers .= ' '.\OCP\Util::sanitizeHTML($name).'="'.\OCP\Util::sanitizeHTML($value).'"';
}
if ($header['text'] !== null) {