Completed
Pull Request — master (#5267)
by Robin
24:36
created
settings/templates/personal.php 1 patch
Spacing   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
 
11 11
 <div id="app-navigation">
12 12
 	<ul class="with-icon">
13
-	<?php foreach($_['forms'] as $form) {
13
+	<?php foreach ($_['forms'] as $form) {
14 14
 		if (isset($form['anchor'])) {
15
-			$anchor = '#' . $form['anchor'];
16
-			$class = 'nav-icon-' . $form['anchor'];
15
+			$anchor = '#'.$form['anchor'];
16
+			$class = 'nav-icon-'.$form['anchor'];
17 17
 			$sectionName = $form['section-name'];
18 18
 			print_unescaped(sprintf("<li><a href='%s' class='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor),
19 19
 			\OCP\Util::sanitizeHTML($class), \OCP\Util::sanitizeHTML($sectionName)));
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
 <div id="app-content">
26 26
 
27 27
 <div id="quota" class="section">
28
-	<div style="width:<?php p($_['usage_relative']);?>%"
29
-		<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
28
+	<div style="width:<?php p($_['usage_relative']); ?>%"
29
+		<?php if ($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
30 30
 		<p id="quotatext">
31 31
 			<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
32 32
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
33
-					[$_['usage'], $_['total_space']]));?>
33
+					[$_['usage'], $_['total_space']])); ?>
34 34
 			<?php else: ?>
35 35
 				<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)',
36
-					[$_['usage'], $_['total_space'],  $_['usage_relative']]));?>
36
+					[$_['usage'], $_['total_space'], $_['usage_relative']])); ?>
37 37
 			<?php endif ?>
38 38
 		</p>
39 39
 	</div>
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 			</div>
68 68
 		</div>
69 69
 		<span class="icon-checkmark hidden"/>
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>
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
 				<span class="icon-password"/>
82 82
 			</h2>
83 83
 			<input type="text" id="displayname" name="displayname"
84
-				<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
84
+				<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
85 85
 				value="<?php p($_['displayName']) ?>"
86 86
 				autocomplete="on" autocapitalize="none" autocorrect="off" />
