Completed
Pull Request — master (#4890)
by Blizzz
15:08
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.
lib/private/Settings/Mapper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
 	 * @return array[] [['class' => string, 'priority' => int], ...]
105 105
 	 */
106 106
 	public function getSectionsFromDB($type) {
107
-		if($type === 'personal') {
107
+		if ($type === 'personal') {
108 108
 			$sectionsTable = self::TABLE_ADMIN_SECTIONS;
109 109
 			$settingsTable = self::TABLE_ADMIN_SETTINGS;
110
-		} else if($type === 'admin') {
110
+		} else if ($type === 'admin') {
111 111
 			$sectionsTable = self::TABLE_PERSONAL_SECTIONS;
112 112
 			$settingsTable = self::TABLE_PERSONAL_SETTINGS;
113 113
 		} else {
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
 			->from($settingsTable, 'f')
121 121
 			->where($query->expr()->eq('s.id', 'f.section'));
122 122
 		$result = $query->execute();
123
-		return array_map(function ($row) {
124
-			$row['priority'] = (int)$row['priority'];
123
+		return array_map(function($row) {
124
+			$row['priority'] = (int) $row['priority'];
125 125
 			return $row;
126 126
 		}, $result->fetchAll());
127 127
 	}
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 */
133 133
 	public function add($table, array $values) {
134 134
 		$query = $this->dbc->getQueryBuilder();
135
-		$values = array_map(function ($value) use ($query) {
135
+		$values = array_map(function($value) use ($query) {
136 136
 			return $query->createNamedParameter($value);
137 137
 		}, $values);
138 138
 		$query->insert($table)->values($values);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 		$data = $resultStatement->fetchAll();
154 154
 		$resultStatement->closeCursor();
155 155
 
156
-		return array_map(function ($row) {
156
+		return array_map(function($row) {
157 157
 			return $row['class'];
158 158
 		}, $data);
159 159
 	}
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 		$row = $result->fetch();
177 177
 		$result->closeCursor();
178 178
 
179
-		return (bool)$row;
179
+		return (bool) $row;
180 180
 	}
181 181
 
182 182
 	/**
Please login to merge, or discard this patch.