Completed
Pull Request — master (#6788)
by Markus
14:10
created
settings/templates/settings.development.notice.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -1,64 +1,64 @@
 block discarded – undo
1 1
 	<p>
2 2
 		<?php print_unescaped(str_replace(
3
-			[
4
-				'{communityopen}',
5
-				'{githubopen}',
6
-				'{licenseopen}',
7
-				'{linkclose}',
8
-			],
9
-			[
10
-				'<a href="https://nextcloud.com/contribute" target="_blank" rel="noreferrer noopener">',
11
-				'<a href="https://github.com/nextcloud" target="_blank" rel="noreferrer noopener">',
12
-				'<a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noreferrer noopener">',
13
-				'</a>',
14
-			],
15
-			$l->t('Developed by the {communityopen}Nextcloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}AGPL{linkclose}.')
16
-		)); ?>
3
+            [
4
+                '{communityopen}',
5
+                '{githubopen}',
6
+                '{licenseopen}',
7
+                '{linkclose}',
8
+            ],
9
+            [
10
+                '<a href="https://nextcloud.com/contribute" target="_blank" rel="noreferrer noopener">',
11
+                '<a href="https://github.com/nextcloud" target="_blank" rel="noreferrer noopener">',
12
+                '<a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank" rel="noreferrer noopener">',
13
+                '</a>',
14
+            ],
15
+            $l->t('Developed by the {communityopen}Nextcloud community{linkclose}, the {githubopen}source code{linkclose} is licensed under the {licenseopen}AGPL{linkclose}.')
16
+        )); ?>
17 17
 	</p>
18 18
 
19 19
 	<p class="social-button">
20 20
 		<?php print_unescaped(str_replace(
21
-			[
22
-				'{googleimage}',
23
-				'{facebookimage}',
24
-				'{twitterimage}',
25
-				'{rssimage}',
26
-				'{mailimage}',
27
-				'{googleopen}',
28
-				'{facebookopen}',
29
-				'{twitteropen}',
30
-				'{rssopen}',
31
-				'{newsletteropen}',
32
-				'{linkclose}',
33
-				'{googletext}',
34
-				'{facebooktext}',
35
-				'{twittertext}',
36
-				'{rsstext}',
37
-				'{mailtext}',
38
-			],
39
-			[
40
-				image_path('core', 'googleplus.svg'),
41
-				image_path('core', 'facebook.svg'),
42
-				image_path('core', 'twitter.svg'),
43
-				image_path('core', 'rss.svg'),
44
-				image_path('core', 'mail.svg'),
45
-				'<a target="_blank" rel="noreferrer noopener noopener" href="https://plus.google.com/+Nextcloud">',
46
-				'<a target="_blank" rel="noreferrer noopener noopener" href="https://www.facebook.com/Nextclouders/">',
47
-				'<a target="_blank" rel="noreferrer noopener noopener" href="https://twitter.com/nextclouders">',
48
-				'<a target="_blank" rel="noreferrer noopener noopener" href="https://nextcloud.com/news/">',
49
-				'<a target="_blank" rel="noreferrer noopener noopener" href="https://newsletter.nextcloud.com/?p=subscribe&amp;id=1">',
50
-				'</a>',
51
-				$l->t('Follow us on Google+'),
52
-				$l->t('Like our Facebook page'),
53
-				$l->t('Follow us on Twitter'),
54
-				$l->t('Check out our blog'),
55
-				$l->t('Subscribe to our newsletter'),
21
+            [
22
+                '{googleimage}',
23
+                '{facebookimage}',
24
+                '{twitterimage}',
25
+                '{rssimage}',
26
+                '{mailimage}',
27
+                '{googleopen}',
28
+                '{facebookopen}',
29
+                '{twitteropen}',
30
+                '{rssopen}',
31
+                '{newsletteropen}',
32
+                '{linkclose}',
33
+                '{googletext}',
34
+                '{facebooktext}',
35
+                '{twittertext}',
36
+                '{rsstext}',
37
+                '{mailtext}',
38
+            ],
39
+            [
40
+                image_path('core', 'googleplus.svg'),
41
+                image_path('core', 'facebook.svg'),
42
+                image_path('core', 'twitter.svg'),
43
+                image_path('core', 'rss.svg'),
44
+                image_path('core', 'mail.svg'),
45
+                '<a target="_blank" rel="noreferrer noopener noopener" href="https://plus.google.com/+Nextcloud">',
46
+                '<a target="_blank" rel="noreferrer noopener noopener" href="https://www.facebook.com/Nextclouders/">',
47
+                '<a target="_blank" rel="noreferrer noopener noopener" href="https://twitter.com/nextclouders">',
48
+                '<a target="_blank" rel="noreferrer noopener noopener" href="https://nextcloud.com/news/">',
49
+                '<a target="_blank" rel="noreferrer noopener noopener" href="https://newsletter.nextcloud.com/?p=subscribe&amp;id=1">',
50
+                '</a>',
51
+                $l->t('Follow us on Google+'),
52
+                $l->t('Like our Facebook page'),
53
+                $l->t('Follow us on Twitter'),
54
+                $l->t('Check out our blog'),
55
+                $l->t('Subscribe to our newsletter'),
56 56
 
57
-			],
57
+            ],
58 58
 '{googleopen}<img width="50" src="{googleimage}" title="{googletext}" alt="{googletext}">{linkclose}
59 59
 {facebookopen}<img width="50" src="{facebookimage}" title="{facebooktext}" alt="{facebooktext}">{linkclose}
60 60
 {twitteropen}<img width="50" src="{twitterimage}" title="{twittertext}" alt="{twittertext}">{linkclose}
61 61
 {rssopen}<img class="img-circle" width="50" src="{rssimage}" title="{rsstext}" alt="{rsstext}">{linkclose}
62 62
 {newsletteropen}<img width="50" src="{mailimage}" title="{mailtext}" alt="{mailtext}">{linkclose}'
63
-		)); ?>
63
+        )); ?>
64 64
 	</p>
Please login to merge, or discard this patch.
settings/templates/help.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <div id="app-navigation">
2 2
 	<ul>
