diff options
author | Joas Schilling <coding@schilljs.com> | 2023-11-23 10:22:34 +0100 |
---|---|---|
committer | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2023-11-23 10:36:13 +0100 |
commit | aa5f037af71c915424c6dcfd5ad2dc82797dc0d6 (patch) | |
tree | 843203cd1346158aab3515687e37a90e78c929e9 /apps/settings/templates | |
parent | 272719ed1cba6836ea0a597bb9767754eeb1e0d4 (diff) | |
download | nextcloud-server-aa5f037af71c915424c6dcfd5ad2dc82797dc0d6.tar.gz nextcloud-server-aa5f037af71c915424c6dcfd5ad2dc82797dc0d6.zip |
chore: apply changes from Nextcloud coding standards 1.1.1
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Diffstat (limited to 'apps/settings/templates')
8 files changed, 53 insertions, 49 deletions
diff --git a/apps/settings/templates/help.php b/apps/settings/templates/help.php index 8bc3acd6e71..649178c15d1 100644 --- a/apps/settings/templates/help.php +++ b/apps/settings/templates/help.php @@ -6,8 +6,10 @@ <ul> <li> <a class="icon-user <?php if ($_['mode'] === 'user') { - p('active'); - } ?>" <?php if ($_['mode'] === 'user') { print_unescaped('aria-current="page"'); } ?> + p('active'); + } ?>" <?php if ($_['mode'] === 'user') { + print_unescaped('aria-current="page"'); + } ?> href="<?php print_unescaped($_['urlUserDocs']); ?>"> <span class="help-list__text"> <?php p($l->t('User documentation')); ?> @@ -17,8 +19,10 @@ <?php if ($_['admin']) { ?> <li> <a class="icon-user-admin <?php if ($_['mode'] === 'admin') { - p('active'); - } ?>" <?php if ($_['mode'] === 'admin') { print_unescaped('aria-current="page"'); } ?> + p('active'); + } ?>" <?php if ($_['mode'] === 'admin') { + print_unescaped('aria-current="page"'); + } ?> href="<?php print_unescaped($_['urlAdminDocs']); ?>"> <span class="help-list__text"> <?php p($l->t('Administrator documentation')); ?> diff --git a/apps/settings/templates/settings/additional.php b/apps/settings/templates/settings/additional.php index ac6b91e8d76..a9dd6af5c0f 100644 --- a/apps/settings/templates/settings/additional.php +++ b/apps/settings/templates/settings/additional.php @@ -30,4 +30,4 @@ if (isset($form['form'])) {?> <div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div> <?php } -} ?> + } ?> diff --git a/apps/settings/templates/settings/admin/additional-mail.php b/apps/settings/templates/settings/admin/additional-mail.php index c6548d88737..7b88e997369 100644 --- a/apps/settings/templates/settings/admin/additional-mail.php +++ b/apps/settings/templates/settings/admin/additional-mail.php @@ -1,25 +1,25 @@ <?php /** - * @copyright Copyright (c) 2016 Arthur Schiwon <blizzz@arthur-schiwon.de> - * - * @author Arthur Schiwon <blizzz@arthur-schiwon.de> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ + * @copyright Copyright (c) 2016 Arthur Schiwon <blizzz@arthur-schiwon.de> + * + * @author Arthur Schiwon <blizzz@arthur-schiwon.de> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ /** @var \OCP\IL10N $l */ /** @var array $_ */ @@ -77,14 +77,14 @@ $mail_sendmailmode = [ <p> <label id="mail_smtpsecure_label" for="mail_smtpsecure" <?php if ($_['mail_smtpmode'] !== 'smtp') { - print_unescaped(' class="hidden"'); - } ?>> + print_unescaped(' class="hidden"'); + } ?>> <?php p($l->t('Encryption')); ?> </label> <select name="mail_smtpsecure" id="mail_smtpsecure" <?php if ($_['mail_smtpmode'] !== 'smtp') { - print_unescaped(' class="hidden"'); - } ?>> + print_unescaped(' class="hidden"'); + } ?>> <?php foreach ($mail_smtpsecure as $secure => $name): $selected = ''; if ($secure == $_['mail_smtpsecure']): @@ -143,8 +143,8 @@ $mail_sendmailmode = [ </form> <form class="mail_settings" id="mail_credentials_settings"> <p id="mail_credentials" <?php if (!$_['mail_smtpauth'] || $_['mail_smtpmode'] !== 'smtp') { - print_unescaped(' class="hidden"'); - } ?>> + print_unescaped(' class="hidden"'); + } ?>> <label for="mail_smtpname"><?php p($l->t('Credentials')); ?></label> <input type="text" name="mail_smtpname" id="mail_smtpname" placeholder="<?php p($l->t('SMTP Username'))?>" value="<?php p($_['mail_smtpname']) ?>" /> diff --git a/apps/settings/templates/settings/admin/overview.php b/apps/settings/templates/settings/admin/overview.php index 7d0ea25872a..db066fc6df3 100644 --- a/apps/settings/templates/settings/admin/overview.php +++ b/apps/settings/templates/settings/admin/overview.php @@ -48,10 +48,10 @@ </div> <div id="postsetupchecks" data-check-wellknown="<?php if ($_['checkForWorkingWellKnownSetup']) { - p('true'); -} else { - p('false'); -} ?>"> + p('true'); + } else { + p('false'); + } ?>"> <ul class="errors hidden"></ul> <ul class="warnings hidden"></ul> <ul class="info hidden"></ul> diff --git a/apps/settings/templates/settings/empty.php b/apps/settings/templates/settings/empty.php index 63ebc6f44a1..59e3098e3de 100644 --- a/apps/settings/templates/settings/empty.php +++ b/apps/settings/templates/settings/empty.php @@ -21,4 +21,4 @@ * */ - # used for Personal/Additional settings as fallback for legacy settings +# used for Personal/Additional settings as fallback for legacy settings diff --git a/apps/settings/templates/settings/frame.php b/apps/settings/templates/settings/frame.php index bd562014bea..b0889746173 100644 --- a/apps/settings/templates/settings/frame.php +++ b/apps/settings/templates/settings/frame.php @@ -53,7 +53,7 @@ script('files', 'jquery.fileupload'); <?php } } - ?> +?> </ul> </nav> @@ -80,7 +80,7 @@ script('files', 'jquery.fileupload'); <?php } } - ?> +?> </ul> </nav> </div> diff --git a/apps/settings/templates/settings/personal/development.notice.php b/apps/settings/templates/settings/personal/development.notice.php index 4244bf387a0..ce32639c598 100644 --- a/apps/settings/templates/settings/personal/development.notice.php +++ b/apps/settings/templates/settings/personal/development.notice.php @@ -59,7 +59,7 @@ $l->t('Subscribe to our newsletter'), ], -'{facebookopen}<img width="50" src="{facebookimage}" title="{facebooktext}" alt="{facebooktext}">{linkclose} + '{facebookopen}<img width="50" src="{facebookimage}" title="{facebooktext}" alt="{facebooktext}">{linkclose} {twitteropen}<img width="50" src="{twitterimage}" title="{twittertext}" alt="{twittertext}">{linkclose} {mastodonopen}<img width="50" src="{mastodonimage}" title="{mastodontext}" alt="{mastodontext}">{linkclose} {rssopen}<img class="img-circle" width="50" src="{rssimage}" title="{rsstext}" alt="{rsstext}">{linkclose} diff --git a/apps/settings/templates/settings/personal/security/twofactor.php b/apps/settings/templates/settings/personal/security/twofactor.php index 3fa63bd6d28..17d1e6e7074 100644 --- a/apps/settings/templates/settings/personal/security/twofactor.php +++ b/apps/settings/templates/settings/personal/security/twofactor.php @@ -38,16 +38,16 @@ declare(strict_types=1); /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */ $provider = $data['provider']; - //Handle 2FA provider icons and theme - if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { - $icon = $provider->getDarkIcon(); - //fallback icon if the 2factor provider doesn't provide an icon. - } else { - $icon = image_path('core', 'actions/password.svg'); - } - /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ - $settings = $data['settings']; - ?> + //Handle 2FA provider icons and theme + if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { + $icon = $provider->getDarkIcon(); + //fallback icon if the 2factor provider doesn't provide an icon. + } else { + $icon = image_path('core', 'actions/password.svg'); + } + /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ + $settings = $data['settings']; + ?> <h3> <img class="two-factor-provider-settings-icon" src="<?php p($icon) ?>" alt=""> <?php p($provider->getDisplayName()) ?> |