Completed
Pull Request — master (#4890)
by Blizzz
14:39
created
settings/templates/settings/personal/sync-clients.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,18 +26,18 @@  discard block
 block discarded – undo
26 26
 ?>
27 27
 
28 28
 <div id="clientsbox" class="section clientsbox">
29
-	<h2><?php p($l->t('Get the apps to sync your files'));?></h2>
29
+	<h2><?php p($l->t('Get the apps to sync your files')); ?></h2>
30 30
 	<a href="<?php p($_['clients']['desktop']); ?>" rel="noreferrer" target="_blank">
31 31
 		<img src="<?php print_unescaped(image_path('core', 'desktopapp.svg')); ?>"
32
-			 alt="<?php p($l->t('Desktop client'));?>" />
32
+			 alt="<?php p($l->t('Desktop client')); ?>" />
33 33
 	</a>
34 34
 	<a href="<?php p($_['clients']['android']); ?>" rel="noreferrer" target="_blank">
35 35
 		<img src="<?php print_unescaped(image_path('core', 'googleplay.png')); ?>"
36
-			 alt="<?php p($l->t('Android app'));?>" />
36
+			 alt="<?php p($l->t('Android app')); ?>" />
37 37
 	</a>
38 38
 	<a href="<?php p($_['clients']['ios']); ?>" rel="noreferrer" target="_blank">
39 39
 		<img src="<?php print_unescaped(image_path('core', 'appstore.svg')); ?>"
40
-			 alt="<?php p($l->t('iOS app'));?>" />
40
+			 alt="<?php p($l->t('iOS app')); ?>" />
41 41
 	</a>
42 42
 
43 43
 	<p>
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			$l->t('If you want to support the project {contributeopen}join development{linkclose} or {contributeopen}spread the word{linkclose}!'))); ?>
54 54
 	</p>
55 55
 
56
-	<?php if(OC_APP::isEnabled('firstrunwizard')) {?>
57
-		<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again'));?></a></p>
56
+	<?php if (OC_APP::isEnabled('firstrunwizard')) {?>
57
+		<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again')); ?></a></p>
58 58
 	<?php }?>
59 59
 </div>
Please login to merge, or discard this patch.
settings/Controller/PersonalSettingsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		// PhpStorm shows this as unused, but is required by CommonSettingsTrait
71 71
 		$settings = $this->settingsManager->getPersonalSettings($section);
72 72
 		$formatted = $this->formatSettings($settings);
73
-		if($section === 'additional') {
73
+		if ($section === 'additional') {
74 74
 			$formatted['content'] .= $this->getLegacyForms();
75 75
 		}
76 76
 		return $formatted;
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 	private function getLegacyForms() {
83 83
 		$forms = \OC_App::getForms('personal');
84 84
 
85
-		$forms = array_map(function ($form) {
85
+		$forms = array_map(function($form) {
86 86
 			if (preg_match('%(<h2(?P<class>[^>]*)>.*?</h2>)%i', $form, $regs)) {
87
-				$sectionName = str_replace('<h2' . $regs['class'] . '>', '', $regs[0]);
87
+				$sectionName = str_replace('<h2'.$regs['class'].'>', '', $regs[0]);
88 88
 				$sectionName = str_replace('</h2>', '', $sectionName);
89 89
 				$anchor = strtolower($sectionName);
90 90
 				$anchor = str_replace(' ', '-', $anchor);
Please login to merge, or discard this patch.