87
-			<?php if(!$_['displayNameChangeSupported']) { ?>
88
-				<span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
87
+			<?php if (!$_['displayNameChangeSupported']) { ?>
88
+				<span><?php if (isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
89 89
 			<?php } ?>
90 90
 			<span class="icon-checkmark hidden"/>
91
-			<?php if($_['lookupServerUploadEnabled']) { ?>
91
+			<?php if ($_['lookupServerUploadEnabled']) { ?>
92 92
 			<input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>">
93 93
 			<?php } ?>
94 94
 		</form>
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
 				<label for="email"><?php p($l->t('Email')); ?></label>
100 100
 				<span class="icon-password"/>
101 101
 			</h2>
102
-			<div class="verify <?php if ($_['email'] === ''  || $_['emailScope'] !== 'public') p('hidden'); ?>">
102
+			<div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>">
103 103
 				<img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src="
104 104
 				<?php
105
-				switch($_['emailVerification']) {
105
+				switch ($_['emailVerification']) {
106 106
 					case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
107 107
 						p(image_path('core', 'actions/verifying.svg'));
108 108
 						break;
@@ -115,23 +115,23 @@  discard block
 block discarded – undo
115 115
 				?>">
116 116
 			</div>
117 117
 			<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
118
-				<?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
118
+				<?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
119 119
 				placeholder="<?php p($l->t('Your email address')); ?>"
120 120
 				autocomplete="on" autocapitalize="none" autocorrect="off" />
121
-			<?php if(!$_['displayNameChangeSupported']) { ?>
122
-				<span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
121
+			<?php if (!$_['displayNameChangeSupported']) { ?>
122
+				<span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
123 123
 			<?php } ?>
124
-			<?php if($_['displayNameChangeSupported']) { ?>
124
+			<?php if ($_['displayNameChangeSupported']) { ?>
125 125
 				<br />
126 126
 				<em><?php p($l->t('For password reset and notifications')); ?></em>
127 127
 			<?php } ?>
128 128
 			<span class="icon-checkmark hidden"/>
129
-			<?php if($_['lookupServerUploadEnabled']) { ?>
129
+			<?php if ($_['lookupServerUploadEnabled']) { ?>
130 130
 			<input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>">
131 131
 			<?php } ?>
132 132
 		</form>
133 133
 	</div>
134
-	<?php if($_['lookupServerUploadEnabled']) { ?>
134
+	<?php if ($_['lookupServerUploadEnabled']) { ?>
135 135
 	<div class="personal-settings-setting-box">
136 136
 		<form id="phoneform" class="section">
137 137
 			<h2>
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
 				<label for="website"><?php p($l->t('Website')); ?></label>
167 167
 				<span class="icon-password"/>
168 168
 			</h2>
169
-			<div class="verify <?php if ($_['website'] === ''  || $_['websiteScope'] !== 'public') p('hidden'); ?>">
169
+			<div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>">
170 170
 				<img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src="
171 171
 				<?php
172
-				switch($_['websiteVerification']) {
172
+				switch ($_['websiteVerification']) {
173 173
 					case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
174 174
 						p(image_path('core', 'actions/verifying.svg'));
175 175
 						break;
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
 						p(image_path('core', 'actions/verify.svg'));
181 181
 				}
182 182
 				?>"
183
-				<?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
183
+				<?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
184 184
 				>
185 185
 				<div class="verification-dialog popovermenu bubble menu">
186 186
 					<div class="verification-dialog-content">
187 187
 						<p class="explainVerification"></p>
188 188
 						<p class="verificationCode"></p>
189
-						<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
189
+						<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
190 190
 					</div>
191 191
 				</div>
192 192
 			</div>
@@ -203,10 +203,10 @@  discard block
 block discarded – undo
203 203
 				<label for="twitter"><?php p($l->t('Twitter')); ?></label>
204 204
 				<span class="icon-password"/>
205 205
 			</h2>
206
-			<div class="verify <?php if ($_['twitter'] === ''  || $_['twitterScope'] !== 'public') p('hidden'); ?>">
206
+			<div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>">
207 207
 				<img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src="
208 208
 				<?php
209
-				switch($_['twitterVerification']) {
209
+				switch ($_['twitterVerification']) {
210 210
 					case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
211 211
 						p(image_path('core', 'actions/verifying.svg'));
212 212
 						break;
@@ -217,13 +217,13 @@  discard block
 block discarded – undo
217 217
 						p(image_path('core', 'actions/verify.svg'));
218 218
 				}
219 219
 				?>"
220
-				<?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
220
+				<?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?>
221 221
 				>
222 222
 				<div class="verification-dialog popovermenu bubble menu">
223 223
 					<div class="verification-dialog-content">
224 224
 						<p class="explainVerification"></p>
225 225
 						<p class="verificationCode"></p>
226
-						<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p>
226
+						<p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p>
227 227
 					</div>
228 228
 				</div>
229 229
 			</div>
@@ -248,19 +248,19 @@  discard block
 block discarded – undo
248 248
 </div>
249 249
 
250 250
 <?php
251
-if($_['passwordChangeSupported']) {
251
+if ($_['passwordChangeSupported']) {
252 252
 	script('jquery-showpassword');
253 253
 ?>
254 254
 <form id="passwordform" class="section">
255
-	<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
255
+	<h2 class="inlineblock"><?php p($l->t('Password')); ?></h2>
256 256
 	<div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div>
257 257
 	<br>
258 258
 	<label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
259 259
 	<input type="password" id="pass1" name="oldpassword"
260
-		placeholder="<?php p($l->t('Current password'));?>"
260
+		placeholder="<?php p($l->t('Current password')); ?>"
261 261
 		autocomplete="off" autocapitalize="none" autocorrect="off" />
262 262
 	<div class="personal-show-container">
263
-		<label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
263
+		<label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label>
264 264
 		<input type="password" id="pass2" name="newpassword"
265 265
 			placeholder="<?php p($l->t('New password')); ?>"
266 266
 			data-typetoggle="#personal-show"
@@ -276,44 +276,44 @@  discard block
 block discarded – undo
276 276
 
277 277
 <form id="language" class="section">
278 278
 	<h2>
279
-		<label for="languageinput"><?php p($l->t('Language'));?></label>
279
+		<label for="languageinput"><?php p($l->t('Language')); ?></label>
280 280
 	</h2>
281
-	<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
282
-		<option value="<?php p($_['activelanguage']['code']);?>">
283
-			<?php p($_['activelanguage']['name']);?>
281
+	<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
282
+		<option value="<?php p($_['activelanguage']['code']); ?>">
283
+			<?php p($_['activelanguage']['name']); ?>
284 284
 		</option>
285
-		<?php foreach($_['commonlanguages'] as $language):?>
286
-			<option value="<?php p($language['code']);?>">
287
-				<?php p($language['name']);?>
285
+		<?php foreach ($_['commonlanguages'] as $language):?>
286
+			<option value="<?php p($language['code']); ?>">
287
+				<?php p($language['name']); ?>
288 288
 			</option>
289
-		<?php endforeach;?>
289
+		<?php endforeach; ?>
290 290
 		<optgroup label="––––––––––"></optgroup>
291
-		<?php foreach($_['languages'] as $language):?>
292
-			<option value="<?php p($language['code']);?>">
293
-				<?php p($language['name']);?>
291
+		<?php foreach ($_['languages'] as $language):?>
292
+			<option value="<?php p($language['code']); ?>">
293
+				<?php p($language['name']); ?>
294 294
 			</option>
295
-		<?php endforeach;?>
295
+		<?php endforeach; ?>
296 296
 	</select>
297 297
 	<a href="https://www.transifex.com/nextcloud/nextcloud/"
298 298
 		target="_blank" rel="noreferrer">
299
-		<em><?php p($l->t('Help translate'));?></em>
299
+		<em><?php p($l->t('Help translate')); ?></em>
300 300
 	</a>
301 301
 </form>
302 302
 
303 303
 
304 304
 <div id="clientsbox" class="section clientsbox">
305
-	<h2><?php p($l->t('Get the apps to sync your files'));?></h2>
305
+	<h2><?php p($l->t('Get the apps to sync your files')); ?></h2>
306 306
 	<a href="<?php p($_['clients']['desktop']); ?>" rel="noreferrer" target="_blank">
307 307
 		<img src="<?php print_unescaped(image_path('core', 'desktopapp.svg')); ?>"
308
-			 alt="<?php p($l->t('Desktop client'));?>" />
308
+			 alt="<?php p($l->t('Desktop client')); ?>" />
309 309
 	</a>
310 310
 	<a href="<?php p($_['clients']['android']); ?>" rel="noreferrer" target="_blank">
311 311
 		<img src="<?php print_unescaped(image_path('core', 'googleplay.png')); ?>"
312
-			 alt="<?php p($l->t('Android app'));?>" />
312
+			 alt="<?php p($l->t('Android app')); ?>" />
313 313
 	</a>
314 314
 	<a href="<?php p($_['clients']['ios']); ?>" rel="noreferrer" target="_blank">
315 315
 		<img src="<?php print_unescaped(image_path('core', 'appstore.svg')); ?>"
316
-			 alt="<?php p($l->t('iOS app'));?>" />
316
+			 alt="<?php p($l->t('iOS app')); ?>" />
317 317
 	</a>
318 318
 
319 319
 		<p>
@@ -329,19 +329,19 @@  discard block
 block discarded – undo
329 329
 				$l->t('If you want to support the project {contributeopen}join development{linkclose} or {contributeopen}spread the word{linkclose}!'))); ?>
330 330
 		</p>
331 331
 
332
-	<?php if(OC_APP::isEnabled('firstrunwizard')) {?>
333
-		<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again'));?></a></p>
332
+	<?php if (OC_APP::isEnabled('firstrunwizard')) {?>
333
+		<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again')); ?></a></p>
334 334
 	<?php }?>
335 335
 </div>
336 336
 
337 337
 <div id="security" class="section">
338
-	<h2><?php p($l->t('Security'));?></h2>
339
-	<p class="settings-hint hidden-when-empty"><?php p($l->t('Web, desktop mobile clients and app specific passwords that currently have access to your account.'));?></p>
338
+	<h2><?php p($l->t('Security')); ?></h2>
339
+	<p class="settings-hint hidden-when-empty"><?php p($l->t('Web, desktop mobile clients and app specific passwords that currently have access to your account.')); ?></p>
340 340
 	<table class="icon-loading">
341 341
 		<thead class="token-list-header">
342 342
 			<tr>
343
-				<th><?php p($l->t('Device'));?></th>
344
-				<th><?php p($l->t('Last activity'));?></th>
343
+				<th><?php p($l->t('Device')); ?></th>
344
+				<th><?php p($l->t('Last activity')); ?></th>
345 345
 				<th></th>
346 346
 			</tr>
347 347
 		</thead>
@@ -370,14 +370,14 @@  discard block
 block discarded – undo
370 370
 	</div>
371 371
 </div>
372 372
 
373
-<?php foreach($_['forms'] as $form) {
373
+<?php foreach ($_['forms'] as $form) {
374 374
 	if (isset($form['form'])) {?>
375
-	<div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div>
375
+	<div id="<?php isset($form['anchor']) ? p($form['anchor']) : p(''); ?>"><?php print_unescaped($form['form']); ?></div>
376 376
 	<?php }
377 377
 };?>
378 378
 
379 379
 <div class="section">
380
-	<h2><?php p($l->t('Version'));?></h2>
380
+	<h2><?php p($l->t('Version')); ?></h2>
381 381
 	<p><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></p>
382 382
 	<p><?php include('settings.development.notice.php'); ?></p>
383 383
 </div>
Please login to merge, or discard this patch.
settings/personal.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 OC_Util::addScript('settings', 'federationscopemenu');
58 58
 OC_Util::addScript('settings', 'personal');
59 59
 OC_Util::addScript('settings', 'certificates');
60
-OC_Util::addStyle( 'settings', 'settings' );
60
+OC_Util::addStyle('settings', 'settings');
61 61
 \OC_Util::addVendorScript('strengthify/jquery.strengthify');
62 62
 \OC_Util::addVendorStyle('strengthify/strengthify');
63 63
 \OC_Util::addScript('files', 'jquery.fileupload');
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
 // Highlight navigation entry
70 70
 OC::$server->getNavigationManager()->setActiveEntry('personal');
71 71
 
72
-$storageInfo=OC_Helper::getStorageInfo('/');
72
+$storageInfo = OC_Helper::getStorageInfo('/');
73 73
 
74 74
 $user = OC::$server->getUserManager()->get(OC_User::getUser());
75 75
 
76
-$userLang=$config->getUserValue( OC_User::getUser(), 'core', 'lang', \OC::$server->getL10NFactory()->findLanguage() );
76
+$userLang = $config->getUserValue(OC_User::getUser(), 'core', 'lang', \OC::$server->getL10NFactory()->findLanguage());
77 77
 $languageCodes = \OC::$server->getL10NFactory()->findAvailableLanguages();
78 78
 
79 79
 // array of common languages
@@ -81,18 +81,18 @@  discard block
 block discarded – undo
81 81
 	'en', 'es', 'fr', 'de', 'de_DE', 'ja', 'ar', 'ru', 'nl', 'it', 'pt_BR', 'pt_PT', 'da', 'fi_FI', 'nb_NO', 'sv', 'tr', 'zh_CN', 'ko'
82 82
 );
83 83
 
84
-$languages=array();
84
+$languages = array();
85 85
 $commonLanguages = array();
86
-foreach($languageCodes as $lang) {
86
+foreach ($languageCodes as $lang) {
87 87
 	$l = \OC::$server->getL10N('settings', $lang);
88 88
 	// TRANSLATORS this is the language name for the language switcher in the personal settings and should be the localized version
89 89
 	$potentialName = (string) $l->t('__language_name__');
90
-	if($l->getLanguageCode() === $lang && substr($potentialName, 0, 1) !== '_') {//first check if the language name is in the translation file
90
+	if ($l->getLanguageCode() === $lang && substr($potentialName, 0, 1) !== '_') {//first check if the language name is in the translation file
91 91
 		$ln = array('code' => $lang, 'name' => $potentialName);
92 92
 	} elseif ($lang === 'en') {
93 93
 		$ln = ['code' => $lang, 'name' => 'English (US)'];
94
-	}else{//fallback to language code
95
-		$ln=array('code'=>$lang, 'name'=>$lang);
94
+	} else {//fallback to language code
95
+		$ln = array('code'=>$lang, 'name'=>$lang);
96 96
 	}
97 97
 
98 98
 	// put appropriate languages into appropriate arrays, to print them sorted
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
 	if ($lang === $userLang) {
101 101
 		$userLang = $ln;
102 102
 	} elseif (in_array($lang, $commonLangCodes)) {
103
-		$commonLanguages[array_search($lang, $commonLangCodes)]=$ln;
103
+		$commonLanguages[array_search($lang, $commonLangCodes)] = $ln;
104 104
 	} else {
105
-		$languages[]=$ln;
105
+		$languages[] = $ln;
106 106
 	}
107 107
 }
108 108
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 ksort($commonLanguages);
118 118
 
119 119
 // sort now by displayed language not the iso-code
120
-usort( $languages, function ($a, $b) {
120
+usort($languages, function($a, $b) {
121 121
 	if ($a['code'] === $a['name'] && $b['code'] !== $b['name']) {
122 122
 		// If a doesn't have a name, but b does, list b before a
123 123
 		return 1;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
 // Return template
151 151
 $l = \OC::$server->getL10N('settings');
152
-$tmpl = new OC_Template( 'settings', 'personal', 'user');
152
+$tmpl = new OC_Template('settings', 'personal', 'user');
153 153
 $tmpl->assign('usage', OC_Helper::humanFileSize($storageInfo['used']));
154 154
 if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) {
155 155
 	$totalSpace = $l->t('Unlimited');
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 			$message = $l->t('Verify');
205 205
 	}
206 206
 
207
-	$tmpl->assign($property . 'Message', $message);
207
+	$tmpl->assign($property.'Message', $message);
208 208
 }
209 209
 
210 210
 $tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser()));
@@ -230,11 +230,11 @@  discard block
 block discarded – undo
230 230
 
231 231
 // add hardcoded forms from the template
232 232
 $formsAndMore = [];
233
-$formsAndMore[]= ['anchor' => 'personal-settings', 'section-name' => $l->t('Personal info')];
234
-$formsAndMore[]= ['anchor' => 'security', 'section-name' => $l->t('Security')];
235
-$formsAndMore[]= ['anchor' => 'clientsbox', 'section-name' => $l->t('Sync clients')];
233
+$formsAndMore[] = ['anchor' => 'personal-settings', 'section-name' => $l->t('Personal info')];
234
+$formsAndMore[] = ['anchor' => 'security', 'section-name' => $l->t('Security')];
235
+$formsAndMore[] = ['anchor' => 'clientsbox', 'section-name' => $l->t('Sync clients')];
236 236
 
237
-$forms=OC_App::getForms('personal');
237
+$forms = OC_App::getForms('personal');
238 238
 
239 239
 
240 240
 // add bottom hardcoded forms from the template
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 	$forms[] = $certificatesTemplate->fetchPage();
248 248
 }
249 249
 
250
-$formsMap = array_map(function($form){
250
+$formsMap = array_map(function($form) {
251 251
 	if (preg_match('%(<h2(?P<class>[^>]*)>.*?</h2>)%i', $form, $regs)) {
252 252
 		$sectionName = str_replace('<h2'.$regs['class'].'>', '', $regs[0]);
253 253
 		$sectionName = str_replace('</h2>', '', $sectionName);
Please login to merge, or discard this patch.