Completed
Push — master ( ec0623...8b0616 )
by Morris
80:08 queued 57:11
created
settings/templates/settings/personal/personal.info.php 2 patches
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 					</div>
71 71
 				</div>
72 72
 				<span class="icon-checkmark hidden"></span>
73
-				<?php if($_['lookupServerUploadEnabled']) { ?>
73
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
74 74
 				<input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>">
75 75
 				<?php } ?>
76 76
 			</form>
@@ -88,14 +88,14 @@  discard block
 block discarded – undo
88 88
 					<p class="quotatext">
89 89
 						<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
90 90
 							<?php print_unescaped($l->t('You are using <strong>%s</strong>',
91
-								[$_['usage']]));?>
91
+								[$_['usage']])); ?>
92 92
 						<?php else: ?>
93 93
 							<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
94
-								[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
94
+								[$_['usage'], $_['total_space'], $_['usage_relative']])); ?>
95 95
 						<?php endif ?>
96 96
 					</p>
97 97
 				</div>
98
-				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
98
+				<progress value="<?php p($_['usage_relative']); ?>" max="100"<?php if ($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
99 99
 			</div>
100 100
 		</div>
101 101
 	</div>
@@ -112,15 +112,15 @@  discard block
 block discarded – undo
112 112
 					</div>
113 113
 				</h2>
114 114
 				<input type="text" id="displayname" name="displayname"
115
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
115
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
116 116
 					   value="<?php p($_['displayName']) ?>"
117 117
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
118
-				<?php if(!$_['displayNameChangeSupported']) { ?>
119
-					<span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
118
+				<?php if (!$_['displayNameChangeSupported']) { ?>
119
+					<span><?php if (isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
120 120
 				<?php } ?>
121 121
 				<span class="icon-checkmark hidden"></span>
122 122
 				<span class="icon-error hidden" ></span>
123
-				<?php if($_['lookupServerUploadEnabled']) { ?>
123
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
124 124
 					<input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>">
125 125
 				<?php } ?>
126 126
 			</form>
@@ -135,10 +135,10 @@  discard block
 block discarded – undo
135 135
 						</span>
136 136
 					</div>
137 137
 				</h2>
138
-				<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
138
+				<div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>">
139 139
 					<img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
140 140
 				<?php
141
-					switch($_['emailVerification']) {
141
+					switch ($_['emailVerification']) {
142 142
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
143 143
 							p(image_path('core', 'actions/verifying.svg'));
144 144
 							break;
@@ -151,18 +151,18 @@  discard block
 block discarded – undo
151 151
 					?>">
152 152
 				</div>
153 153
 				<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
154
-					<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
154
+					<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
155 155
 					   placeholder="<?php p($l->t('Your email address')); ?>"
156 156
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
157 157
 			   	<span class="icon-checkmark hidden"></span>
158 158
 				<span class="icon-error hidden" ></span>
159
-				<?php if(!$_['displayNameChangeSupported']) { ?>
160
-					<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
159
+				<?php if (!$_['displayNameChangeSupported']) { ?>
160
+					<span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
161 161
 				<?php } ?>
162
-				<?php if($_['displayNameChangeSupported']) { ?>
162
+				<?php if ($_['displayNameChangeSupported']) { ?>
163 163
 					<em><?php p($l->t('For password reset and notifications')); ?></em>
164 164
 				<?php } ?>
165
-				<?php if($_['lookupServerUploadEnabled']) { ?>
165
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
166 166
 					<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
167 167
 				<?php } ?>
168 168
 			</form>
@@ -178,12 +178,12 @@  discard block
 block discarded – undo
178 178
 						</span>
179 179
 					</div>
180 180
 				</h2>
181
-				<input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
181
+				<input type="tel" id="phone" name="phone" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
182 182
 					   value="<?php p($_['phone']) ?>"
183 183
 					   placeholder="<?php p($l->t('Your phone number')); ?>"
184 184
 				       autocomplete="on" autocapitalize="none" autocorrect="off" />
185 185
 				<span class="icon-checkmark hidden"></span>
186
-				<?php if($_['lookupServerUploadEnabled']) { ?>
186
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
187 187
 				<input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>">
188 188
 				<?php } ?>
189 189
 			</form>
@@ -200,12 +200,12 @@  discard block
 block discarded – undo
200 200
 						</span>
201 201
 					</div>
202 202
 				</h2>
203
-				<input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
203
+				<input type="text" id="address" name="address" <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
204 204
 					   placeholder="<?php p($l->t('Your postal address')); ?>"
205 205
 					   value="<?php p($_['address']) ?>"
206 206
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
207 207
 				<span class="icon-checkmark hidden"></span>
208
-				<?php if($_['lookupServerUploadEnabled']) { ?>
208
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
209 209
 				<input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>">
210 210
 				<?php } ?>
211 211
 			</form>
@@ -222,11 +222,11 @@  discard block
 block discarded – undo
222 222
 						</span>
223 223
 					</div>
224 224
 				</h2>
225
-				<?php if($_['lookupServerUploadEnabled']) { ?>
226
-				<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
225
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
226
+				<div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>">
227 227
 					<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
228 228
 					<?php
229
-					switch($_['websiteVerification']) {
229
+					switch ($_['websiteVerification']) {
230 230
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
231 231
 							p(image_path('core', 'actions/verifying.svg'));
232 232
 							break;
@@ -237,13 +237,13 @@  discard block
 block discarded – undo
237 237
 							p(image_path('core', 'actions/verify.svg'));
238 238
 					}
239 239
 					?>"
240
-					<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
240
+					<?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
241 241
 					>
242 242
 					<div class="verification-dialog popovermenu bubble menu">
243 243
 						<div class="verification-dialog-content">
244 244
 							<p class="explainVerification"></p>
245 245
 							<p class="verificationCode"></p>
246
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
246
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
247 247
 						</div>
248 248
 					</div>
249 249
 				</div>
@@ -251,10 +251,10 @@  discard block
 block discarded – undo
251 251
 				<input type="url" name="website" id="website" value="<?php p($_['website']); ?>"
252 252
 				       placeholder="<?php p($l->t('Link https://…')); ?>"
253 253
 				       autocomplete="on" autocapitalize="none" autocorrect="off"
254
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
254
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
255 255
 				/>
256 256
 				<span class="icon-checkmark hidden"></span>
257
-				<?php if($_['lookupServerUploadEnabled']) { ?>
257
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
258 258
 				<input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>">
259 259
 				<?php } ?>
260 260
 			</form>
@@ -271,11 +271,11 @@  discard block
 block discarded – undo
271 271
 						</span>
272 272
 					</div>
273 273
 				</h2>
274
-				<?php if($_['lookupServerUploadEnabled']) { ?>
275
-				<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
274
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
275
+				<div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>">
276 276
 					<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
277 277
 					<?php
278
-					switch($_['twitterVerification']) {
278
+					switch ($_['twitterVerification']) {
279 279
 						case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
280 280
 							p(image_path('core', 'actions/verifying.svg'));
281 281
 							break;
@@ -286,13 +286,13 @@  discard block
 block discarded – undo
286 286
 							p(image_path('core', 'actions/verify.svg'));
287 287
 					}
288 288
 					?>"
289
-					<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
289
+					<?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
290 290
 					>
291 291
 					<div class="verification-dialog popovermenu bubble menu">
292 292
 						<div class="verification-dialog-content">
293 293
 							<p class="explainVerification"></p>
294 294
 							<p class="verificationCode"></p>
295
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
295
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
296 296
 						</div>
297 297
 					</div>
298 298
 				</div>
@@ -300,10 +300,10 @@  discard block
 block discarded – undo
300 300
 				<input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
301 301
 					   placeholder="<?php p($l->t('Twitter handle @…')); ?>"
302 302
 					   autocomplete="on" autocapitalize="none" autocorrect="off"
303
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
303
+					   <?php if (!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
304 304
 				/>
305 305
 				<span class="icon-checkmark hidden"></span>
306
-				<?php if($_['lookupServerUploadEnabled']) { ?>
306
+				<?php if ($_['lookupServerUploadEnabled']) { ?>
307 307
 				<input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>">
308 308
 				<?php } ?>
309 309
 			</form>
@@ -316,47 +316,47 @@  discard block
 block discarded – undo
316 316
 			<?php if (isset($_['activelanguage'])) { ?>
317 317
 				<form id="language" class="section">
318 318
 					<h2>
319
-						<label for="languageinput"><?php p($l->t('Language'));?></label>
319
+						<label for="languageinput"><?php p($l->t('Language')); ?></label>
320 320
 					</h2>
321
-					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
322
-						<option value="<?php p($_['activelanguage']['code']);?>">
323
-							<?php p($_['activelanguage']['name']);?>
321
+					<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
322
+						<option value="<?php p($_['activelanguage']['code']); ?>">
323
+							<?php p($_['activelanguage']['name']); ?>
324 324
 						</option>
325
-						<?php foreach($_['commonlanguages'] as $language):?>
326
-							<option value="<?php p($language['code']);?>">
327
-								<?php p($language['name']);?>
325
+						<?php foreach ($_['commonlanguages'] as $language):?>
326
+							<option value="<?php p($language['code']); ?>">
327
+								<?php p($language['name']); ?>
328 328
 							</option>
329
-						<?php endforeach;?>
329
+						<?php endforeach; ?>
330 330
 						<optgroup label="––––––––––"></optgroup>
331
-						<?php foreach($_['languages'] as $language):?>
332
-							<option value="<?php p($language['code']);?>">
333
-								<?php p($language['name']);?>
331
+						<?php foreach ($_['languages'] as $language):?>
332
+							<option value="<?php p($language['code']); ?>">
333
+								<?php p($language['name']); ?>
334 334
 							</option>
335
-						<?php endforeach;?>
335
+						<?php endforeach; ?>
336 336
 					</select>
337 337
 					<a href="https://www.transifex.com/nextcloud/nextcloud/"
338 338
 					   target="_blank" rel="noreferrer noopener">
339
-						<em><?php p($l->t('Help translate'));?></em>
339
+						<em><?php p($l->t('Help translate')); ?></em>
340 340
 					</a>
341 341
 				</form>
342 342
 			<?php } ?>
343 343
 		</div>
344 344
 		<div class="personal-settings-setting-box personal-settings-password-box">
345 345
 			<?php
346
-			if($_['passwordChangeSupported']) {
346
+			if ($_['passwordChangeSupported']) {
347 347
 				script('jquery-showpassword');
348 348
 				?>
349 349
 				<form id="passwordform" class="section">
350
-					<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
350
+					<h2 class="inlineblock"><?php p($l->t('Password')); ?></h2>
351 351
 					<div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div>
352 352
 
353 353
 					<label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
354 354
 					<input type="password" id="pass1" name="oldpassword"
355
-						   placeholder="<?php p($l->t('Current password'));?>"
355
+						   placeholder="<?php p($l->t('Current password')); ?>"
356 356
 						   autocomplete="off" autocapitalize="none" autocorrect="off" />
357 357
 
358 358
 					<div class="personal-show-container">
359
-						<label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
359
+						<label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label>
360 360
 						<input type="password" id="pass2" name="newpassword"
361 361
 							   placeholder="<?php p($l->t('New password')); ?>"
362 362
 							   data-typetoggle="#personal-show"
Please login to merge, or discard this patch.
Braces   +48 added lines, -15 removed lines patch added patch discarded remove patch
@@ -58,8 +58,11 @@  discard block
 block discarded – undo
58 58
 						<div class="hidden button icon-delete svg" id="removeavatar" title="<?php p($l->t('Remove image')); ?>"></div>
59 59
 						<input type="file" name="files[]" id="uploadavatar" class="hiddenuploadfield">
60 60
 						<p><em><?php p($l->t('png or jpg, max. 20 MB')); ?></em></p>
61
-					<?php else: ?>
62
-						<?php p($l->t('Picture provided by original account')); ?>
61
+					<?php else {
62
+    : ?>
63
+						<?php p($l->t('Picture provided by original account'));
64
+}
65
+?>
63 66
 					<?php endif; ?>
64 67
 				</div>
65 68
 
@@ -89,9 +92,12 @@  discard block
 block discarded – undo
89 92
 						<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
90 93
 							<?php print_unescaped($l->t('You are using <strong>%s</strong>',
91 94
 								[$_['usage']]));?>
92
-						<?php else: ?>
95
+						<?php else {
96
+    : ?>
93 97
 							<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
94
-								[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
98
+								[$_['usage'], $_['total_space'],  $_['usage_relative']]));
99
+}
100
+?>
95 101
 						<?php endif ?>
96 102
 					</p>
97 103
 				</div>
@@ -135,7 +141,10 @@  discard block
 block discarded – undo
135 141
 						</span>
136 142
 					</div>
137 143
 				</h2>
138
-				<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
144
+				<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') {
145
+    p('hidden');
146
+}
147
+?>">
139 148
 					<img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
140 149
 				<?php
141 150
 					switch($_['emailVerification']) {
@@ -178,7 +187,10 @@  discard block
 block discarded – undo
178 187
 						</span>
179 188
 					</div>
180 189
 				</h2>
181
-				<input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"'); ?>
190
+				<input type="tel" id="phone" name="phone" <?php if(!$_['lookupServerUploadEnabled']) {
191
+    print_unescaped('disabled="1"');
192
+}
193
+?>
182 194
 					   value="<?php p($_['phone']) ?>"
183 195
 					   placeholder="<?php p($l->t('Your phone number')); ?>"
184 196
 				       autocomplete="on" autocapitalize="none" autocorrect="off" />
@@ -200,7 +212,10 @@  discard block
 block discarded – undo
200 212
 						</span>
201 213
 					</div>
202 214
 				</h2>
203
-				<input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
215
+				<input type="text" id="address" name="address" <?php if(!$_['lookupServerUploadEnabled']) {
216
+    print_unescaped('disabled="1"');
217
+}
218
+?>
204 219
 					   placeholder="<?php p($l->t('Your postal address')); ?>"
205 220
 					   value="<?php p($_['address']) ?>"
206 221
 					   autocomplete="on" autocapitalize="none" autocorrect="off" />
@@ -223,7 +238,10 @@  discard block
 block discarded – undo
223 238
 					</div>
224 239
 				</h2>
225 240
 				<?php if($_['lookupServerUploadEnabled']) { ?>
226
-				<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
241
+				<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') {
242
+    p('hidden');
243
+}
244
+?>">
227 245
 					<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
228 246
 					<?php
229 247
 					switch($_['websiteVerification']) {
@@ -237,13 +255,16 @@  discard block
 block discarded – undo
237 255
 							p(image_path('core', 'actions/verify.svg'));
238 256
 					}
239 257
 					?>"
240
-					<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
258
+					<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) {
259
+    print_unescaped(' class="verify-action"') ?>
241 260
 					>
242 261
 					<div class="verification-dialog popovermenu bubble menu">
243 262
 						<div class="verification-dialog-content">
244 263
 							<p class="explainVerification"></p>
245 264
 							<p class="verificationCode"></p>
246
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
265
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));
266
+}
267
+?></p>
247 268
 						</div>
248 269
 					</div>
249 270
 				</div>
@@ -251,7 +272,10 @@  discard block
 block discarded – undo
251 272
 				<input type="url" name="website" id="website" value="<?php p($_['website']); ?>"
252 273
 				       placeholder="<?php p($l->t('Link https://…')); ?>"
253 274
 				       autocomplete="on" autocapitalize="none" autocorrect="off"
254
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
275
+					   <?php if(!$_['lookupServerUploadEnabled']) {
276
+    print_unescaped('disabled="1"');
277
+}
278
+?>
255 279
 				/>
256 280
 				<span class="icon-checkmark hidden"></span>
257 281
 				<?php if($_['lookupServerUploadEnabled']) { ?>
@@ -272,7 +296,10 @@  discard block
 block discarded – undo
272 296
 					</div>
273 297
 				</h2>
274 298
 				<?php if($_['lookupServerUploadEnabled']) { ?>
275
-				<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
299
+				<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') {
300
+    p('hidden');
301
+}
302
+?>">
276 303
 					<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
277 304
 					<?php
278 305
 					switch($_['twitterVerification']) {
@@ -286,13 +313,16 @@  discard block
 block discarded – undo
286 313
 							p(image_path('core', 'actions/verify.svg'));
287 314
 					}
288 315
 					?>"
289
-					<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
316
+					<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) {
317
+    print_unescaped(' class="verify-action"') ?>
290 318
 					>
291 319
 					<div class="verification-dialog popovermenu bubble menu">
292 320
 						<div class="verification-dialog-content">
293 321
 							<p class="explainVerification"></p>
294 322
 							<p class="verificationCode"></p>
295
-							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
323
+							<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));
324
+}
325
+?></p>
296 326
 						</div>
297 327
 					</div>
298 328
 				</div>
@@ -300,7 +330,10 @@  discard block
 block discarded – undo
300 330
 				<input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
301 331
 					   placeholder="<?php p($l->t('Twitter handle @…')); ?>"
302 332
 					   autocomplete="on" autocapitalize="none" autocorrect="off"
303
-					   <?php if(!$_['lookupServerUploadEnabled']) print_unescaped('disabled="1"');  ?>
333
+					   <?php if(!$_['lookupServerUploadEnabled']) {
334
+    print_unescaped('disabled="1"');
335
+}
336
+?>
304 337
 				/>
305 338
 				<span class="icon-checkmark hidden"></span>
306 339
 				<?php if($_['lookupServerUploadEnabled']) { ?>
Please login to merge, or discard this patch.