3
-	<?php if($_['admin']) { ?>
3
+	<?php if ($_['admin']) { ?>
4 4
 		<li>
5 5
 			<a class="<?php p($_['style1']); ?>"
6 6
 				href="<?php print_unescaped($_['url1']); ?>">
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 			</a>
27 27
 		</li>
28 28
 
29
-	<?php if($_['admin']) { ?>
29
+	<?php if ($_['admin']) { ?>
30 30
 		<li>
31 31
 			<a href="https://nextcloud.com/support/" target="_blank" rel="noreferrer noopener">
32 32
 				<?php p($l->t('Getting help')); ?> ↗
Please login to merge, or discard this patch.
settings/templates/settings/admin/server.php 3 patches
Indentation   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -31,101 +31,101 @@  discard block
 block discarded – undo
31 31
 	<p class="settings-hint"><?php p($l->t('It\'s important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the Tips & Tricks section and the documentation for more information.'));?></p>
32 32
 	<ul>
33 33
 		<?php
34
-		// is php setup properly to query system environment variables like getenv('PATH')
35
-		if ($_['getenvServerNotWorking']) {
36
-			?>
34
+        // is php setup properly to query system environment variables like getenv('PATH')
35
+        if ($_['getenvServerNotWorking']) {
36
+            ?>
37 37
 			<li>
38 38
 				<?php p($l->t('PHP does not seem to be setup properly to query system environment variables. The test with getenv("PATH") only returns an empty response.')); ?><br>
39 39
 				<?php print_unescaped($l->t('Please check the <a target="_blank" rel="noreferrer noopener" href="%s">installation documentation ↗</a> for PHP configuration notes and the PHP configuration of your server, especially when using php-fpm.', link_to_docs('admin-php-fpm'))); ?>
40 40
 			</li>
41 41
 			<?php
42
-		}
42
+        }
43 43
 
44
-		// is read only config enabled
45
-		if ($_['readOnlyConfigEnabled']) {
46
-			?>
44
+        // is read only config enabled
45
+        if ($_['readOnlyConfigEnabled']) {
46
+            ?>
47 47
 			<li>
48 48
 				<?php p($l->t('The Read-Only config has been enabled. This prevents setting some configurations via the web-interface. Furthermore, the file needs to be made writable manually for every update.')); ?>
49 49
 			</li>
50 50
 			<?php
51
-		}
51
+        }
52 52
 
53
-		// Are doc blocks accessible?
54
-		if (!$_['isAnnotationsWorking']) {
55
-			?>
53
+        // Are doc blocks accessible?
54
+        if (!$_['isAnnotationsWorking']) {
55
+            ?>
56 56
 			<li>
57 57
 				<?php p($l->t('PHP is apparently set up to strip inline doc blocks. This will make several core apps inaccessible.')); ?><br>
58 58
 				<?php p($l->t('This is probably caused by a cache/accelerator such as Zend OPcache or eAccelerator.')); ?>
59 59
 			</li>
60 60
 			<?php
61
-		}
61
+        }
62 62
 
63
-		// Is the Transaction isolation level READ_COMMITTED?
64
-		if ($_['invalidTransactionIsolationLevel']) {
65
-			?>
63
+        // Is the Transaction isolation level READ_COMMITTED?
64
+        if ($_['invalidTransactionIsolationLevel']) {
65
+            ?>
66 66
 			<li>
67 67
 				<?php p($l->t('Your database does not run with "READ COMMITTED" transaction isolation level. This can cause problems when multiple actions are executed in parallel.')); ?>
68 68
 			</li>
69 69
 			<?php
70
-		}
70
+        }
71 71
 
72
-		// Warning if memcache is outdated
73
-		foreach ($_['OutdatedCacheWarning'] as $php_module => $data) {
74
-			?>
72
+        // Warning if memcache is outdated
73
+        foreach ($_['OutdatedCacheWarning'] as $php_module => $data) {
74
+            ?>
75 75
 			<li>
76 76
 				<?php p($l->t('%1$s below version %2$s is installed, for stability and performance reasons it is recommended to update to a newer %1$s version.', $data)); ?>
77 77
 			</li>
78 78
 			<?php
79
-		}
79
+        }
80 80
 
81
-		// if module fileinfo available?
82
-		if (!$_['has_fileinfo']) {
83
-			?>
81
+        // if module fileinfo available?
82
+        if (!$_['has_fileinfo']) {
83
+            ?>
84 84
 			<li>
85 85
 				<?php p($l->t('The PHP module \'fileinfo\' is missing. It is strongly recommended to enable this module to get the best results with MIME type detection.')); ?>
86 86
 			</li>
87 87
 			<?php
88
-		}
88
+        }
89 89
 
90
-		// locking configured optimally?
91
-		if ($_['fileLockingType'] === 'none') {
92
-			?>
90
+        // locking configured optimally?
91
+        if ($_['fileLockingType'] === 'none') {
92
+            ?>
93 93
 			<li>
94 94
 				<?php print_unescaped($l->t('Transactional file locking is disabled, this might lead to issues with race conditions. Enable \'filelocking.enabled\' in config.php to avoid these problems. See the <a target="_blank" rel="noreferrer noopener" href="%s">documentation ↗</a> for more information.', link_to_docs('admin-transactional-locking'))); ?>
95 95
 			</li>
96 96
 			<?php
97
-		}
97
+        }
98 98
 
99
-		// is locale working ?
100
-		if (!$_['isLocaleWorking']) {
101
-			?>
99
+        // is locale working ?
100
+        if (!$_['isLocaleWorking']) {
101
+            ?>
102 102
 			<li>
103 103
 				<?php
104
-				$locales = 'en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8';
105
-				p($l->t('System locale can not be set to a one which supports UTF-8.'));
106
-				?>
104
+                $locales = 'en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8';
105
+                p($l->t('System locale can not be set to a one which supports UTF-8.'));
106
+                ?>
107 107
 				<br>
108 108
 				<?php
109
-				p($l->t('This means that there might be problems with certain characters in filenames.'));
110
-				?>
109
+                p($l->t('This means that there might be problems with certain characters in filenames.'));
110
+                ?>
111 111
 				<br>
112 112
 				<?php
113
-				p($l->t('It is strongly proposed to install the required packages on your system to support one of the following locales: %s.', [$locales]));
114
-				?>
113
+                p($l->t('It is strongly proposed to install the required packages on your system to support one of the following locales: %s.', [$locales]));
114
+                ?>
115 115
 			</li>
116 116
 			<?php
117
-		}
117
+        }
118 118
 
119
-		if ($_['suggestedOverwriteCliUrl']) {
120
-			?>
119
+        if ($_['suggestedOverwriteCliUrl']) {
120
+            ?>
121 121
 			<li>
122 122
 				<?php p($l->t('If your installation is not installed at the root of the domain and uses system Cron, there can be issues with the URL generation. To avoid these problems, please set the "overwrite.cli.url" option in your config.php file to the webroot path of your installation (Suggested: "%s")', $_['suggestedOverwriteCliUrl'])); ?>
123 123
 			</li>
124 124
 			<?php
125
-		}
125
+        }
126 126
 
127
-		if ($_['cronErrors']) {
128
-			?>
127
+        if ($_['cronErrors']) {
128
+            ?>
129 129
 			<li>
130 130
 				<?php p($l->t('It was not possible to execute the cron job via CLI. The following technical errors have appeared:')); ?>
131 131
 				<br>
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
 				</ol>
137 137
 			</li>
138 138
 			<?php
139
-		}
140
-		?>
139
+        }
140
+        ?>
141 141
 	</ul>
142 142
 
143 143
 	<div id="postsetupchecks" data-check-wellknown="<?php if($_['checkForWorkingWellKnownSetup']) { p('true'); } else { p('false'); } ?>">
@@ -158,9 +158,9 @@  discard block
 block discarded – undo
158 158
 	<h2 class="inlineblock"><?php p($l->t('Background jobs'));?></h2>
159 159
 	<p class="cronlog inlineblock">
160 160
 		<?php if ($_['lastcron'] !== false):
161
-			$relative_time = relative_modified_date($_['lastcron']);
162
-			$absolute_time = OC_Util::formatDate($_['lastcron']);
163
-			if (time() - $_['lastcron'] <= 3600): ?>
161
+            $relative_time = relative_modified_date($_['lastcron']);
162
+            $absolute_time = OC_Util::formatDate($_['lastcron']);
163
+            if (time() - $_['lastcron'] <= 3600): ?>
164 164
 				<span class="status success"></span>
165 165
 				<span class="crondate" title="<?php p($absolute_time);?>">
166 166
 				<?php p($l->t("Last job ran %s.", [$relative_time]));?>
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
 				<?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time]));?>
172 172
 			</span>
173 173
 			<?php endif;
174
-		else: ?>
174
+        else: ?>
175 175
 			<span class="status error"></span>
176 176
 			<?php p($l->t("Background job didn’t run yet!"));
177
-		endif; ?>
177
+        endif; ?>
178 178
 	</p>
179 179
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
180 180
 	   title="<?php p($l->t('Open documentation'));?>"
@@ -184,38 +184,38 @@  discard block
 block discarded – undo
184 184
 	<p>
185 185
 		<input type="radio" name="mode" value="ajax" class="radio"
186 186
 			   id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") {
187
-			print_unescaped('checked="checked"');
188
-		} ?>>
187
+            print_unescaped('checked="checked"');
188
+        } ?>>
189 189
 		<label for="backgroundjobs_ajax">AJAX</label><br/>
190 190
 		<em><?php p($l->t("Execute one task with each page loaded")); ?></em>
191 191
 	</p>
192 192
 	<p>
193 193
 		<input type="radio" name="mode" value="webcron" class="radio"
194 194
 			   id="backgroundjobs_webcron" <?php if ($_['backgroundjobs_mode'] === "webcron") {
195
-			print_unescaped('checked="checked"');
196
-		} ?>>
195
+            print_unescaped('checked="checked"');
196
+        } ?>>
197 197
 		<label for="backgroundjobs_webcron">Webcron</label><br/>
198 198
 		<em><?php p($l->t("cron.php is registered at a webcron service to call cron.php every 15 minutes over HTTP.")); ?></em>
199 199
 	</p>
200 200
 	<p>
201 201
 		<input type="radio" name="mode" value="cron" class="radio"
202 202
 			   id="backgroundjobs_cron" <?php if ($_['backgroundjobs_mode'] === "cron") {
203
-			print_unescaped('checked="checked"');
204
-		}
205
-		if (!$_['cli_based_cron_possible']) {
206
-			print_unescaped('disabled');
207
-		}?>>
203
+            print_unescaped('checked="checked"');
204
+        }
205
+        if (!$_['cli_based_cron_possible']) {
206
+            print_unescaped('disabled');
207
+        }?>>
208 208
 		<label for="backgroundjobs_cron">Cron</label><br/>
209 209
 		<em><?php p($l->t("Use system cron service to call the cron.php file every 15 minutes.")); ?>
210 210
 			<?php if($_['cli_based_cron_possible']) {
211
-				p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']]));
212
-			} else {
213
-				print_unescaped(str_replace(
214
-					['{linkstart}', '{linkend}'],
215
-					['<a href="http://php.net/manual/en/book.posix.php">', ' ↗</a>'],
216
-					$l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.')
217
-				));
218
-		} ?></em>
211
+                p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']]));
212
+            } else {
213
+                print_unescaped(str_replace(
214
+                    ['{linkstart}', '{linkend}'],
215
+                    ['<a href="http://php.net/manual/en/book.posix.php">', ' ↗</a>'],
216
+                    $l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.')
217
+                ));
218
+        } ?></em>
219 219
 
