Passed
Push — master ( 2e7eb3...34dc16 )
by Morris
11:12
created
settings/templates/settings/personal/personal.info.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 					</div>
68 68
 				</div>
69 69
 				<span class="icon-checkmark hidden"></span>
70
-				<?php if($_['lookupServerUploadEnabled']) { ?>
70
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
71 71
 				<input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>">
72 72
 				<?php } ?>
73 73
 			</form>
@@ -85,19 +85,19 @@  discard block
 block discarded – undo
85 85
 					<p class="quotatext">
86 86
 						<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
87 87
 							<?php print_unescaped($l->t('You are using <strong>%s</strong>',
88
-								[$_['usage']]));?>
88
+								[$_['usage']])); ?>
89 89
 						<?php else: ?>
90 90
 							<?php print_unescaped($l->t('You are using <strong>%1$s</strong> of <strong>%2$s</strong> (<strong>%3$s %%</strong>)',
91
-								[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
91
+								[$_['usage'], $_['total_space'], $_['usage_relative']])); ?>
92 92
 						<?php endif ?>
93 93
 					</p>
94 94
 				</div>
95
-				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
95
+				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if ($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
96 96
 			</div>
97 97
 		</div>
98 98
 		<?php
99 99
 			if ($_['show_where_is_your_data_section']) {
100
-				include __DIR__ . '/partials/where-is-your-data.php';
100
+				include __DIR__.'/partials/where-is-your-data.php';
101 101
 			}
102 102
 		?>
103 103
 	</div>
@@ -114,15 +114,15 @@  discard block
 block discarded – undo
114 114
 					</div>
115 115
 				</h3>
116 116
 				<input type="text" id="displayname" name="displayname"
117
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
117
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
118 118
 					   value="<?php p($_['displayName']) ?>"
119 119
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
120
-				<?php if(!$_['displayNameChangeSupported']) { ?>
121
-					<span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
120
+				<?php if (!$_['displayNameChangeSupported']) { ?>
121
+					<span><?php if (isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
122 122
 				<?php } ?>
123 123
 				<span class="icon-checkmark hidden"></span>
124 124
 				<span class="icon-error hidden" ></span>
125
-				<?php if($_['lookupServerUploadEnabled']) { ?>
125
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
126 126
 					<input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>">
127 127
 				<?php } ?>
128 128
 			</form>
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
 						</span>
138 138
 					</div>
139 139
 				</h3>
140
-				<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
140
+				<div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>">
141 141
 					<img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
142 142
 				<?php
143
-					switch($_['emailVerification']) {
143
+					switch ($_['emailVerification']) {
144 144
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
145 145
 							p(image_path('core', 'actions/verifying.svg'));
146 146
 							break;
@@ -153,18 +153,18 @@  discard block
 block discarded – undo
153 153
 					?>">
154 154
 				</div>
155 155
 				<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
156
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
156
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
157 157
 					   placeholder="<?php p($l->t('Your email address')); ?>"
158 158
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
159 159
 			   	<span class="icon-checkmark hidden"></span>
160 160
 				<span class="icon-error hidden" ></span>
161
-				<?php if(!$_['displayNameChangeSupported']) { ?>
162
-					<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
161
+				<?php if (!$_['displayNameChangeSupported']) { ?>
162
+					<span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
163 163
 				<?php } ?>
164
-				<?php if($_['displayNameChangeSupported']) { ?>
164
+				<?php if ($_['displayNameChangeSupported']) { ?>
165 165
 					<em><?php p($l->t('For password reset and notifications')); ?></em>
166 166
 				<?php } ?>
167
-				<?php if($_['lookupServerUploadEnabled']) { ?>
167
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
168 168
 					<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
169 169
 				<?php } ?>
170 170
 			</form>
@@ -180,12 +180,12 @@  discard block
 block discarded – undo
180 180
 						</span>
181 181
 					</div>
182 182
 				</h3>
183
-				<input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
183
+				<input type="tel" id="phone" name="phone" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
184 184
 					   value="<?php p($_['phone']) ?>"
185 185
 					   placeholder="<?php p($l->t('Your phone number')); ?>"
186 186
 				       autocomplete="on" autocapitalize="none" autocorrect="off" />
187 187
 				<span class="icon-checkmark hidden"></span>
188
-				<?php if($_['lookupServerUploadEnabled']) { ?>
188
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
189 189
 				<input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>">
190 190
 				<?php } ?>
191 191
 			</form>
@@ -202,12 +202,12 @@  discard block
 block discarded – undo
202 202
 						</span>
203 203
 					</div>
204 204
 				</h3>
205
-				<input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
205
+				<input type="text" id="address" name="address" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
206 206
 					   placeholder="<?php p($l->t('Your postal address')); ?>"
207 207
 					   value="<?php p($_['address']) ?>"
208 208
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
209 209
 				<span class="icon-checkmark hidden"></span>
210
-				<?php if($_['lookupServerUploadEnabled']) { ?>
210
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
211 211
 				<input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>">
212 212
 				<?php } ?>
213 213
 			</form>
@@ -224,11 +224,11 @@  discard block
 block discarded – undo
224 224
 						</span>
225 225
 					</div>
226 226
 				</h3>
227
-				<?php if($_['lookupServerUploadEnabled']) { ?>
228
-				<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
227
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
228
+				<div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>">
229 229
 					<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
230 230
 					<?php
231
-					switch($_['websiteVerification']) {
231
+					switch ($_['websiteVerification']) {
232 232
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
233 233
 							p(image_path('core', 'actions/verifying.svg'));
234 234
 							break;
@@ -239,13 +239,13 @@  discard block
 block discarded – undo
239 239
 							p(image_path('core', 'actions/verify.svg'));
240 240
 					}
241 241
 					?>"
242
-					<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
242
+					<?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
243 243
 					>
244 244
 					<div class="verification-dialog popovermenu bubble menu">
245 245
 						<div class="verification-dialog-content">
246 246
 							<p class="explainVerification"></p>
247 247
 							<p class="verificationCode"></p>
248
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
248
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
249 249
 						</div>
250 250
 					</div>
251 251
 				</div>
@@ -253,10 +253,10 @@  discard block
 block discarded – undo
253 253
 				<input type="url" name="website" id="website" value="<?php p($_['website']); ?>"
254 254
 				       placeholder="<?php p($l->t('Link https://…')); ?>"
255 255
 				       autocomplete="on" autocapitalize="none" autocorrect="off"
256
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
256
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
257 257
 				/>
258 258
 				<span class="icon-checkmark hidden"></span>
259
-				<?php if($_['lookupServerUploadEnabled']) { ?>
259
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
260 260
 				<input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>">
261 261
 				<?php } ?>
262 262
 			</form>
@@ -273,11 +273,11 @@  discard block
 block discarded – undo
273 273
 						</span>
274 274
 					</div>
275 275
 				</h3>
276
-				<?php if($_['lookupServerUploadEnabled']) { ?>
277
-				<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
276
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
277
+				<div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>">
278 278
 					<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
279 279
 					<?php
280
-					switch($_['twitterVerification']) {
280
+					switch ($_['twitterVerification']) {
281 281
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
282 282
 							p(image_path('core', 'actions/verifying.svg'));
283 283
 							break;
@@ -288,13 +288,13 @@  discard block
 block discarded – undo
288 288
 							p(image_path('core', 'actions/verify.svg'));
289 289
 					}
290 290
 					?>"
291
-					<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
291
+					<?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
292 292
 					>
293 293
 					<div class="verification-dialog popovermenu bubble menu">
294 294
 						<div class="verification-dialog-content">
295 295
 							<p class="explainVerification"></p>
296 296
 							<p class="verificationCode"></p>
297
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
297
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
298 298
 						</div>
299 299
 					</div>
300 300
 				</div>
@@ -302,10 +302,10 @@  discard block
 block discarded – undo
302 302
 				<input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
303 303
 					   placeholder="<?php p($l->t('Twitter handle @…')); ?>"
304 304
 					   autocomplete="on" autocapitalize="none" autocorrect="off"
305
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
305
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
306 306
 				/>
307 307
 				<span class="icon-checkmark hidden"></span>
308
-				<?php if($_['lookupServerUploadEnabled']) { ?>
308
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
309 309
 				<input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>">
310 310
 				<?php } ?>
311 311
 			</form>
@@ -318,27 +318,27 @@  discard block
 block discarded – undo
318 318
 			<?php if (isset($_['activelanguage'])) { ?>
319 319
 				<form id="language" class="section">
320 320
 					<h3>
321
-						<label for="languageinput"><?php p($l->t('Language'));?></label>
321
+						<label for="languageinput"><?php p($l->t('Language')); ?></label>
322 322
 					</h3>
323
-					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
324
-						<option value="<?php p($_['activelanguage']['code']);?>">
325
-							<?php p($_['activelanguage']['name']);?>
323
+					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
324
+						<option value="<?php p($_['activelanguage']['code']); ?>">
325
+							<?php p($_['activelanguage']['name']); ?>
326 326
 						</option>
327
-						<?php foreach($_['commonlanguages'] as $language):?>
328
-							<option value="<?php p($language['code']);?>">
329
-								<?php p($language['name']);?>
327
+						<?php foreach ($_['commonlanguages'] as $language):?>
328
+							<option value="<?php p($language['code']); ?>">
329
+								<?php p($language['name']); ?>
330 330
 							</option>
331
-						<?php endforeach;?>
331
+						<?php endforeach; ?>
332 332
 						<optgroup label="––––––––––"></optgroup>
333
-						<?php foreach($_['languages'] as $language):?>
334
-							<option value="<?php p($language['code']);?>">
335
-								<?php p($language['name']);?>
333
+						<?php foreach ($_['languages'] as $language):?>
334
+							<option value="<?php p($language['code']); ?>">
335
+								<?php p($language['name']); ?>
336 336
 							</option>
337
-						<?php endforeach;?>
337
+						<?php endforeach; ?>
338 338
 					</select>
339 339
 					<a href="https://www.transifex.com/nextcloud/nextcloud/"
340 340
 					   target="_blank" rel="noreferrer noopener">
341
-						<em><?php p($l->t('Help translate'));?></em>
341
+						<em><?php p($l->t('Help translate')); ?></em>
342 342
 					</a>
343 343
 				</form>
344 344
 			<?php } ?>
@@ -347,27 +347,27 @@  discard block
 block discarded – undo
347 347
 			<?php if (isset($_['activelocale'])) { ?>
348 348
 				<form id="locale" class="section">
349 349
 					<h3>
350
-						<label for="localeinput"><?php p($l->t('Locale'));?></label>
350
+						<label for="localeinput"><?php p($l->t('Locale')); ?></label>
351 351
 					</h3>
352
-					<select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale'));?>">
353
-						<option value="<?php p($_['activelocale']['code']);?>">
354
-							<?php p($_['activelocale']['name']);?>
352
+					<select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale')); ?>">
353
+						<option value="<?php p($_['activelocale']['code']); ?>">
354
+							<?php p($_['activelocale']['name']); ?>
355 355
 						</option>
356 356
 						<optgroup label="––––––––––"></optgroup>
357
-						<?php foreach($_['localesForLanguage'] as $locale):?>
358
-							<option value="<?php p($locale['code']);?>">
359
-								<?php p($locale['name']);?>
357
+						<?php foreach ($_['localesForLanguage'] as $locale):?>
358
+							<option value="<?php p($locale['code']); ?>">
359
+								<?php p($locale['name']); ?>
360 360
 							</option>
361
-						<?php endforeach;?>
361
+						<?php endforeach; ?>
362 362
 						<optgroup label="––––––––––"></optgroup>
363
-						<option value="<?php p($_['activelocale']['code']);?>">
364
-							<?php p($_['activelocale']['name']);?>
363
+						<option value="<?php p($_['activelocale']['code']); ?>">
364
+							<?php p($_['activelocale']['name']); ?>
365 365
 						</option>
366
-						<?php foreach($_['locales'] as $locale):?>
367
-							<option value="<?php p($locale['code']);?>">
368
-								<?php p($locale['name']);?>
366
+						<?php foreach ($_['locales'] as $locale):?>
367
+							<option value="<?php p($locale['code']); ?>">
368
+								<?php p($locale['name']); ?>
369 369
 							</option>
370
-						<?php endforeach;?>
370
+						<?php endforeach; ?>
371 371
 					</select>
372 372
 					<div id="localeexample" class="personal-info icon-timezone">
373 373
 						<p>
Please login to merge, or discard this patch.
settings/templates/settings/personal/partials/where-is-your-data.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 			<?php
24 24
 				if (empty($_['providerLink']) === false) {
25 25
 					echo $l->t('Your provider is %s%s%s.', [
26
-						'<a href="' . $_['providerLink'] . '" target="_blank" title="" rel="noreferrer noopener">',
26
+						'<a href="'.$_['providerLink'].'" target="_blank" title="" rel="noreferrer noopener">',
27 27
 						$_['provider'],
28 28
 						'</a>'
29 29
 					]);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 			<?php
35 35
 				if (empty($_['providerPrivacyLink']) === false) {
36 36
 					echo $l->t('Read the %sprivacy policy%s now.', [
37
-						'<a href="' . $_['providerPrivacyLink'] . '" target="_blank" title="" rel="noreferrer noopener">',
37
+						'<a href="'.$_['providerPrivacyLink'].'" target="_blank" title="" rel="noreferrer noopener">',
38 38
 						'</a>'
39 39
 					]);
40 40
 				}
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
 			<?php echo $l->t(
64 64
 				'%s%s%s is your admin. If you have any issues, %scontact them%s.',
65 65
 				[
66
-					'<a href="mailto:' . $_['adminMail'] . '" target="_blank" title="" rel="noreferrer noopener">',
66
+					'<a href="mailto:'.$_['adminMail'].'" target="_blank" title="" rel="noreferrer noopener">',
67 67
 					$_['adminName'],
68 68
 					'</a>',
69
-					'<a href="mailto:' . $_['adminMail'] . '" target="_blank" title="" rel="noreferrer noopener">',
69
+					'<a href="mailto:'.$_['adminMail'].'" target="_blank" title="" rel="noreferrer noopener">',
70 70
 					'</a>'
71 71
 				]
72 72
 			); ?>
Please login to merge, or discard this patch.
settings/templates/settings/admin/server-info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 			<label class="label" for="adminContact"><?php p($l->t('Admin contact')); ?></label>
83 83
 			<select class="form-input" name="adminContact" id="adminContact">
84 84
 				<option value=""><?php p($l->t('choose admin contact')); ?></option>
85
-				<?php foreach($_['adminUsers'] as $adminUser): ?>
85
+				<?php foreach ($_['adminUsers'] as $adminUser): ?>
86 86
 					<option
87 87
 						value="<?php p($adminUser['id']); ?>"
88 88
 						<?php if ($adminUser['id'] === $_['adminContact']): ?>selected="selected"<?php endif; ?>>
Please login to merge, or discard this patch.