Passed
Push — master ( f8859e...b72d27 )
by Roeland
13:06
created
settings/templates/settings/personal/personal.info.php 1 patch
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 					</div>
70 70
 				</div>
71 71
 				<span class="icon-checkmark hidden"></span>
72
-				<?php if($_['lookupServerUploadEnabled']) { ?>
72
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
73 73
 				<input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>">
74 74
 				<?php } ?>
75 75
 			</form>
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
 					<p class="quotatext">
88 88
 						<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
89 89
 							<?php print_unescaped($l->t('You are using <strong>%s</strong>',
90
-								[$_['usage']]));?>
90
+								[$_['usage']])); ?>
91 91
 						<?php else: ?>
92 92
 							<?php print_unescaped($l->t('You are using <strong>%1$s</strong> of <strong>%2$s</strong> (<strong>%3$s %%</strong>)',
93
-								[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
93
+								[$_['usage'], $_['total_space'], $_['usage_relative']])); ?>
94 94
 						<?php endif ?>
95 95
 					</p>
96 96
 				</div>
97
-				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
97
+				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if ($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
98 98
 			</div>
99 99
 		</div>
100 100
 	</div>
@@ -111,15 +111,15 @@  discard block
 block discarded – undo
111 111
 					</div>
112 112
 				</h3>
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>
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
 						</span>
135 135
 					</div>
136 136
 				</h3>
137
-				<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
137
+				<div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>">
138 138
 					<img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
139 139
 				<?php
140
-					switch($_['emailVerification']) {
140
+					switch ($_['emailVerification']) {
141 141
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
142 142
 							p(image_path('core', 'actions/verifying.svg'));
143 143
 							break;
@@ -150,18 +150,18 @@  discard block
 block discarded – undo
150 150
 					?>">
151 151
 				</div>
152 152
 				<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
153
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
153
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
154 154
 					   placeholder="<?php p($l->t('Your email address')); ?>"
155 155
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
156 156
 			   	<span class="icon-checkmark hidden"></span>
157 157
 				<span class="icon-error hidden" ></span>
158
-				<?php if(!$_['displayNameChangeSupported']) { ?>
159
-					<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
158
+				<?php if (!$_['displayNameChangeSupported']) { ?>
159
+					<span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
160 160
 				<?php } ?>
161
-				<?php if($_['displayNameChangeSupported']) { ?>
161
+				<?php if ($_['displayNameChangeSupported']) { ?>
162 162
 					<em><?php p($l->t('For password reset and notifications')); ?></em>
163 163
 				<?php } ?>
164
-				<?php if($_['lookupServerUploadEnabled']) { ?>
164
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
165 165
 					<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
166 166
 				<?php } ?>
167 167
 			</form>
@@ -177,12 +177,12 @@  discard block
 block discarded – undo
177 177
 						</span>
178 178
 					</div>
179 179
 				</h3>
180
-				<input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
180
+				<input type="tel" id="phone" name="phone" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
181 181
 					   value="<?php p($_['phone']) ?>"
182 182
 					   placeholder="<?php p($l->t('Your phone number')); ?>"
183 183
 				       autocomplete="on" autocapitalize="none" autocorrect="off" />
184 184
 				<span class="icon-checkmark hidden"></span>
185
-				<?php if($_['lookupServerUploadEnabled']) { ?>
185
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
186 186
 				<input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>">
187 187
 				<?php } ?>
188 188
 			</form>
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
 						</span>
200 200
 					</div>
201 201
 				</h3>
202
-				<input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
202
+				<input type="text" id="address" name="address" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
203 203
 					   placeholder="<?php p($l->t('Your postal address')); ?>"
204 204
 					   value="<?php p($_['address']) ?>"
205 205
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
206 206
 				<span class="icon-checkmark hidden"></span>
207
-				<?php if($_['lookupServerUploadEnabled']) { ?>
207
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
208 208
 				<input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>">
209 209
 				<?php } ?>
210 210
 			</form>
@@ -221,11 +221,11 @@  discard block
 block discarded – undo
221 221
 						</span>
222 222
 					</div>
223 223
 				</h3>
224
-				<?php if($_['lookupServerUploadEnabled']) { ?>
225
-				<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
224
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
225
+				<div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>">
226 226
 					<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
227 227
 					<?php
228
-					switch($_['websiteVerification']) {
228
+					switch ($_['websiteVerification']) {
229 229
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
230 230
 							p(image_path('core', 'actions/verifying.svg'));
231 231
 							break;
@@ -236,13 +236,13 @@  discard block
 block discarded – undo
236 236
 							p(image_path('core', 'actions/verify.svg'));
237 237
 					}
238 238
 					?>"
239
-					<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
239
+					<?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
240 240
 					>
241 241
 					<div class="verification-dialog popovermenu bubble menu">
242 242
 						<div class="verification-dialog-content">
243 243
 							<p class="explainVerification"></p>
244 244
 							<p class="verificationCode"></p>
245
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
245
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
246 246
 						</div>
247 247
 					</div>
248 248
 				</div>
@@ -250,10 +250,10 @@  discard block
 block discarded – undo
250 250
 				<input type="url" name="website" id="website" value="<?php p($_['website']); ?>"
251 251
 				       placeholder="<?php p($l->t('Link https://…')); ?>"
252 252
 				       autocomplete="on" autocapitalize="none" autocorrect="off"
253
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
253
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
254 254
 				/>
255 255
 				<span class="icon-checkmark hidden"></span>
256
-				<?php if($_['lookupServerUploadEnabled']) { ?>
256
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
257 257
 				<input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>">
258 258
 				<?php } ?>
259 259
 			</form>
@@ -270,11 +270,11 @@  discard block
 block discarded – undo
270 270
 						</span>
271 271
 					</div>
272 272
 				</h3>
273
-				<?php if($_['lookupServerUploadEnabled']) { ?>
274
-				<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
273
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
274
+				<div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>">
275 275
 					<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
276 276
 					<?php
277
-					switch($_['twitterVerification']) {
277
+					switch ($_['twitterVerification']) {
278 278
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
279 279
 							p(image_path('core', 'actions/verifying.svg'));
280 280
 							break;
@@ -285,13 +285,13 @@  discard block
 block discarded – undo
285 285
 							p(image_path('core', 'actions/verify.svg'));
286 286
 					}
287 287
 					?>"
288
-					<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
288
+					<?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
289 289
 					>
290 290
 					<div class="verification-dialog popovermenu bubble menu">
291 291
 						<div class="verification-dialog-content">
292 292
 							<p class="explainVerification"></p>
293 293
 							<p class="verificationCode"></p>
294
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
294
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
295 295
 						</div>
296 296
 					</div>
297 297
 				</div>
@@ -299,10 +299,10 @@  discard block
 block discarded – undo
299 299
 				<input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
300 300
 					   placeholder="<?php p($l->t('Twitter handle @…')); ?>"
301 301
 					   autocomplete="on" autocapitalize="none" autocorrect="off"
302
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
302
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
303 303
 				/>
304 304
 				<span class="icon-checkmark hidden"></span>
305
-				<?php if($_['lookupServerUploadEnabled']) { ?>
305
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
306 306
 				<input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>">
307 307
 				<?php } ?>
308 308
 			</form>
@@ -315,27 +315,27 @@  discard block
 block discarded – undo
315 315
 			<?php if (isset($_['activelanguage'])) { ?>
316 316
 				<form id="language" class="section">
317 317
 					<h3>
318
-						<label for="languageinput"><?php p($l->t('Language'));?></label>
318
+						<label for="languageinput"><?php p($l->t('Language')); ?></label>
319 319
 					</h3>
320
-					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
321
-						<option value="<?php p($_['activelanguage']['code']);?>">
322
-							<?php p($_['activelanguage']['name']);?>
320
+					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
321
+						<option value="<?php p($_['activelanguage']['code']); ?>">
322
+							<?php p($_['activelanguage']['name']); ?>
323 323
 						</option>
324
-						<?php foreach($_['commonlanguages'] as $language):?>
325
-							<option value="<?php p($language['code']);?>">
326
-								<?php p($language['name']);?>
324
+						<?php foreach ($_['commonlanguages'] as $language):?>
325
+							<option value="<?php p($language['code']); ?>">
326
+								<?php p($language['name']); ?>
327 327
 							</option>
328
-						<?php endforeach;?>
328
+						<?php endforeach; ?>
329 329
 						<optgroup label="––––––––––"></optgroup>
330
-						<?php foreach($_['languages'] as $language):?>
331
-							<option value="<?php p($language['code']);?>">
332
-								<?php p($language['name']);?>
330
+						<?php foreach ($_['languages'] as $language):?>
331
+							<option value="<?php p($language['code']); ?>">
332
+								<?php p($language['name']); ?>
333 333
 							</option>
334
-						<?php endforeach;?>
334
+						<?php endforeach; ?>
335 335
 					</select>
336 336
 					<a href="https://www.transifex.com/nextcloud/nextcloud/"
337 337
 					   target="_blank" rel="noreferrer noopener">
338
-						<em><?php p($l->t('Help translate'));?></em>
338
+						<em><?php p($l->t('Help translate')); ?></em>
339 339
 					</a>
340 340
 				</form>
341 341
 			<?php } ?>
@@ -344,27 +344,27 @@  discard block
 block discarded – undo
344 344
 			<?php if (isset($_['activelocale'])) { ?>
345 345
 				<form id="locale" class="section">
346 346
 					<h3>
347
-						<label for="localeinput"><?php p($l->t('Locale'));?></label>
347
+						<label for="localeinput"><?php p($l->t('Locale')); ?></label>
348 348
 					</h3>
349
-					<select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale'));?>">
350
-						<option value="<?php p($_['activelocale']['code']);?>">
351
-							<?php p($_['activelocale']['name']);?>
349
+					<select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale')); ?>">
350
+						<option value="<?php p($_['activelocale']['code']); ?>">
351
+							<?php p($_['activelocale']['name']); ?>
352 352
 						</option>
353 353
 						<optgroup label="––––––––––"></optgroup>
354
-						<?php foreach($_['localesForLanguage'] as $locale):?>
355
-							<option value="<?php p($locale['code']);?>">
356
-								<?php p($locale['name']);?>
354
+						<?php foreach ($_['localesForLanguage'] as $locale):?>
355
+							<option value="<?php p($locale['code']); ?>">
356
+								<?php p($locale['name']); ?>
357 357
 							</option>
358
-						<?php endforeach;?>
358
+						<?php endforeach; ?>
359 359
 						<optgroup label="––––––––––"></optgroup>
360
-						<option value="<?php p($_['activelocale']['code']);?>">
361
-							<?php p($_['activelocale']['name']);?>
360
+						<option value="<?php p($_['activelocale']['code']); ?>">
361
+							<?php p($_['activelocale']['name']); ?>
362 362
 						</option>
363
-						<?php foreach($_['locales'] as $locale):?>
364
-							<option value="<?php p($locale['code']);?>">
365
-								<?php p($locale['name']);?>
363
+						<?php foreach ($_['locales'] as $locale):?>
364
+							<option value="<?php p($locale['code']); ?>">
365
+								<?php p($locale['name']); ?>
366 366
 							</option>
367
-						<?php endforeach;?>
367
+						<?php endforeach; ?>
368 368
 					</select>
369 369
 					<div id="localeexample" class="personal-info icon-timezone">
370 370
 						<p>
Please login to merge, or discard this patch.