220 220
 	</p>
221 221
 </div>
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <div id="security-warning" class="section">
30
-	<h2><?php p($l->t('Security & setup warnings'));?></h2>
31
-	<p class="settings-hint"><?php p($l->t('It\'s important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the Tips & Tricks section and the documentation for more information.'));?></p>
30
+	<h2><?php p($l->t('Security & setup warnings')); ?></h2>
31
+	<p class="settings-hint"><?php p($l->t('It\'s important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the Tips & Tricks section and the documentation for more information.')); ?></p>
32 32
 	<ul>
33 33
 		<?php
34 34
 		// is php setup properly to query system environment variables like getenv('PATH')
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 				<?php p($l->t('It was not possible to execute the cron job via CLI. The following technical errors have appeared:')); ?>
131 131
 				<br>
132 132
 				<ol>
133
-					<?php foreach(json_decode($_['cronErrors']) as $error) { if(isset($error->error)) {?>
133
+					<?php foreach (json_decode($_['cronErrors']) as $error) { if (isset($error->error)) {?>
134 134
 						<li><?php p($error->error) ?> <?php p($error->hint) ?></li>
135 135
 					<?php }};?>
136 136
 				</ol>
@@ -140,35 +140,35 @@  discard block
 block discarded – undo
140 140
 		?>
141 141
 	</ul>
142 142
 
143
-	<div id="postsetupchecks" data-check-wellknown="<?php if($_['checkForWorkingWellKnownSetup']) { p('true'); } else { p('false'); } ?>">
143
+	<div id="postsetupchecks" data-check-wellknown="<?php if ($_['checkForWorkingWellKnownSetup']) { p('true'); } else { p('false'); } ?>">
144 144
 		<div class="loading"></div>
145 145
 		<ul class="errors hidden"></ul>
146 146
 		<ul class="warnings hidden"></ul>
147 147
 		<ul class="info hidden"></ul>
148 148
 		<p class="hint hidden">
149
-			<?php print_unescaped($l->t('Please double check the <a target="_blank" rel="noreferrer noopener" href="%s">installation guides ↗</a>, and check for any errors or warnings in the <a href="%s">log</a>.', [link_to_docs('admin-install'), \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => 'logging'])] )); ?>
149
+			<?php print_unescaped($l->t('Please double check the <a target="_blank" rel="noreferrer noopener" href="%s">installation guides ↗</a>, and check for any errors or warnings in the <a href="%s">log</a>.', [link_to_docs('admin-install'), \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => 'logging'])])); ?>
150 150
 		</p>
151 151
 	</div>
152 152
 	<div id="security-warning-state">
153
-		<span class="hidden icon-checkmark"><?php p($l->t('All checks passed.'));?></span>
153
+		<span class="hidden icon-checkmark"><?php p($l->t('All checks passed.')); ?></span>
154 154
 	</div>
155 155
 </div>
156 156
 
157 157
 <div class="section" id="backgroundjobs">
158
-	<h2 class="inlineblock"><?php p($l->t('Background jobs'));?></h2>
158
+	<h2 class="inlineblock"><?php p($l->t('Background jobs')); ?></h2>
159 159
 	<p class="cronlog inlineblock">
160 160
 		<?php if ($_['lastcron'] !== false):
161 161
 			$relative_time = relative_modified_date($_['lastcron']);
162 162
 			$absolute_time = OC_Util::formatDate($_['lastcron']);
163 163
 			if (time() - $_['lastcron'] <= 3600): ?>
164 164
 				<span class="status success"></span>
165
-				<span class="crondate" title="<?php p($absolute_time);?>">
166
-				<?php p($l->t("Last job ran %s.", [$relative_time]));?>
165
+				<span class="crondate" title="<?php p($absolute_time); ?>">
166
+				<?php p($l->t("Last job ran %s.", [$relative_time])); ?>
167 167
 			</span>
168 168
 			<?php else: ?>
169 169
 				<span class="status error"></span>
170
-				<span class="crondate" title="<?php p($absolute_time);?>">
171
-				<?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time]));?>
170
+				<span class="crondate" title="<?php p($absolute_time); ?>">
171
+				<?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time])); ?>
172 172
 			</span>
173 173
 			<?php endif;
174 174
 		else: ?>
@@ -177,10 +177,10 @@  discard block
 block discarded – undo
177 177
 		endif; ?>
178 178
 	</p>
179 179
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
180
-	   title="<?php p($l->t('Open documentation'));?>"
180
+	   title="<?php p($l->t('Open documentation')); ?>"
181 181
 	   href="<?php p(link_to_docs('admin-background-jobs')); ?>"></a>
182 182
 
183
-	<p class="settings-hint"><?php p($l->t('For optimal performance it\'s important to configure background jobs correctly. For bigger instances \'Cron\' is the recommended setting. Please see the documentation for more information.'));?></p>
183
+	<p class="settings-hint"><?php p($l->t('For optimal performance it\'s important to configure background jobs correctly. For bigger instances \'Cron\' is the recommended setting. Please see the documentation for more information.')); ?></p>
184 184
 	<p>
185 185
 		<input type="radio" name="mode" value="ajax" class="radio"
186 186
 			   id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 		}?>>
208 208
 		<label for="backgroundjobs_cron">Cron</label><br/>
209 209
 		<em><?php p($l->t("Use system cron service to call the cron.php file every 15 minutes.")); ?>
