@@ -43,7 +43,7 @@ |
||
43 | 43 | $finder->expects(self::once()) |
44 | 44 | ->method('findBinaryPath') |
45 | 45 | ->with('sendmail') |
46 | - ->willReturn($sendmail ? '/usr/bin/sendmail': false); |
|
46 | + ->willReturn($sendmail ? '/usr/bin/sendmail' : false); |
|
47 | 47 | $this->overwriteService(IBinaryFinder::class, $finder); |
48 | 48 | |
49 | 49 | $this->config |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $expected = new TemplateResponse( |
108 | 108 | 'settings', |
109 | 109 | 'settings/admin/security', |
110 | - [ ], |
|
110 | + [], |
|
111 | 111 | '' |
112 | 112 | ); |
113 | 113 | $this->assertEquals($expected, $this->admin->getForm()); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | 'version' => 'dev-master', |
6 | 6 | 'reference' => '071fe73d0a28f44c6e24cc87fbd00e54a3b92b57', |
7 | 7 | 'type' => 'library', |
8 | - 'install_path' => __DIR__ . '/../', |
|
8 | + 'install_path' => __DIR__.'/../', |
|
9 | 9 | 'aliases' => array(), |
10 | 10 | 'dev' => false, |
11 | 11 | ), |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'version' => 'dev-master', |
16 | 16 | 'reference' => '071fe73d0a28f44c6e24cc87fbd00e54a3b92b57', |
17 | 17 | 'type' => 'library', |
18 | - 'install_path' => __DIR__ . '/../', |
|
18 | + 'install_path' => __DIR__.'/../', |
|
19 | 19 | 'aliases' => array(), |
20 | 20 | 'dev_requirement' => false, |
21 | 21 | ), |
@@ -35,19 +35,19 @@ discard block |
||
35 | 35 | |
36 | 36 | <div class="section" id="mail_general_settings"> |
37 | 37 | <?php if ($_['mail_smtpmode'] === 'null') { ?> |
38 | - <h2><?php p($l->t('Email server'));?></h2> |
|
38 | + <h2><?php p($l->t('Email server')); ?></h2> |
|
39 | 39 | |
40 | 40 | <p> |
41 | 41 | <?php p($l->t('Mail delivery is disabled by instance config "%s".', ['mail_smtpmode'])); ?> |
42 | 42 | </p> |
43 | 43 | <?php } else { ?> |
44 | 44 | <form id="mail_general_settings_form" class="mail_settings"> |
45 | - <h2><?php p($l->t('Email server'));?></h2> |
|
45 | + <h2><?php p($l->t('Email server')); ?></h2> |
|
46 | 46 | <a target="_blank" |
47 | 47 | rel="noreferrer noopener" class="icon-info" |
48 | - title="<?php p($l->t('Open documentation'));?>" |
|
48 | + title="<?php p($l->t('Open documentation')); ?>" |
|
49 | 49 | href="<?php p(link_to_docs('admin-email')); ?>" |
50 | - aria-label="<?php p($l->t('Open documentation'));?>"></a> |
|
50 | + aria-label="<?php p($l->t('Open documentation')); ?>"></a> |
|
51 | 51 | <p class="settings-hint"> |
52 | 52 | <?php p($l->t('It is important to set up this server to be able to send emails, like for password reset and notifications.')); ?> |
53 | 53 | </p> |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $selected = 'selected="selected"'; |
63 | 63 | endif; ?> |
64 | 64 | <option value="<?php p($smtpmode[0])?>" <?php p($selected) ?>><?php p($smtpmode[1]) ?></option> |
65 | - <?php endforeach;?> |
|
65 | + <?php endforeach; ?> |
|
66 | 66 | </select> |
67 | 67 | </p> |
68 | 68 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $selected = 'selected="selected"'; |
84 | 84 | endif; ?> |
85 | 85 | <option value="<?php p($secure)?>" <?php p($selected) ?>><?php p($name) ?></option> |
86 | - <?php endforeach;?> |
|
86 | + <?php endforeach; ?> |
|
87 | 87 | </select> |
88 | 88 | </p> |
89 | 89 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | <select name="mail_sendmailmode" id="mail_sendmailmode"> |
95 | 95 | <?php foreach ($mail_sendmailmode as $sendmailmodeValue => $sendmailmodeLabel): ?> |
96 | 96 | <option value="<?php p($sendmailmodeValue)?>" <?= $sendmailmodeValue === $_['mail_sendmailmode'] ? 'selected="selected"' : '' ?>><?php p($sendmailmodeLabel) ?></option> |
97 | - <?php endforeach;?> |
|
97 | + <?php endforeach; ?> |
|
98 | 98 | </select> |
99 | 99 | </p> |
100 | 100 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | <p> |
9 | 9 | <a href="<?php p($_['reasons-use-nextcloud-pdf-link']); ?>" id="open-reasons-use-nextcloud-pdf" class="link-button" target="_blank"> |
10 | 10 | <span class="icon-file-text" aria-hidden="true"></span> |
11 | - <?php p($l->t('Reasons to use Nextcloud in your organization'));?> |
|
11 | + <?php p($l->t('Reasons to use Nextcloud in your organization')); ?> |
|
12 | 12 | </a> |
13 | 13 | </p> |
14 | 14 | <p> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | <?php foreach ($_['forms']['personal'] as $form) { |
21 | 21 | if (isset($form['anchor'])) { |
22 | 22 | $anchor = \OCP\Server::get(\OCP\IURLGenerator::class)->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]); |
23 | - $class = 'nav-icon-' . $form['anchor']; |
|
23 | + $class = 'nav-icon-'.$form['anchor']; |
|
24 | 24 | $sectionName = $form['section-name']; ?> |
25 | 25 | <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?> data-section-id="<?php print_unescaped($form['anchor']); ?>" data-section-type="personal"> |
26 | 26 | <a href="<?php p($anchor); ?>"<?php print_unescaped($form['active'] ? ' aria-current="page"' : ''); ?>> |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | <?php foreach ($_['forms']['admin'] as $form) { |
48 | 48 | if (isset($form['anchor'])) { |
49 | 49 | $anchor = \OCP\Server::get(\OCP\IURLGenerator::class)->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]); |
50 | - $class = 'nav-icon-' . $form['anchor']; |
|
50 | + $class = 'nav-icon-'.$form['anchor']; |
|
51 | 51 | $sectionName = $form['section-name']; ?> |
52 | 52 | <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?> data-section-id="<?php print_unescaped($form['anchor']); ?>" data-section-type="admin"> |
53 | 53 | <a href="<?php p($anchor); ?>"<?php print_unescaped($form['active'] ? ' aria-current="page"' : ''); ?>> |
@@ -11,6 +11,6 @@ |
||
11 | 11 | |
12 | 12 | <?php foreach ($_['forms'] as $form) { |
13 | 13 | if (isset($form['form'])) {?> |
14 | - <div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div> |
|
14 | + <div id="<?php isset($form['anchor']) ? p($form['anchor']) : p(''); ?>"><?php print_unescaped($form['form']); ?></div> |
|
15 | 15 | <?php } |
16 | 16 | } ?> |
@@ -53,7 +53,7 @@ |
||
53 | 53 | continue; |
54 | 54 | } |
55 | 55 | |
56 | - if (str_starts_with($query->getRoute(), $entry['id'] . '.')) { |
|
56 | + if (str_starts_with($query->getRoute(), $entry['id'].'.')) { |
|
57 | 57 | // Skip the current app, unlikely this is intended |
58 | 58 | continue; |
59 | 59 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | private function handleGetValue(DeclarativeSettingsGetValueEvent $event): void { |
45 | 45 | |
46 | 46 | if ($event->getFieldId() === 'mail_providers_enabled') { |
47 | - $event->setValue((int)$this->config->getValueBool('core', 'mail_providers_enabled', true)); |
|
47 | + $event->setValue((int) $this->config->getValueBool('core', 'mail_providers_enabled', true)); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | private function handleSetValue(DeclarativeSettingsSetValueEvent $event): void { |
53 | 53 | |
54 | 54 | if ($event->getFieldId() === 'mail_providers_enabled') { |
55 | - $this->config->setValueBool('core', 'mail_providers_enabled', (bool)$event->getValue()); |
|
55 | + $this->config->setValueBool('core', 'mail_providers_enabled', (bool) $event->getValue()); |
|
56 | 56 | $event->stopPropagation(); |
57 | 57 | } |
58 | 58 |