diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-01-20 15:26:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 15:26:17 +0100 |
commit | 3f231d68d7066d605f261f652f5263613d56ada4 (patch) | |
tree | e7ee5a3e8b7ab5292d7b8dfdcb024726304d4894 /core/templates/layout.user.php | |
parent | 473c546b5c562e19ba8f9d3aef9cd64d2458cda7 (diff) | |
parent | f5c361cf44739058b79f322576a1bad2d8c142d9 (diff) | |
download | nextcloud-server-3f231d68d7066d605f261f652f5263613d56ada4.tar.gz nextcloud-server-3f231d68d7066d605f261f652f5263613d56ada4.zip |
Merge pull request #36271 from nextcloud/fix/fix-codestyle
Fix codestyle using codesniffer
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r-- | core/templates/layout.user.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index b2eed70c299..951f0dabe21 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -19,9 +19,9 @@ $getUserAvatar = static function (int $size) use ($_): string { <title> <?php p(!empty($_['pageTitle'])?$_['pageTitle'].' - ':''); - p(!empty($_['application'])?$_['application'].' - ':''); - p($theme->getTitle()); - ?> +p(!empty($_['application'])?$_['application'].' - ':''); +p($theme->getTitle()); +?> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -43,8 +43,8 @@ $getUserAvatar = static function (int $size) use ($_): string { <?php print_unescaped($_['headers']); ?> </head> <body id="<?php p($_['bodyid']);?>" <?php foreach ($_['enabledThemes'] as $themeId) { - p("data-theme-$themeId "); - }?> data-themes=<?php p(join(',', $_['enabledThemes'])) ?>> + p("data-theme-$themeId "); + }?> data-themes=<?php p(join(',', $_['enabledThemes'])) ?>> <?php include 'layout.noscript.warning.php'; ?> <?php foreach ($_['initialStates'] as $app => $initialState) { ?> @@ -75,19 +75,19 @@ $getUserAvatar = static function (int $size) use ($_): string { aria-label="<?php p($l->t('Open settings menu'));?>" aria-haspopup="true" aria-controls="expanddiv" aria-expanded="false"> <div id="avatardiv-menu" class="avatardiv<?php if ($_['userAvatarSet']) { - print_unescaped(' avatardiv-shown'); - } else { - print_unescaped('" style="display: none'); - } ?>" + print_unescaped(' avatardiv-shown'); + } else { + print_unescaped('" style="display: none'); + } ?>" data-user="<?php p($_['user_uid']); ?>" data-displayname="<?php p($_['user_displayname']); ?>" <?php - if ($_['userAvatarSet']) { - $avatar32 = $getUserAvatar(32); ?> data-avatar="<?php p($avatar32); ?>" + if ($_['userAvatarSet']) { + $avatar32 = $getUserAvatar(32); ?> data-avatar="<?php p($avatar32); ?>" <?php - } ?>> + } ?>> <?php - if ($_['userAvatarSet']) {?> + if ($_['userAvatarSet']) {?> <img alt="" width="32" height="32" src="<?php p($avatar32);?>" srcset="<?php p($getUserAvatar(64));?> 2x, <?php p($getUserAvatar(128));?> 4x" |