210
-			<?php if($_['cli_based_cron_possible']) {
210
+			<?php if ($_['cli_based_cron_possible']) {
211 211
 				p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']]));
212 212
 			} else {
213 213
 				print_unescaped(str_replace(
@@ -222,6 +222,6 @@  discard block
 block discarded – undo
222 222
 
223 223
 <div class="section">
224 224
 	<!-- should be the last part, so Updater can follow if enabled (it has no heading therefore). -->
225
-	<h2><?php p($l->t('Version'));?></h2>
225
+	<h2><?php p($l->t('Version')); ?></h2>
226 226
 	<p><strong><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" rel="noreferrer noopener" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></strong></p>
227 227
 </div>
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,15 +165,20 @@
 block discarded – undo
165 165
 				<span class="crondate" title="<?php p($absolute_time);?>">
166 166
 				<?php p($l->t("Last job ran %s.", [$relative_time]));?>
167 167
 			</span>
168
-			<?php else: ?>
168
+			<?php else {
169
+    : ?>
169 170
 				<span class="status error"></span>
170
-				<span class="crondate" title="<?php p($absolute_time);?>">
171
+				<span class="crondate" title="<?php p($absolute_time);
172
+}
173
+?>">
171 174
 				<?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time]));?>
172 175
 			</span>
173 176
 			<?php endif;
174
-		else: ?>
177
+		else {
178
+		    : ?>
175 179
 			<span class="status error"></span>
176 180
 			<?php p($l->t("Background job didn’t run yet!"));
181
+		}
177 182
 		endif; ?>
178 183
 	</p>
179 184
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
Please login to merge, or discard this patch.
settings/templates/settings/admin/additional-mail.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
 
53 53
 <div class="section" id="mail_general_settings">
54 54
 	<form id="mail_general_settings_form" class="mail_settings">
55
-		<h2><?php p($l->t('Email server'));?></h2>
55
+		<h2><?php p($l->t('Email server')); ?></h2>
56 56
 		<a target="_blank" rel="noreferrer noopener" class="icon-info"
57
-		   title="<?php p($l->t('Open documentation'));?>"
57
+		   title="<?php p($l->t('Open documentation')); ?>"
58 58
 		   href="<?php p(link_to_docs('admin-email')); ?>"></a>
59 59
 		<p class="settings-hint"><?php p($l->t('It is important to set up this server to be able to send emails, like for password reset and notifications.')); ?></p>
60 60
 		<p><span id="mail_settings_msg" class="msg"></span></p>
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 						$selected = 'selected="selected"';
69 69
 					endif; ?>
70 70
 					<option value="<?php p($smtpmode[0])?>" <?php p($selected) ?>><?php p($smtpmode[1]) ?></option>
71
-				<?php endforeach;?>
71
+				<?php endforeach; ?>
72 72
 			</select>
73 73
 
74 74
 			<label id="mail_smtpsecure_label" for="mail_smtpsecure"
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 						$selected = 'selected="selected"';
105 105
 					endif; ?>
106 106
 					<option value="<?php p($authtype)?>" <?php p($selected) ?>><?php p($name) ?></option>
107
-				<?php endforeach;?>
107
+				<?php endforeach; ?>
108 108
 			</select>
109 109
 
110 110
 			<input type="checkbox" name="mail_smtpauth" id="mail_smtpauth" class="checkbox" value="1"
Please login to merge, or discard this patch.
settings/templates/settings/admin/encryption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 <div class="section" id='encryptionAPI'>
30 30
 	<h2><?php p($l->t('Server-side encryption')); ?></h2>
31 31
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
32
-	   title="<?php p($l->t('Open documentation'));?>"
32
+	   title="<?php p($l->t('Open documentation')); ?>"
33 33
 	   href="<?php p(link_to_docs('admin-encryption')); ?>"></a>
34 34
 	<p class="settings-hint"><?php p($l->t('Server-side encryption makes it possible to encrypt files which are uploaded to this server. This comes with limitations like a performance penalty, so enable this only if needed.')); ?></p>
35 35
 	<p id="enable">
Please login to merge, or discard this patch.
settings/templates/settings/admin/sharing.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -27,81 +27,81 @@
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <div class="section" id="shareAPI">
30
-	<h2><?php p($l->t('Sharing'));?></h2>
30
+	<h2><?php p($l->t('Sharing')); ?></h2>
31 31
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
32
-	   title="<?php p($l->t('Open documentation'));?>"
32
+	   title="<?php p($l->t('Open documentation')); ?>"
33 33
 	   href="<?php p(link_to_docs('admin-sharing')); ?>"></a>
34
-        <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.'));?></p>
34
+        <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.')); ?></p>
35 35
 	<p id="enable">
36 36
 		<input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled" class="checkbox"
37 37
 			   value="1" <?php if ($_['shareAPIEnabled'] === 'yes') print_unescaped('checked="checked"'); ?> />
38
-		<label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API'));?></label><br/>
38
+		<label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API')); ?></label><br/>
39 39
 	</p>
40
-	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
40
+	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
41 41
 		<input type="checkbox" name="shareapi_allow_links" id="allowLinks" class="checkbox"
42 42
 			   value="1" <?php if ($_['allowLinks'] === 'yes') print_unescaped('checked="checked"'); ?> />
43
-		<label for="allowLinks"><?php p($l->t('Allow users to share via link'));?></label><br/>
43
+		<label for="allowLinks"><?php p($l->t('Allow users to share via link')); ?></label><br/>
44 44
 	</p>
45 45
 
46 46
 	<p id="publicLinkSettings" class="indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
47 47
 		<input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload" class="checkbox"
48 48
 			   value="1" <?php if ($_['allowPublicUpload'] == 'yes') print_unescaped('checked="checked"'); ?> />
49
-		<label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/>
49
+		<label for="allowPublicUpload"><?php p($l->t('Allow public uploads')); ?></label><br/>
50 50
 		<input type="checkbox" name="shareapi_enable_link_password_by_default" id="enableLinkPasswordByDefault" class="checkbox"
51 51
 			   value="1" <?php if ($_['enableLinkPasswordByDefault'] === 'yes') print_unescaped('checked="checked"'); ?> />
52
-		<label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password'));?></label><br/>
52
+		<label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password')); ?></label><br/>
53 53
 		<input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" class="checkbox"
54 54
 			   value="1" <?php if ($_['enforceLinkPassword']) print_unescaped('checked="checked"'); ?> />
55
-		<label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/>
55
+		<label for="enforceLinkPassword"><?php p($l->t('Enforce password protection')); ?></label><br/>
56 56
 
57 57
 		<input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox"
58 58
 			   value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') print_unescaped('checked="checked"'); ?> />
59
-		<label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date'));?></label><br/>
59
+		<label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date')); ?></label><br/>
60 60
 
61 61
 	</p>
62
-	<p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') p('hidden');?>">
63
-		<?php p($l->t( 'Expire after ' )); ?>
62
+	<p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
63
+		<?php p($l->t('Expire after ')); ?>
64 64
 		<input type="text" name='shareapi_expire_after_n_days' id="shareapiExpireAfterNDays" placeholder="<?php p('7')?>"
65 65
 			   value='<?php p($_['shareExpireAfterNDays']) ?>' />
66
-		<?php p($l->t( 'days' )); ?>
66
+		<?php p($l->t('days')); ?>
67 67
 		<input type="checkbox" name="shareapi_enforce_expire_date" id="shareapiEnforceExpireDate" class="checkbox"
68 68
 			   value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') print_unescaped('checked="checked"'); ?> />
69
-		<label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
69
+		<label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/>
70 70
 	</p>
71
-	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
71
+	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
72 72
 		<input type="checkbox" name="shareapi_allow_resharing" id="allowResharing" class="checkbox"
73 73
 			   value="1" <?php if ($_['allowResharing'] === 'yes') print_unescaped('checked="checked"'); ?> />
74
-		<label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
74
+		<label for="allowResharing"><?php p($l->t('Allow resharing')); ?></label><br/>
75 75
 	</p>
76
-	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
76
+	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
77 77
 		<input type="checkbox" name="shareapi_allow_group_sharing" id="allowGroupSharing" class="checkbox"
78 78
 			   value="1" <?php if ($_['allowGroupSharing'] === 'yes') print_unescaped('checked="checked"'); ?> />
79
-		<label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br />
79
+		<label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups')); ?></label><br />
80 80
 	</p>
81
-	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
81
+	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
82 82
 		<input type="checkbox" name="shareapi_only_share_with_group_members" id="onlyShareWithGroupMembers" class="checkbox"
83 83
 			   value="1" <?php if ($_['onlyShareWithGroupMembers']) print_unescaped('checked="checked"'); ?> />
84
-		<label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups'));?></label><br/>
84
+		<label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups')); ?></label><br/>
85 85
 	</p>
86
-	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
86
+	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
87 87
 		<input type="checkbox" name="shareapi_exclude_groups" id="shareapiExcludeGroups" class="checkbox"
88 88
 			   value="1" <?php if ($_['shareExcludeGroups']) print_unescaped('checked="checked"'); ?> />
89
-		<label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/>
89
+		<label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing')); ?></label><br/>
90 90
 	</p>
91 91
 	<p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
92 92
 		<input name="shareapi_exclude_groups_list" type="hidden" id="excludedGroups" value="<?php p($_['shareExcludedGroupsList']) ?>" style="width: 400px" class="noJSAutoUpdate"/>
93 93
 		<br />
94 94
 		<em><?php p($l->t('These groups will still be able to receive shares, but not to initiate them.')); ?></em>
95 95
 	</p>
96
-	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
96
+	<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden'); ?>">
97 97
 		<input type="checkbox" name="shareapi_allow_share_dialog_user_enumeration" value="1" id="shareapi_allow_share_dialog_user_enumeration" class="checkbox"
98 98
 			<?php if ($_['allowShareDialogUserEnumeration'] === 'yes') print_unescaped('checked="checked"'); ?> />
99
-		<label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog. If this is disabled the full username or email address needs to be entered.'));?></label><br />
99
+		<label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog. If this is disabled the full username or email address needs to be entered.')); ?></label><br />
100 100
 	</p>
101 101
 	<p>
102 102
 		<input type="checkbox" id="publicShareDisclaimer" class="checkbox noJSAutoUpdate"
103 103
 			<?php if ($_['publicShareDisclaimerText'] !== null) print_unescaped('checked="checked"'); ?> />
104
-		<label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page. (Only shown when the file list is hidden.)'));?></label>
104
+		<label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page. (Only shown when the file list is hidden.)')); ?></label>
105 105
 		<span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span>
106 106
 		<br/>
107 107
 		<textarea placeholder="<?php p($l->t('This text will be shown on the public link upload page when the file list is hidden.')) ?>" id="publicShareDisclaimerText" <?php if ($_['publicShareDisclaimerText'] === null) { print_unescaped('class="hidden"'); } ?>><?php p($_['publicShareDisclaimerText']) ?></textarea>
Please login to merge, or discard this patch.
settings/templates/settings/admin/tipstricks.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 ?>
28 28
 
29 29
 <div class="section" id="admin-tips">
30
-	<h2><?php p($l->t('Tips & tricks'));?></h2>
30
+	<h2><?php p($l->t('Tips & tricks')); ?></h2>
31 31
 	<p class="settings-hint"><?php p($l->t('There are a lot of features and config switches available to optimally customize and use this instance. Here are some pointers for more information.')); ?></p>
32 32
 	<ul>
33 33
 		<?php
@@ -37,15 +37,15 @@  discard block
 block discarded – undo
37 37
 			<li>
38 38
 				<?php p($l->t('SQLite is currently being used as the backend database. For larger installations we recommend that you switch to a different database backend.')); ?><br>
39 39
 				<?php p($l->t('This is particularly recommended when using the desktop client for file synchronisation.')); ?><br>
40
-				<?php print_unescaped($l->t('To migrate to another database use the command line tool: \'occ db:convert-type\', or see the <a target="_blank" rel="noreferrer noopener" href="%s">documentation ↗</a>.', link_to_docs('admin-db-conversion') )); ?>
40
+				<?php print_unescaped($l->t('To migrate to another database use the command line tool: \'occ db:convert-type\', or see the <a target="_blank" rel="noreferrer noopener" href="%s">documentation ↗</a>.', link_to_docs('admin-db-conversion'))); ?>
41 41
 			</li>
42 42
 		<?php } ?>
43
-		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-backup')); ?>"><?php p($l->t('How to do backups'));?> ↗</a></li>
44
-		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-monitoring')); ?>"><?php p($l->t('Advanced monitoring'));?> ↗</a></li>
45
-		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-performance')); ?>"><?php p($l->t('Performance tuning'));?> ↗</a></li>
46
-		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-config')); ?>"><?php p($l->t('Improving the config.php'));?> ↗</a></li>
47
-		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('developer-theming')); ?>"><?php p($l->t('Theming'));?> ↗</a></li>
48
-		<li><a target="_blank" rel="noreferrer noopener" href="https://scan.nextcloud.com"><?php p($l->t('Check the security of your Nextcloud over our security scan'));?> ↗</a></li>
49
-		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-security')); ?>"><?php p($l->t('Hardening and security guidance'));?> ↗</a></li>
43
+		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-backup')); ?>"><?php p($l->t('How to do backups')); ?> ↗</a></li>
44
+		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-monitoring')); ?>"><?php p($l->t('Advanced monitoring')); ?> ↗</a></li>
45
+		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-performance')); ?>"><?php p($l->t('Performance tuning')); ?> ↗</a></li>
46
+		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-config')); ?>"><?php p($l->t('Improving the config.php')); ?> ↗</a></li>
47
+		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('developer-theming')); ?>"><?php p($l->t('Theming')); ?> ↗</a></li>
48
+		<li><a target="_blank" rel="noreferrer noopener" href="https://scan.nextcloud.com"><?php p($l->t('Check the security of your Nextcloud over our security scan')); ?> ↗</a></li>
49
+		<li><a target="_blank" rel="noreferrer noopener" href="<?php p(link_to_docs('admin-security')); ?>"><?php p($l->t('Hardening and security guidance')); ?> ↗</a></li>
50 50
 	</ul>
51 51
 </div>
Please login to merge, or discard this patch.
settings/templates/settings/personal/personal.info.php 1 patch
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -39,17 +39,17 @@  discard block
 block discarded – undo
39 39
 
40 40
 <div id="quota" class="section">
41 41
 	<progress value="<?php p($_['usage_relative']); ?>" max="100"
42
-	<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>></progress>
42
+	<?php if ($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>></progress>
43 43
 
44
-	<div style="width:<?php p($_['usage_relative']);?>%" class="quotatext-fg
45
-		<?php if($_['usage_relative'] > 80): ?> quota-warning <?php endif; ?>">
44
+	<div style="width:<?php p($_['usage_relative']); ?>%" class="quotatext-fg
45
+		<?php if ($_['usage_relative'] > 80): ?> quota-warning <?php endif; ?>">
46 46
 		<p class="quotatext">
47 47
 			<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
48 48
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
49
-					[$_['usage'], $_['total_space']]));?>
49
+					[$_['usage'], $_['total_space']])); ?>
50 50
 			<?php else: ?>
51 51
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
52
-					[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
52
+					[$_['usage'], $_['total_space'], $_['usage_relative']])); ?>
53 53
 			<?php endif ?>
54 54
 		</p>
55 55
 	</div>
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
 		<p class="quotatext">
58 58
 			<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
59 59
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
60
-					[$_['usage'], $_['total_space']]));?>
60
+					[$_['usage'], $_['total_space']])); ?>
61 61
 			<?php else: ?>
62 62
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
63
-					[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
63
+					[$_['usage'], $_['total_space'], $_['usage_relative']])); ?>
64 64
 			<?php endif ?>
65 65
 		</p>
66 66
 	</div>
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 				</div>
96 96
 			</div>
97 97
 			<span class="icon-checkmark hidden"></span>
98
-			<?php if($_['lookupServerUploadEnabled']) { ?>
98
+			<?php if ($_['lookupServerUploadEnabled']) { ?>
99 99
 			<input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>">
100 100
 			<?php } ?>
101 101
 		</form>
@@ -111,15 +111,15 @@  discard block
 block discarded – undo
111 111
 					</span>
112 112
 				</h2>
113 113
 				<input type="text" id="displayname" name="displayname"
114
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
114
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
115 115
 					   value="<?php p($_['displayName']) ?>"
116 116
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
117
-				<?php if(!$_['displayNameChangeSupported']) { ?>
118
-					<span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
117
+				<?php if (!$_['displayNameChangeSupported']) { ?>
118
+					<span><?php if (isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
119 119
 				<?php } ?>
120 120
 				<span class="icon-checkmark hidden"></span>
121 121
 				<span class="icon-error hidden" ></span>
122
-				<?php if($_['lookupServerUploadEnabled']) { ?>
122
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
123 123
 					<input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>">
124 124
 				<?php } ?>
125 125
 			</form>
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
 						<span class="icon-triangle-s"></span>
133 133
 					</span>
134 134
 				</h2>
135
-				<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
135
+				<div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>">
136 136
 					<img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
137 137
 				<?php
138
-					switch($_['emailVerification']) {
138
+					switch ($_['emailVerification']) {
139 139
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
140 140
 							p(image_path('core', 'actions/verifying.svg'));
141 141
 							break;
@@ -148,18 +148,18 @@  discard block
 block discarded – undo
148 148
 					?>">
149 149
 				</div>
150 150
 				<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
151
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
151
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
152 152
 					   placeholder="<?php p($l->t('Your email address')); ?>"
153 153
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
154 154
 			   	<span class="icon-checkmark hidden"></span>
155 155
 				<span class="icon-error hidden" ></span>
156
-				<?php if(!$_['displayNameChangeSupported']) { ?>
157
-					<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
156
+				<?php if (!$_['displayNameChangeSupported']) { ?>
157
+					<span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
158 158
 				<?php } ?>
159
-				<?php if($_['displayNameChangeSupported']) { ?>
159
+				<?php if ($_['displayNameChangeSupported']) { ?>
160 160
 					<em><?php p($l->t('For password reset and notifications')); ?></em>
161 161
 				<?php } ?>
162
-				<?php if($_['lookupServerUploadEnabled']) { ?>
162
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
163 163
 					<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
164 164
 				<?php } ?>
165 165
 			</form>
@@ -173,12 +173,12 @@  discard block
 block discarded – undo
173 173
 						<span class="icon-triangle-s"></span>
174 174
 					</span>
175 175
 				</h2>
176
-				<input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
176
+				<input type="tel" id="phone" name="phone" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
177 177
 					   value="<?php p($_['phone']) ?>"
178 178
 					   placeholder="<?php p($l->t('Your phone number')); ?>"
179 179
 				       autocomplete="on" autocapitalize="none" autocorrect="off" />
180 180
 				<span class="icon-checkmark hidden"></span>
181
-				<?php if($_['lookupServerUploadEnabled']) { ?>
181
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
182 182
 				<input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>">
183 183
 				<?php } ?>
184 184
 			</form>
@@ -193,12 +193,12 @@  discard block
 block discarded – undo
193 193
 						<span class="icon-triangle-s"></span>
194 194
 					</span>
195 195
 				</h2>
196
-				<input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
196
+				<input type="text" id="address" name="address" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
197 197
 					   placeholder="<?php p($l->t('Your postal address')); ?>"
198 198
 					   value="<?php p($_['address']) ?>"
199 199
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
200 200
 				<span class="icon-checkmark hidden"></span>
201
-				<?php if($_['lookupServerUploadEnabled']) { ?>
201
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
202 202
 				<input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>">
203 203
 				<?php } ?>
204 204
 			</form>
@@ -213,11 +213,11 @@  discard block
 block discarded – undo
213 213
 						<span class="icon-triangle-s"></span>
214 214
 					</span>
215 215
 				</h2>
216
-				<?php if($_['lookupServerUploadEnabled']) { ?>
217
-				<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
216
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
217
+				<div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>">
218 218
 					<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
219 219
 					<?php
220
-					switch($_['websiteVerification']) {
220
+					switch ($_['websiteVerification']) {
221 221
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
222 222
 							p(image_path('core', 'actions/verifying.svg'));
223 223
 							break;
@@ -228,13 +228,13 @@  discard block
 block discarded – undo
228 228
 							p(image_path('core', 'actions/verify.svg'));
229 229
 					}
230 230
 					?>"
231
-					<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
231
+					<?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
232 232
 					>
233 233
 					<div class="verification-dialog popovermenu bubble menu">
234 234
 						<div class="verification-dialog-content">
235 235
 							<p class="explainVerification"></p>
236 236
 							<p class="verificationCode"></p>
237
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
237
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
238 238
 						</div>
239 239
 					</div>
240 240
 				</div>
@@ -242,10 +242,10 @@  discard block
 block discarded – undo
242 242
 				<input type="text" name="website" id="website" value="<?php p($_['website']); ?>"
243 243
 				       placeholder="<?php p($l->t('Link https://…')); ?>"
244 244
 				       autocomplete="on" autocapitalize="none" autocorrect="off"
245
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
245
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
246 246
 				/>
247 247
 				<span class="icon-checkmark hidden"></span>
248
-				<?php if($_['lookupServerUploadEnabled']) { ?>
248
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
249 249
 				<input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>">
250 250
 				<?php } ?>
251 251
 			</form>
@@ -260,11 +260,11 @@  discard block
 block discarded – undo
260 260
 						<span class="icon-triangle-s"></span>
261 261
 					</span>
262 262
 				</h2>
263
-				<?php if($_['lookupServerUploadEnabled']) { ?>
264
-				<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
263
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
264
+				<div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>">
265 265
 					<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
266 266
 					<?php
267
-					switch($_['twitterVerification']) {
267
+					switch ($_['twitterVerification']) {
268 268
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
269 269
 							p(image_path('core', 'actions/verifying.svg'));
270 270
 							break;
@@ -275,13 +275,13 @@  discard block
 block discarded – undo
275 275
 							p(image_path('core', 'actions/verify.svg'));
276 276
 					}
277 277
 					?>"
278
-					<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
278
+					<?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
279 279
 					>
280 280
 					<div class="verification-dialog popovermenu bubble menu">
281 281
 						<div class="verification-dialog-content">
282 282
 							<p class="explainVerification"></p>
283 283
 							<p class="verificationCode"></p>
284
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
284
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
285 285
 						</div>
286 286
 					</div>
287 287
 				</div>
@@ -289,10 +289,10 @@  discard block
 block discarded – undo
289 289
 				<input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
290 290
 					   placeholder="<?php p($l->t('Twitter handle @…')); ?>"
291 291
 					   autocomplete="on" autocapitalize="none" autocorrect="off"
292
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
292
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
293 293
 				/>
294 294
 				<span class="icon-checkmark hidden"></span>
295
-				<?php if($_['lookupServerUploadEnabled']) { ?>
295
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
296 296
 				<input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>">
297 297
 				<?php } ?>
298 298
 			</form>
@@ -319,47 +319,47 @@  discard block
 block discarded – undo
319 319
 			<?php if (isset($_['activelanguage'])) { ?>
320 320
 			<form id="language" class="section">
321 321
 				<h2>
322
-					<label for="languageinput"><?php p($l->t('Language'));?></label>
322
+					<label for="languageinput"><?php p($l->t('Language')); ?></label>
323 323
 				</h2>
324
-				<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
325
-					<option value="<?php p($_['activelanguage']['code']);?>">
326
-						<?php p($_['activelanguage']['name']);?>
324
+				<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
325
+					<option value="<?php p($_['activelanguage']['code']); ?>">
326
+						<?php p($_['activelanguage']['name']); ?>
327 327
 					</option>
328
-					<?php foreach($_['commonlanguages'] as $language):?>
329
-						<option value="<?php p($language['code']);?>">
330
-							<?php p($language['name']);?>
328
+					<?php foreach ($_['commonlanguages'] as $language):?>
329
+						<option value="<?php p($language['code']); ?>">
330
+							<?php p($language['name']); ?>
331 331
 						</option>
332
-					<?php endforeach;?>
332
+					<?php endforeach; ?>
333 333
 					<optgroup label="––––––––––"></optgroup>
334
-					<?php foreach($_['languages'] as $language):?>
335
-						<option value="<?php p($language['code']);?>">
336
-							<?php p($language['name']);?>
334
+					<?php foreach ($_['languages'] as $language):?>
335
+						<option value="<?php p($language['code']); ?>">
336
+							<?php p($language['name']); ?>
337 337
 						</option>
338
-					<?php endforeach;?>
338
+					<?php endforeach; ?>
339 339
 				</select>
340 340
 				<a href="https://www.transifex.com/nextcloud/nextcloud/"
341 341
 					target="_blank" rel="noreferrer noopener">
342
-					<em><?php p($l->t('Help translate'));?></em>
342
+					<em><?php p($l->t('Help translate')); ?></em>
343 343
 				</a>
344 344
 			</form>
345 345
 			<?php } ?>
346 346
 		</div>
347 347
 		<div class="personal-settings-setting-box personal-settings-password-box">
348 348
 			<?php
349
-			if($_['passwordChangeSupported']) {
349
+			if ($_['passwordChangeSupported']) {
350 350
 				script('jquery-showpassword');
351 351
 			?>
352 352
 			<form id="passwordform" class="section">
353
-				<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
353
+				<h2 class="inlineblock"><?php p($l->t('Password')); ?></h2>
354 354
 				<div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div>
355 355
 
356 356
 				<label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
357 357
 				<input type="password" id="pass1" name="oldpassword"
358
-					placeholder="<?php p($l->t('Current password'));?>"
358
+					placeholder="<?php p($l->t('Current password')); ?>"
359 359
 					autocomplete="off" autocapitalize="none" autocorrect="off" />
360 360
 
361 361
 				<div class="personal-show-container">
362
-					<label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
362
+					<label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label>
363 363
 					<input type="password" id="pass2" name="newpassword"
364 364
 						placeholder="<?php p($l->t('New password')); ?>"
365 365
 						data-typetoggle="#personal-show"
Please login to merge, or discard this patch.
lib/private/legacy/defaults.php 2 patches
Indentation   +255 added lines, -255 removed lines patch added patch discarded remove patch
@@ -31,287 +31,287 @@
 block discarded – undo
31 31
  */
32 32
 class OC_Defaults {
33 33
 
34
-	private $theme;
35
-	private $l;
34
+    private $theme;
35
+    private $l;
36 36
 
37
-	private $defaultEntity;
38
-	private $defaultName;
39
-	private $defaultTitle;
40
-	private $defaultBaseUrl;
41
-	private $defaultSyncClientUrl;
42
-	private $defaultiOSClientUrl;
43
-	private $defaultiTunesAppId;
44
-	private $defaultAndroidClientUrl;
45
-	private $defaultDocBaseUrl;
46
-	private $defaultDocVersion;
47
-	private $defaultSlogan;
48
-	private $defaultColorPrimary;
37
+    private $defaultEntity;
38
+    private $defaultName;
39
+    private $defaultTitle;
40
+    private $defaultBaseUrl;
41
+    private $defaultSyncClientUrl;
42
+    private $defaultiOSClientUrl;
43
+    private $defaultiTunesAppId;
44
+    private $defaultAndroidClientUrl;
45
+    private $defaultDocBaseUrl;
46
+    private $defaultDocVersion;
47
+    private $defaultSlogan;
48
+    private $defaultColorPrimary;
49 49
 
50
-	public function __construct() {
51
-		$this->l = \OC::$server->getL10N('lib');
50
+    public function __construct() {
51
+        $this->l = \OC::$server->getL10N('lib');
52 52
 
53
-		$this->defaultEntity = 'Nextcloud'; /* e.g. company name, used for footers and copyright notices */
54
-		$this->defaultName = 'Nextcloud'; /* short name, used when referring to the software */
55
-		$this->defaultTitle = 'Nextcloud'; /* can be a longer name, for titles */
56
-		$this->defaultBaseUrl = 'https://nextcloud.com';
57
-		$this->defaultSyncClientUrl = 'https://nextcloud.com/install/#install-clients';
58
-		$this->defaultiOSClientUrl = 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
59
-		$this->defaultiTunesAppId = '1125420102';
60
-		$this->defaultAndroidClientUrl = 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
61
-		$this->defaultDocBaseUrl = 'https://docs.nextcloud.com';
62
-		$this->defaultDocVersion = '12'; // used to generate doc links
63
-		$this->defaultSlogan = $this->l->t('a safe home for all your data');
64
-		$this->defaultColorPrimary = '#0082c9';
53
+        $this->defaultEntity = 'Nextcloud'; /* e.g. company name, used for footers and copyright notices */
54
+        $this->defaultName = 'Nextcloud'; /* short name, used when referring to the software */
55
+        $this->defaultTitle = 'Nextcloud'; /* can be a longer name, for titles */
56
+        $this->defaultBaseUrl = 'https://nextcloud.com';
57
+        $this->defaultSyncClientUrl = 'https://nextcloud.com/install/#install-clients';
58
+        $this->defaultiOSClientUrl = 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
59
+        $this->defaultiTunesAppId = '1125420102';
60
+        $this->defaultAndroidClientUrl = 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
61
+        $this->defaultDocBaseUrl = 'https://docs.nextcloud.com';
62
+        $this->defaultDocVersion = '12'; // used to generate doc links
63
+        $this->defaultSlogan = $this->l->t('a safe home for all your data');
64
+        $this->defaultColorPrimary = '#0082c9';
65 65
 
66
-		$themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php';
67
-		if (file_exists($themePath)) {
68
-			// prevent defaults.php from printing output
69
-			ob_start();
70
-			require_once $themePath;
71
-			ob_end_clean();
72
-			if (class_exists('OC_Theme')) {
73
-				$this->theme = new OC_Theme();
74
-			}
75
-		}
76
-	}
66
+        $themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php';
67
+        if (file_exists($themePath)) {
68
+            // prevent defaults.php from printing output
69
+            ob_start();
70
+            require_once $themePath;
71
+            ob_end_clean();
72
+            if (class_exists('OC_Theme')) {
73
+                $this->theme = new OC_Theme();
74
+            }
75
+        }
76
+    }
77 77
 
78
-	/**
79
-	 * @param string $method
80
-	 */
81
-	private function themeExist($method) {
82
-		if (isset($this->theme) && method_exists($this->theme, $method)) {
83
-			return true;
84
-		}
85
-		return false;
86
-	}
78
+    /**
79
+     * @param string $method
80
+     */
81
+    private function themeExist($method) {
82
+        if (isset($this->theme) && method_exists($this->theme, $method)) {
83
+            return true;
84
+        }
85
+        return false;
86
+    }
87 87
 
88
-	/**
89
-	 * Returns the base URL
90
-	 * @return string URL
91
-	 */
92
-	public function getBaseUrl() {
93
-		if ($this->themeExist('getBaseUrl')) {
94
-			return $this->theme->getBaseUrl();
95
-		} else {
96
-			return $this->defaultBaseUrl;
97
-		}
98
-	}
88
+    /**
89
+     * Returns the base URL
90
+     * @return string URL
91
+     */
92
+    public function getBaseUrl() {
93
+        if ($this->themeExist('getBaseUrl')) {
94
+            return $this->theme->getBaseUrl();
95
+        } else {
96
+            return $this->defaultBaseUrl;
97
+        }
98
+    }
99 99
 
100
-	/**
101
-	 * Returns the URL where the sync clients are listed
102
-	 * @return string URL
103
-	 */
104
-	public function getSyncClientUrl() {
105
-		if ($this->themeExist('getSyncClientUrl')) {
106
-			return $this->theme->getSyncClientUrl();
107
-		} else {
108
-			return $this->defaultSyncClientUrl;
109
-		}
110
-	}
100
+    /**
101
+     * Returns the URL where the sync clients are listed
102
+     * @return string URL
103
+     */
104
+    public function getSyncClientUrl() {
105
+        if ($this->themeExist('getSyncClientUrl')) {
106
+            return $this->theme->getSyncClientUrl();
107
+        } else {
108
+            return $this->defaultSyncClientUrl;
109
+        }
110
+    }
111 111
 
112
-	/**
113
-	 * Returns the URL to the App Store for the iOS Client
114
-	 * @return string URL
115
-	 */
116
-	public function getiOSClientUrl() {
117
-		if ($this->themeExist('getiOSClientUrl')) {
118
-			return $this->theme->getiOSClientUrl();
119
-		} else {
120
-			return $this->defaultiOSClientUrl;
121
-		}
122
-	}
112
+    /**
113
+     * Returns the URL to the App Store for the iOS Client
114
+     * @return string URL
115
+     */
116
+    public function getiOSClientUrl() {
117
+        if ($this->themeExist('getiOSClientUrl')) {
118
+            return $this->theme->getiOSClientUrl();
119
+        } else {
120
+            return $this->defaultiOSClientUrl;
121
+        }
122
+    }
123 123
 
124
-	/**
125
-	 * Returns the AppId for the App Store for the iOS Client
126
-	 * @return string AppId
127
-	 */
128
-	public function getiTunesAppId() {
129
-		if ($this->themeExist('getiTunesAppId')) {
130
-			return $this->theme->getiTunesAppId();
131
-		} else {
132
-			return $this->defaultiTunesAppId;
133
-		}
134
-	}
124
+    /**
125
+     * Returns the AppId for the App Store for the iOS Client
126
+     * @return string AppId
127
+     */
128
+    public function getiTunesAppId() {
129
+        if ($this->themeExist('getiTunesAppId')) {
130
+            return $this->theme->getiTunesAppId();
131
+        } else {
132
+            return $this->defaultiTunesAppId;
133
+        }
134
+    }
135 135
 
136
-	/**
137
-	 * Returns the URL to Google Play for the Android Client
138
-	 * @return string URL
139
-	 */
140
-	public function getAndroidClientUrl() {
141
-		if ($this->themeExist('getAndroidClientUrl')) {
142
-			return $this->theme->getAndroidClientUrl();
143
-		} else {
144
-			return $this->defaultAndroidClientUrl;
145
-		}
146
-	}
136
+    /**
137
+     * Returns the URL to Google Play for the Android Client
138
+     * @return string URL
139
+     */
140
+    public function getAndroidClientUrl() {
141
+        if ($this->themeExist('getAndroidClientUrl')) {
142
+            return $this->theme->getAndroidClientUrl();
143
+        } else {
144
+            return $this->defaultAndroidClientUrl;
145
+        }
146
+    }
147 147
 
148
-	/**
149
-	 * Returns the documentation URL
150
-	 * @return string URL
151
-	 */
152
-	public function getDocBaseUrl() {
153
-		if ($this->themeExist('getDocBaseUrl')) {
154
-			return $this->theme->getDocBaseUrl();
155
-		} else {
156
-			return $this->defaultDocBaseUrl;
157
-		}
158
-	}
148
+    /**
149
+     * Returns the documentation URL
150
+     * @return string URL
151
+     */
152
+    public function getDocBaseUrl() {
153
+        if ($this->themeExist('getDocBaseUrl')) {
154
+            return $this->theme->getDocBaseUrl();
155
+        } else {
156
+            return $this->defaultDocBaseUrl;
157
+        }
158
+    }
159 159
 
160
-	/**
161
-	 * Returns the title
162
-	 * @return string title
163
-	 */
164
-	public function getTitle() {
165
-		if ($this->themeExist('getTitle')) {
166
-			return $this->theme->getTitle();
167
-		} else {
168
-			return $this->defaultTitle;
169
-		}
170
-	}
160
+    /**
161
+     * Returns the title
162
+     * @return string title
163
+     */
164
+    public function getTitle() {
165
+        if ($this->themeExist('getTitle')) {
166
+            return $this->theme->getTitle();
167
+        } else {
168
+            return $this->defaultTitle;
169
+        }
170
+    }
171 171
 
172
-	/**
173
-	 * Returns the short name of the software
174
-	 * @return string title
175
-	 */
176
-	public function getName() {
177
-		if ($this->themeExist('getName')) {
178
-			return $this->theme->getName();
179
-		} else {
180
-			return $this->defaultName;
181
-		}
182
-	}
172
+    /**
173
+     * Returns the short name of the software
174
+     * @return string title
175
+     */
176
+    public function getName() {
177
+        if ($this->themeExist('getName')) {
178
+            return $this->theme->getName();
179
+        } else {
180
+            return $this->defaultName;
181
+        }
182
+    }
183 183
 
184
-	/**
185
-	 * Returns the short name of the software containing HTML strings
186
-	 * @return string title
187
-	 */
188
-	public function getHTMLName() {
189
-		if ($this->themeExist('getHTMLName')) {
190
-			return $this->theme->getHTMLName();
191
-		} else {
192
-			return $this->defaultName;
193
-		}
194
-	}
184
+    /**
185
+     * Returns the short name of the software containing HTML strings
186
+     * @return string title
187
+     */
188
+    public function getHTMLName() {
189
+        if ($this->themeExist('getHTMLName')) {
190
+            return $this->theme->getHTMLName();
191
+        } else {
192
+            return $this->defaultName;
193
+        }
194
+    }
195 195
 
196
-	/**
197
-	 * Returns entity (e.g. company name) - used for footer, copyright
198
-	 * @return string entity name
199
-	 */
200
-	public function getEntity() {
201
-		if ($this->themeExist('getEntity')) {
202
-			return $this->theme->getEntity();
203
-		} else {
204
-			return $this->defaultEntity;
205
-		}
206
-	}
196
+    /**
197
+     * Returns entity (e.g. company name) - used for footer, copyright
198
+     * @return string entity name
199
+     */
200
+    public function getEntity() {
201
+        if ($this->themeExist('getEntity')) {
202
+            return $this->theme->getEntity();
203
+        } else {
204
+            return $this->defaultEntity;
205
+        }
206
+    }
207 207
 
208
-	/**
209
-	 * Returns slogan
210
-	 * @return string slogan
211
-	 */
212
-	public function getSlogan() {
213
-		if ($this->themeExist('getSlogan')) {
214
-			return $this->theme->getSlogan();
215
-		} else {
216
-			return $this->defaultSlogan;
217
-		}
218
-	}
208
+    /**
209
+     * Returns slogan
210
+     * @return string slogan
211
+     */
212
+    public function getSlogan() {
213
+        if ($this->themeExist('getSlogan')) {
214
+            return $this->theme->getSlogan();
215
+        } else {
216
+            return $this->defaultSlogan;
217
+        }
218
+    }
219 219
 
220
-	/**
221
-	 * Returns logo claim
222
-	 * @return string logo claim
223
-	 * @deprecated 13.0.0
224
-	 */
225
-	public function getLogoClaim() {
226
-		return '';
227
-	}
220
+    /**
221
+     * Returns logo claim
222
+     * @return string logo claim
223
+     * @deprecated 13.0.0
224
+     */
225
+    public function getLogoClaim() {
226
+        return '';
227
+    }
228 228
 
229
-	/**
230
-	 * Returns short version of the footer
231
-	 * @return string short footer
232
-	 */
233
-	public function getShortFooter() {
234
-		if ($this->themeExist('getShortFooter')) {
235
-			$footer = $this->theme->getShortFooter();
236
-		} else {
237
-			$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
238
-				' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
239
-				' – ' . $this->getSlogan();
240
-		}
229
+    /**
230
+     * Returns short version of the footer
231
+     * @return string short footer
232
+     */
233
+    public function getShortFooter() {
234
+        if ($this->themeExist('getShortFooter')) {
235
+            $footer = $this->theme->getShortFooter();
236
+        } else {
237
+            $footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
238
+                ' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
239
+                ' – ' . $this->getSlogan();
240
+        }
241 241
 
242
-		return $footer;
243
-	}
242
+        return $footer;
243
+    }
244 244
 
245
-	/**
246
-	 * Returns long version of the footer
247
-	 * @return string long footer
248
-	 */
249
-	public function getLongFooter() {
250
-		if ($this->themeExist('getLongFooter')) {
251
-			$footer = $this->theme->getLongFooter();
252
-		} else {
253
-			$footer = $this->getShortFooter();
254
-		}
245
+    /**
246
+     * Returns long version of the footer
247
+     * @return string long footer
248
+     */
249
+    public function getLongFooter() {
250
+        if ($this->themeExist('getLongFooter')) {
251
+            $footer = $this->theme->getLongFooter();
252
+        } else {
253
+            $footer = $this->getShortFooter();
254
+        }
255 255
 
256
-		return $footer;
257
-	}
256
+        return $footer;
257
+    }
258 258
 
259
-	/**
260
-	 * @param string $key
261
-	 * @return string URL to doc with key
262
-	 */
263
-	public function buildDocLinkToKey($key) {
264
-		if ($this->themeExist('buildDocLinkToKey')) {
265
-			return $this->theme->buildDocLinkToKey($key);
266
-		}
267
-		return $this->getDocBaseUrl() . '/server/' . $this->defaultDocVersion . '/go.php?to=' . $key;
268
-	}
259
+    /**
260
+     * @param string $key
261
+     * @return string URL to doc with key
262
+     */
263
+    public function buildDocLinkToKey($key) {
264
+        if ($this->themeExist('buildDocLinkToKey')) {
265
+            return $this->theme->buildDocLinkToKey($key);
266
+        }
267
+        return $this->getDocBaseUrl() . '/server/' . $this->defaultDocVersion . '/go.php?to=' . $key;
268
+    }
269 269
 
270
-	/**
271
-	 * Returns primary color
272
-	 * @return string
273
-	 */
274
-	public function getColorPrimary() {
270
+    /**
271
+     * Returns primary color
272
+     * @return string
273
+     */
274
+    public function getColorPrimary() {
275 275
 
276
-		if ($this->themeExist('getColorPrimary')) {
277
-			return $this->theme->getColorPrimary();
278
-		}
279
-		if ($this->themeExist('getMailHeaderColor')) {
280
-			return $this->theme->getMailHeaderColor();
281
-		}
282
-		return $this->defaultColorPrimary;
283
-	}
276
+        if ($this->themeExist('getColorPrimary')) {
277
+            return $this->theme->getColorPrimary();
278
+        }
279
+        if ($this->themeExist('getMailHeaderColor')) {
280
+            return $this->theme->getMailHeaderColor();
281
+        }
282
+        return $this->defaultColorPrimary;
283
+    }
284 284
 
285
-	/**
286
-	 * @return array scss variables to overwrite
287
-	 */
288
-	public function getScssVariables() {
289
-		if($this->themeExist('getScssVariables')) {
290
-			return $this->theme->getScssVariables();
291
-		}
292
-		return [];
293
-	}
285
+    /**
286
+     * @return array scss variables to overwrite
287
+     */
288
+    public function getScssVariables() {
289
+        if($this->themeExist('getScssVariables')) {
290
+            return $this->theme->getScssVariables();
291
+        }
292
+        return [];
293
+    }
294 294
 
295
-	public function shouldReplaceIcons() {
296
-		return false;
297
-	}
295
+    public function shouldReplaceIcons() {
296
+        return false;
297
+    }
298 298
 
299
-	/**
300
-	 * Themed logo url
301
-	 *
302
-	 * @param bool $useSvg Whether to point to the SVG image or a fallback
303
-	 * @return string
304
-	 */
305
-	public function getLogo($useSvg = true) {
306
-		if ($this->themeExist('getLogo')) {
307
-			return $this->theme->getLogo($useSvg);
308
-		}
299
+    /**
300
+     * Themed logo url
301
+     *
302
+     * @param bool $useSvg Whether to point to the SVG image or a fallback
303
+     * @return string
304
+     */
305
+    public function getLogo($useSvg = true) {
306
+        if ($this->themeExist('getLogo')) {
307
+            return $this->theme->getLogo($useSvg);
308
+        }
309 309
 
310
-		if($useSvg) {
311
-			$logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.svg');
312
-		} else {
313
-			$logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.png');
314
-		}
315
-	    return $logo . '?v=' . hash('sha1', implode('.', \OCP\Util::getVersion()));
316
-	}
310
+        if($useSvg) {
311
+            $logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.svg');
312
+        } else {
313
+            $logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.png');
314
+        }
315
+        return $logo . '?v=' . hash('sha1', implode('.', \OCP\Util::getVersion()));
316
+    }
317 317
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 		$this->defaultSlogan = $this->l->t('a safe home for all your data');
64 64
 		$this->defaultColorPrimary = '#0082c9';
65 65
 
66
-		$themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php';
66
+		$themePath = OC::$SERVERROOT.'/themes/'.OC_Util::getTheme().'/defaults.php';
67 67
 		if (file_exists($themePath)) {
68 68
 			// prevent defaults.php from printing output
69 69
 			ob_start();
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
 		if ($this->themeExist('getShortFooter')) {
235 235
 			$footer = $this->theme->getShortFooter();
236 236
 		} else {
237
-			$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
238
-				' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
239
-				' – ' . $this->getSlogan();
237
+			$footer = '<a href="'.$this->getBaseUrl().'" target="_blank"'.
238
+				' rel="noreferrer noopener">'.$this->getEntity().'</a>'.
239
+				' – '.$this->getSlogan();
240 240
 		}
241 241
 
242 242
 		return $footer;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 		if ($this->themeExist('buildDocLinkToKey')) {
265 265
 			return $this->theme->buildDocLinkToKey($key);
266 266
 		}
267
-		return $this->getDocBaseUrl() . '/server/' . $this->defaultDocVersion . '/go.php?to=' . $key;
267
+		return $this->getDocBaseUrl().'/server/'.$this->defaultDocVersion.'/go.php?to='.$key;
268 268
 	}
269 269
 
270 270
 	/**
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 	 * @return array scss variables to overwrite
287 287
 	 */
288 288
 	public function getScssVariables() {
289
-		if($this->themeExist('getScssVariables')) {
289
+		if ($this->themeExist('getScssVariables')) {
290 290
 			return $this->theme->getScssVariables();
291 291
 		}
292 292
 		return [];
@@ -307,11 +307,11 @@  discard block
 block discarded – undo
307 307
 			return $this->theme->getLogo($useSvg);
308 308
 		}
309 309
 
310
-		if($useSvg) {
310
+		if ($useSvg) {
311 311
 			$logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.svg');
312 312
 		} else {
313 313
 			$logo = \OC::$server->getURLGenerator()->imagePath('core', 'logo.png');
314 314
 		}
315
-	    return $logo . '?v=' . hash('sha1', implode('.', \OCP\Util::getVersion()));
315
+	    return $logo.'?v='.hash('sha1', implode('.', \OCP\Util::getVersion()));
316 316
 	}
317 317
 }
Please login to merge, or discard this patch.