Completed
Push — stable9 ( 11047b...318578 )
by Lukas
20:03 queued 09:36
created
settings/templates/apps.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php
2 2
 style('settings', 'settings');
3 3
 vendor_style(
4
-	'core',
5
-	[
6
-		'select2/select2',
7
-	]
4
+    'core',
5
+    [
6
+        'select2/select2',
7
+    ]
8 8
 );
9 9
 vendor_script(
10
-	'core',
11
-	[
12
-		'handlebars/handlebars',
13
-		'select2/select2'
14
-	]
10
+    'core',
11
+    [
12
+        'handlebars/handlebars',
13
+        'select2/select2'
14
+    ]
15 15
 );
16 16
 script(
17
-	'settings',
18
-	[
19
-		'settings',
20
-		'apps',
21
-	]
17
+    'settings',
18
+    [
19
+        'settings',
20
+        'apps',
21
+    ]
22 22
 );
23 23
 /** @var array $_ */
24 24
 ?>
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	</li>
30 30
 {{/each}}
31 31
 
32
-<?php if($_['appstoreEnabled']): ?>
32
+<?php if ($_['appstoreEnabled']): ?>
33 33
 	<li>
34
-		<a class="app-external" target="_blank" href="https://docs.nextcloud.org/server/9/developer_manual/"><?php p($l->t('Developer documentation'));?> ↗</a>
34
+		<a class="app-external" target="_blank" href="https://docs.nextcloud.org/server/9/developer_manual/"><?php p($l->t('Developer documentation')); ?> ↗</a>
35 35
 	</li>
36 36
 <?php endif; ?>
37 37
 </script>
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	</h2>
61 61
 	<div class="app-version"> {{version}}</div>
62 62
 	{{#if profilepage}}<a href="{{profilepage}}" target="_blank" rel="noreferrer">{{/if}}
63
-	<div class="app-author"><?php p($l->t('by %s', ['{{author}}']));?>
63
+	<div class="app-author"><?php p($l->t('by %s', ['{{author}}'])); ?>
64 64
 		{{#if licence}}
65 65
 		(<?php p($l->t('%s-licensed', ['{{licence}}'])); ?>)
66 66
 		{{/if}}
@@ -79,23 +79,23 @@  discard block
 block discarded – undo
79 79
 		<!--<div class="app-changed">{{changed}}</div>-->
80 80
 		{{#if documentation}}
81 81
 		<p class="documentation">
82
-			<?php p($l->t("Documentation:"));?>
82
+			<?php p($l->t("Documentation:")); ?>
83 83
 			{{#if documentation.user}}
84 84
 			<span class="userDocumentation">
85
-			<a id="userDocumentation" class="appslink" href="{{documentation.user}}" target="_blank"><?php p($l->t('User documentation'));?> ↗</a>
85
+			<a id="userDocumentation" class="appslink" href="{{documentation.user}}" target="_blank"><?php p($l->t('User documentation')); ?> ↗</a>
86 86
 			</span>
87 87
 			{{/if}}
88 88
 
89 89
 			{{#if documentation.admin}}
90 90
 			<span class="adminDocumentation">
91
-			<a id="adminDocumentation" class="appslink" href="{{documentation.admin}}" target="_blank"><?php p($l->t('Admin documentation'));?> ↗</a>
91
+			<a id="adminDocumentation" class="appslink" href="{{documentation.admin}}" target="_blank"><?php p($l->t('Admin documentation')); ?> ↗</a>
92 92
 			</span>
93 93
 			{{/if}}
94 94
 		</p>
95 95
 		{{/if}}
96 96
 	</div><!-- end app-description-container -->
97
-	<div class="app-description-toggle-show"><?php p($l->t("Show description …"));?></div>
98
-	<div class="app-description-toggle-hide hidden"><?php p($l->t("Hide description …"));?></div>
97
+	<div class="app-description-toggle-show"><?php p($l->t("Show description …")); ?></div>
98
+	<div class="app-description-toggle-hide hidden"><?php p($l->t("Hide description …")); ?></div>
99 99
 
100 100
 	<div class="app-dependencies update hidden">
101 101
 		<p><?php p($l->t('This app has an update available.')); ?></p>
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
 	<input class="update hidden" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
128 128
 	{{#if active}}
129
-	<input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/>
129
+	<input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable")); ?>"/>
130 130
 	<span class="groups-enable">
131 131
 		<input type="checkbox" class="groups-enable__checkbox checkbox" id="groups_enable-{{id}}"/>
132 132
 		<label for="groups_enable-{{id}}"><?php p($l->t('Enable only for specific groups')); ?></label>
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	<br />
135 135
 	<input type="hidden" id="group_select" title="<?php p($l->t('All')); ?>" style="width: 200px">
136 136
 	{{else}}
137
-	<input class="enable" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/>
137
+	<input class="enable" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable")); ?>"/>
138 138
 	{{/if}}
139 139
 	{{#if canUnInstall}}
140 140
 	<input class="uninstall" type="submit" value="<?php p($l->t('Uninstall App')); ?>" data-appid="{{id}}" />
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 	</div>
146 146
 </script>
147 147
 
148
-<div id="app-navigation" class="icon-loading" data-category="<?php p($_['category']);?>">
148
+<div id="app-navigation" class="icon-loading" data-category="<?php p($_['category']); ?>">
149 149
 	<ul id="apps-categories">
150 150
 
151 151
 	</ul>
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		</div>
156 156
 
157 157
 		<div id="app-settings-content" class="apps-experimental">
158
-			<input type="checkbox" id="enable-experimental-apps" <?php if($_['experimentalEnabled']) { print_unescaped('checked="checked"'); }?> class="checkbox">
158
+			<input type="checkbox" id="enable-experimental-apps" <?php if ($_['experimentalEnabled']) { print_unescaped('checked="checked"'); }?> class="checkbox">
159 159
 			<label for="enable-experimental-apps"><?php p($l->t('Enable experimental apps')) ?></label>
160 160
 			<p>
161 161
 				<small>
Please login to merge, or discard this patch.
settings/templates/users/part.userlist.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1
-<table id="userlist" class="hascontrols grid" data-groups="<?php p($_['allGroups']);?>">
1
+<table id="userlist" class="hascontrols grid" data-groups="<?php p($_['allGroups']); ?>">
2 2
 	<thead>
3 3
 		<tr>
4 4
 		<?php if ($_['enableAvatars']): ?>
5 5
 			<th id="headerAvatar" scope="col"></th>
6 6
 		<?php endif; ?>
7 7
 			<th id="headerName" scope="col"><?php p($l->t('Username'))?></th>
8
-			<th id="headerDisplayName" scope="col"><?php p($l->t( 'Full Name' )); ?></th>
9
-			<th id="headerPassword" scope="col"><?php p($l->t( 'Password' )); ?></th>
10
-			<th class="mailAddress" scope="col"><?php p($l->t( 'Email' )); ?></th>
11
-			<th id="headerGroups" scope="col"><?php p($l->t( 'Groups' )); ?></th>
12
-		<?php if(is_array($_['subadmins']) || $_['subadmins']): ?>
8
+			<th id="headerDisplayName" scope="col"><?php p($l->t('Full Name')); ?></th>
9
+			<th id="headerPassword" scope="col"><?php p($l->t('Password')); ?></th>
10
+			<th class="mailAddress" scope="col"><?php p($l->t('Email')); ?></th>
11
+			<th id="headerGroups" scope="col"><?php p($l->t('Groups')); ?></th>
12
+		<?php if (is_array($_['subadmins']) || $_['subadmins']): ?>
13 13
 			<th id="headerSubAdmins" scope="col"><?php p($l->t('Group Admin for')); ?></th>
14
-		<?php endif;?>
14
+		<?php endif; ?>
15 15
 			<th id="headerQuota" scope="col"><?php p($l->t('Quota')); ?></th>
16 16
 			<th class="storageLocation" scope="col"><?php p($l->t('Storage Location')); ?></th>
17 17
 			<th class="userBackend" scope="col"><?php p($l->t('User Backend')); ?></th>
@@ -41,26 +41,26 @@  discard block
 block discarded – undo
41 41
 			<td class="groups"><div class="groupsListContainer multiselect button"
42 42
 				><span class="title groupsList"></span><span class="icon-triangle-s"></span></div>
43 43
 			</td>
44
-		<?php if(is_array($_['subadmins']) || $_['subadmins']): ?>
44
+		<?php if (is_array($_['subadmins']) || $_['subadmins']): ?>
45 45
 			<td class="subadmins"><div class="groupsListContainer multiselect button"
46 46
 				><span class="title groupsList"></span><span class="icon-triangle-s"></span></div>
47 47
 			</td>
48
-		<?php endif;?>
48
+		<?php endif; ?>
49 49
 			<td class="quota">
50 50
 				<select class="quota-user" data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>">
51 51
 					<option	value='default'>
52
-						<?php p($l->t('Default'));?>
52
+						<?php p($l->t('Default')); ?>
53 53
 					</option>
54 54
 					<option value='none'>
55
-						<?php p($l->t('Unlimited'));?>
55
+						<?php p($l->t('Unlimited')); ?>
56 56
 					</option>
57
-					<?php foreach($_['quota_preset'] as $preset):?>
58
-						<option value='<?php p($preset);?>'>
59
-							<?php p($preset);?>
57
+					<?php foreach ($_['quota_preset'] as $preset):?>
58
+						<option value='<?php p($preset); ?>'>
59
+							<?php p($preset); ?>
60 60
 						</option>
61
-					<?php endforeach;?>
61
+					<?php endforeach; ?>
62 62
 					<option value='other' data-new>
63
-						<?php p($l->t('Other'));?> ...
63
+						<?php p($l->t('Other')); ?> ...
64 64
 					</option>
65 65
 				</select>
66 66
 			</td>
Please login to merge, or discard this patch.
settings/templates/personal.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
 <div id="app-navigation">
12 12
 	<ul>
13 13
 	<?php foreach($_['forms'] as $form) {
14
-		if (isset($form['anchor'])) {
15
-			$anchor = '#' . $form['anchor'];
16
-			$sectionName = $form['section-name'];
17
-			print_unescaped(sprintf("<li><a href='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName)));
18
-		}
19
-	}?>
14
+        if (isset($form['anchor'])) {
15
+            $anchor = '#' . $form['anchor'];
16
+            $sectionName = $form['section-name'];
17
+            print_unescaped(sprintf("<li><a href='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName)));
18
+        }
19
+    }?>
20 20
 	</ul>
21 21
 </div>
22 22
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
28 28
 		<p id="quotatext">
29 29
 			<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
30
-			array($_['usage'], $_['total_space'])));?>
30
+            array($_['usage'], $_['total_space'])));?>
31 31
 		</p>
32 32
 	</div>
33 33
 </div>
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
 <?php
116 116
 if($_['passwordChangeSupported']) {
117
-	script('jquery-showpassword');
117
+    script('jquery-showpassword');
118 118
 ?>
119 119
 <form id="passwordform" class="section">
120 120
 	<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 </div>
251 251
 
252 252
 <?php foreach($_['forms'] as $form) {
253
-	if (isset($form['form'])) {?>
253
+    if (isset($form['form'])) {?>
254 254
 	<div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div>
255 255
 	<?php }
256 256
 };?>
Please login to merge, or discard this patch.
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 
11 11
 <div id="app-navigation">
12 12
 	<ul>
13
-	<?php foreach($_['forms'] as $form) {
13
+	<?php foreach ($_['forms'] as $form) {
14 14
 		if (isset($form['anchor'])) {
15
-			$anchor = '#' . $form['anchor'];
15
+			$anchor = '#'.$form['anchor'];
16 16
 			$sectionName = $form['section-name'];
17 17
 			print_unescaped(sprintf("<li><a href='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName)));
18 18
 		}
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
 <div id="app-content">
24 24
 
25 25
 <div id="quota" class="section">
26
-	<div style="width:<?php p($_['usage_relative']);?>%"
27
-		<?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
26
+	<div style="width:<?php p($_['usage_relative']); ?>%"
27
+		<?php if ($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
28 28
 		<p id="quotatext">
29 29
 			<?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>',
30
-			array($_['usage'], $_['total_space'])));?>
30
+			array($_['usage'], $_['total_space']))); ?>
31 31
 		</p>
32 32
 	</div>
33 33
 </div>
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 <?php endif; ?>
58 58
 
59 59
 <?php
60
-if($_['displayNameChangeSupported']) {
60
+if ($_['displayNameChangeSupported']) {
61 61
 ?>
62 62
 <form id="displaynameform" class="section">
63 63
 	<h2>
64
-		<label for="displayName"><?php echo $l->t('Full name');?></label>
64
+		<label for="displayName"><?php echo $l->t('Full name'); ?></label>
65 65
 	</h2>
66 66
 	<input type="text" id="displayName" name="displayName"
67 67
 		value="<?php p($_['displayName'])?>"
@@ -73,32 +73,32 @@  discard block
 block discarded – undo
73 73
 } else {
74 74
 ?>
75 75
 <div id="displaynameform" class="section">
76
-	<h2><?php echo $l->t('Full name');?></h2>
77
-	<span><?php if(isset($_['displayName'][0])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
76
+	<h2><?php echo $l->t('Full name'); ?></h2>
77
+	<span><?php if (isset($_['displayName'][0])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
78 78
 </div>
79 79
 <?php
80 80
 }
81 81
 ?>
82 82
 
83 83
 <?php
84
-if($_['displayNameChangeSupported']) {
84
+if ($_['displayNameChangeSupported']) {
85 85
 ?>
86 86
 <form id="lostpassword" class="section">
87 87
 	<h2>
88
-		<label for="email"><?php p($l->t('Email'));?></label>
88
+		<label for="email"><?php p($l->t('Email')); ?></label>
89 89
 	</h2>
90 90
 	<input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
91
-		placeholder="<?php p($l->t('Your email address'));?>"
91
+		placeholder="<?php p($l->t('Your email address')); ?>"
92 92
 		autocomplete="on" autocapitalize="off" autocorrect="off" />
93 93
 	<span class="msg"></span><br />
94
-	<em><?php p($l->t('For password recovery and notifications'));?></em>
94
+	<em><?php p($l->t('For password recovery and notifications')); ?></em>
95 95
 </form>
96 96
 <?php
97 97
 } else {
98 98
 ?>
99 99
 <div id="lostpassword" class="section">
100 100
 	<h2><?php echo $l->t('Email'); ?></h2>
101
-	<span><?php if(isset($_['email'][0])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
101
+	<span><?php if (isset($_['email'][0])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
102 102
 </div>
103 103
 <?php
104 104
 }
@@ -113,24 +113,24 @@  discard block
 block discarded – undo
113 113
 </div>
114 114
 
115 115
 <?php
116
-if($_['passwordChangeSupported']) {
116
+if ($_['passwordChangeSupported']) {
117 117
 	script('jquery-showpassword');
118 118
 ?>
119 119
 <form id="passwordform" class="section">
120
-	<h2 class="inlineblock"><?php p($l->t('Password'));?></h2>
120
+	<h2 class="inlineblock"><?php p($l->t('Password')); ?></h2>
121 121
 	<div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div>
122 122
 	<br>
123
-	<label for="pass1" class="onlyInIE8"><?php echo $l->t('Current password');?>: </label>
123
+	<label for="pass1" class="onlyInIE8"><?php echo $l->t('Current password'); ?>: </label>
124 124
 	<input type="password" id="pass1" name="oldpassword"
125
-		placeholder="<?php echo $l->t('Current password');?>"
125
+		placeholder="<?php echo $l->t('Current password'); ?>"
126 126
 		autocomplete="off" autocapitalize="off" autocorrect="off" />
127
-	<label for="pass2" class="onlyInIE8"><?php echo $l->t('New password');?>: </label>
127
+	<label for="pass2" class="onlyInIE8"><?php echo $l->t('New password'); ?>: </label>
128 128
 	<input type="password" id="pass2" name="personal-password"
129
-		placeholder="<?php echo $l->t('New password');?>"
129
+		placeholder="<?php echo $l->t('New password'); ?>"
130 130
 		data-typetoggle="#personal-show"
131 131
 		autocomplete="off" autocapitalize="off" autocorrect="off" />
132 132
 	<input type="checkbox" id="personal-show" name="show" /><label for="personal-show" class="svg"></label>
133
-	<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
133
+	<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password'); ?>" />
134 134
 	<br/>
135 135
 </form>
136 136
 <?php
@@ -139,45 +139,45 @@  discard block
 block discarded – undo
139 139
 
140 140
 <form id="language" class="section">
141 141
 	<h2>
142
-		<label for="languageinput"><?php p($l->t('Language'));?></label>
142
+		<label for="languageinput"><?php p($l->t('Language')); ?></label>
143 143
 	</h2>
144
-	<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
145
-		<option value="<?php p($_['activelanguage']['code']);?>">
146
-			<?php p($_['activelanguage']['name']);?>
144
+	<select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>">
145
+		<option value="<?php p($_['activelanguage']['code']); ?>">
146
+			<?php p($_['activelanguage']['name']); ?>
147 147
 		</option>
148
-		<?php foreach($_['commonlanguages'] as $language):?>
149
-			<option value="<?php p($language['code']);?>">
150
-				<?php p($language['name']);?>
148
+		<?php foreach ($_['commonlanguages'] as $language):?>
149
+			<option value="<?php p($language['code']); ?>">
150
+				<?php p($language['name']); ?>
151 151
 			</option>
152
-		<?php endforeach;?>
152
+		<?php endforeach; ?>
153 153
 		<optgroup label="––––––––––"></optgroup>
154
-		<?php foreach($_['languages'] as $language):?>
155
-			<option value="<?php p($language['code']);?>">
156
-				<?php p($language['name']);?>
154
+		<?php foreach ($_['languages'] as $language):?>
155
+			<option value="<?php p($language['code']); ?>">
156
+				<?php p($language['name']); ?>
157 157
 			</option>
158
-		<?php endforeach;?>
158
+		<?php endforeach; ?>
159 159
 	</select>
160 160
 	<?php if (OC_Util::getEditionString() === ''): ?>
161 161
 	<a href="https://www.transifex.com/nextcloud/nextcloud/"
162 162
 		target="_blank" rel="noreferrer">
163
-		<em><?php p($l->t('Help translate'));?></em>
163
+		<em><?php p($l->t('Help translate')); ?></em>
164 164
 	</a>
165 165
 	<?php endif; ?>
166 166
 </form>
167 167
 
168 168
 <div id="clientsbox" class="section clientsbox">
169
-	<h2><?php p($l->t('Get the apps to sync your files'));?></h2>
169
+	<h2><?php p($l->t('Get the apps to sync your files')); ?></h2>
170 170
 	<a href="<?php p($_['clients']['desktop']); ?>" target="_blank">
171 171
 		<img src="<?php print_unescaped(OCP\Util::imagePath('core', 'desktopapp.svg')); ?>"
172
-			alt="<?php p($l->t('Desktop client'));?>" />
172
+			alt="<?php p($l->t('Desktop client')); ?>" />
173 173
 	</a>
174 174
 	<a href="<?php p($_['clients']['android']); ?>" target="_blank">
175 175
 		<img src="<?php print_unescaped(OCP\Util::imagePath('core', 'googleplay.png')); ?>"
176
-			alt="<?php p($l->t('Android app'));?>" />
176
+			alt="<?php p($l->t('Android app')); ?>" />
177 177
 	</a>
178 178
 	<a href="<?php p($_['clients']['ios']); ?>" target="_blank">
179 179
 		<img src="<?php print_unescaped(OCP\Util::imagePath('core', 'appstore.svg')); ?>"
180
-			alt="<?php p($l->t('iOS app'));?>" />
180
+			alt="<?php p($l->t('iOS app')); ?>" />
181 181
 	</a>
182 182
 
183 183
 	<?php if (OC_Util::getEditionString() === ''): ?>
@@ -187,23 +187,23 @@  discard block
 block discarded – undo
187 187
 			target="_blank" rel="noreferrer">join development</a>
188 188
 		or
189 189
 		<a href="https://help.nextcloud.com/"
190
-			target="_blank" rel="noreferrer">help other users</a>!'));?>
190
+			target="_blank" rel="noreferrer">help other users</a>!')); ?>
191 191
 	</p>
192 192
 	<?php endif; ?>
193 193
 
194
-	<?php if(OC_APP::isEnabled('firstrunwizard')) {?>
195
-	<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again'));?></a></p>
194
+	<?php if (OC_APP::isEnabled('firstrunwizard')) {?>
195
+	<p><a class="button" href="#" id="showWizard"><?php p($l->t('Show First Run Wizard again')); ?></a></p>
196 196
 	<?php }?>
197 197
 </div>
198 198
 
199
-<?php foreach($_['forms'] as $form) {
199
+<?php foreach ($_['forms'] as $form) {
200 200
 	if (isset($form['form'])) {?>
201
-	<div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div>
201
+	<div id="<?php isset($form['anchor']) ? p($form['anchor']) : p(''); ?>"><?php print_unescaped($form['form']); ?></div>
202 202
 	<?php }
203 203
 };?>
204 204
 
205 205
 <div class="section">
206
-	<h2><?php p($l->t('Version'));?></h2>
206
+	<h2><?php p($l->t('Version')); ?></h2>
207 207
 	<p><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></p>
208 208
 	<p><?php include('settings.development.notice.php'); ?></p>
209 209
 </div>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,11 @@
 block discarded – undo
44 44
 		<div class="hidden button icon-delete svg" id="removeavatar" title="<?php p($l->t('Remove image')); ?>"></div>
45 45
 		<input type="file" name="files[]" id="uploadavatar" class="hiddenuploadfield">
46 46
 		<p><em><?php p($l->t('png or jpg, max. 20 MB')); ?></em></p>
47
-		<?php else: ?>
48
-		<?php p($l->t('Picture provided by original account')); ?>
47
+		<?php else {
48
+    : ?>
49
+		<?php p($l->t('Picture provided by original account'));
50
+}
51
+?>
49 52
 		<?php endif; ?>
50 53
 	</div>
51 54
 
Please login to merge, or discard this patch.
settings/ajax/setlanguage.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
 
34 34
 // Get data
35 35
 if( isset( $_POST['lang'] ) ) {
36
-	$languageCodes = \OC::$server->getL10NFactory()->findAvailableLanguages();
37
-	$lang = (string)$_POST['lang'];
38
-	if(array_search($lang, $languageCodes) or $lang === 'en') {
39
-		\OC::$server->getConfig()->setUserValue( OC_User::getUser(), 'core', 'lang', $lang );
40
-		OC_JSON::success(array("data" => array( "message" => $l->t("Language changed") )));
41
-	}else{
42
-		OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
43
-	}
36
+    $languageCodes = \OC::$server->getL10NFactory()->findAvailableLanguages();
37
+    $lang = (string)$_POST['lang'];
38
+    if(array_search($lang, $languageCodes) or $lang === 'en') {
39
+        \OC::$server->getConfig()->setUserValue( OC_User::getUser(), 'core', 'lang', $lang );
40
+        OC_JSON::success(array("data" => array( "message" => $l->t("Language changed") )));
41
+    }else{
42
+        OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
43
+    }
44 44
 }else{
45
-	OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
45
+    OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
46 46
 }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
 
33 33
 
34 34
 // Get data
35
-if( isset( $_POST['lang'] ) ) {
35
+if (isset($_POST['lang'])) {
36 36
 	$languageCodes = \OC::$server->getL10NFactory()->findAvailableLanguages();
37
-	$lang = (string)$_POST['lang'];
38
-	if(array_search($lang, $languageCodes) or $lang === 'en') {
39
-		\OC::$server->getConfig()->setUserValue( OC_User::getUser(), 'core', 'lang', $lang );
40
-		OC_JSON::success(array("data" => array( "message" => $l->t("Language changed") )));
41
-	}else{
42
-		OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
37
+	$lang = (string) $_POST['lang'];
38
+	if (array_search($lang, $languageCodes) or $lang === 'en') {
39
+		\OC::$server->getConfig()->setUserValue(OC_User::getUser(), 'core', 'lang', $lang);
40
+		OC_JSON::success(array("data" => array("message" => $l->t("Language changed"))));
41
+	} else {
42
+		OC_JSON::error(array("data" => array("message" => $l->t("Invalid request"))));
43 43
 	}
44
-}else{
45
-	OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
44
+} else {
45
+	OC_JSON::error(array("data" => array("message" => $l->t("Invalid request"))));
46 46
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
 	if(array_search($lang, $languageCodes) or $lang === 'en') {
39 39
 		\OC::$server->getConfig()->setUserValue( OC_User::getUser(), 'core', 'lang', $lang );
40 40
 		OC_JSON::success(array("data" => array( "message" => $l->t("Language changed") )));
41
-	}else{
41
+	} else{
42 42
 		OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
43 43
 	}
44
-}else{
44
+} else{
45 45
 	OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
46 46
 }
Please login to merge, or discard this patch.
settings/ajax/togglesubadmins.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
 
34 34
 $isSubAdminOfGroup = false;
35 35
 if($targetUserObject !== null && $targetUserObject !== null) {
36
-	$isSubAdminOfGroup = $subAdminManager->isSubAdminofGroup($targetUserObject, $targetGroupObject);
36
+    $isSubAdminOfGroup = $subAdminManager->isSubAdminofGroup($targetUserObject, $targetGroupObject);
37 37
 }
38 38
 
39 39
 // Toggle group
40 40
 if($isSubAdminOfGroup) {
41
-	$subAdminManager->deleteSubAdmin($targetUserObject, $targetGroupObject);
41
+    $subAdminManager->deleteSubAdmin($targetUserObject, $targetGroupObject);
42 42
 } else {
43
-	$subAdminManager->createSubAdmin($targetUserObject, $targetGroupObject);
43
+    $subAdminManager->createSubAdmin($targetUserObject, $targetGroupObject);
44 44
 }
45 45
 
46 46
 OC_JSON::success();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,20 +24,20 @@
 block discarded – undo
24 24
 OC_JSON::checkAdminUser();
25 25
 OCP\JSON::callCheck();
26 26
 
27
-$username = (string)$_POST['username'];
28
-$group = (string)$_POST['group'];
27
+$username = (string) $_POST['username'];
28
+$group = (string) $_POST['group'];
29 29
 
30 30
 $subAdminManager = \OC::$server->getGroupManager()->getSubAdmin();
31 31
 $targetUserObject = \OC::$server->getUserManager()->get($username);
32 32
 $targetGroupObject = \OC::$server->getGroupManager()->get($group);
33 33
 
34 34
 $isSubAdminOfGroup = false;
35
-if($targetUserObject !== null && $targetUserObject !== null) {
35
+if ($targetUserObject !== null && $targetUserObject !== null) {
36 36
 	$isSubAdminOfGroup = $subAdminManager->isSubAdminofGroup($targetUserObject, $targetGroupObject);
37 37
 }
38 38
 
39 39
 // Toggle group
40
-if($isSubAdminOfGroup) {
40
+if ($isSubAdminOfGroup) {
41 41
 	$subAdminManager->deleteSubAdmin($targetUserObject, $targetGroupObject);
42 42
 } else {
43 43
 	$subAdminManager->createSubAdmin($targetUserObject, $targetGroupObject);
Please login to merge, or discard this patch.
settings/ajax/disableapp.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
 OCP\JSON::callCheck();
26 26
 
27 27
 if (!array_key_exists('appid', $_POST)) {
28
-	OC_JSON::error();
29
-	exit;
28
+    OC_JSON::error();
29
+    exit;
30 30
 }
31 31
 
32 32
 $appId = (string)$_POST['appid'];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	exit;
30 30
 }
31 31
 
32
-$appId = (string)$_POST['appid'];
32
+$appId = (string) $_POST['appid'];
33 33
 $appId = OC_App::cleanAppId($appId);
34 34
 
35 35
 OC_App::disable($appId);
Please login to merge, or discard this patch.
settings/ajax/enableapp.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@
 block discarded – undo
31 31
 $groups = isset($_POST['groups']) ? (array)$_POST['groups'] : null;
32 32
 
33 33
 try {
34
-	$app = OC_App::cleanAppId((string)$_POST['appid']);
35
-	OC_App::enable($app, $groups);
36
-	OC_JSON::success(['data' => ['update_required' => \OC_App::shouldUpgrade($app)]]);
34
+    $app = OC_App::cleanAppId((string)$_POST['appid']);
35
+    OC_App::enable($app, $groups);
36
+    OC_JSON::success(['data' => ['update_required' => \OC_App::shouldUpgrade($app)]]);
37 37
 } catch (Exception $e) {
38
-	\OCP\Util::writeLog('core', $e->getMessage(), \OCP\Util::ERROR);
39
-	OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));
38
+    \OCP\Util::writeLog('core', $e->getMessage(), \OCP\Util::ERROR);
39
+    OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));
40 40
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
 OC_JSON::checkAdminUser();
29 29
 OCP\JSON::callCheck();
30 30
 
31
-$groups = isset($_POST['groups']) ? (array)$_POST['groups'] : null;
31
+$groups = isset($_POST['groups']) ? (array) $_POST['groups'] : null;
32 32
 
33 33
 try {
34
-	$app = OC_App::cleanAppId((string)$_POST['appid']);
34
+	$app = OC_App::cleanAppId((string) $_POST['appid']);
35 35
 	OC_App::enable($app, $groups);
36 36
 	OC_JSON::success(['data' => ['update_required' => \OC_App::shouldUpgrade($app)]]);
37 37
 } catch (Exception $e) {
38 38
 	\OCP\Util::writeLog('core', $e->getMessage(), \OCP\Util::ERROR);
39
-	OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));
39
+	OC_JSON::error(array("data" => array("message" => $e->getMessage())));
40 40
 }
Please login to merge, or discard this patch.
settings/ajax/togglegroups.php 3 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 $group = (string)$_POST['group'];
34 34
 
35 35
 if($username === OC_User::getUser() && $group === "admin" &&  OC_User::isAdminUser($username)) {
36
-	$l = \OC::$server->getL10N('core');
37
-	OC_JSON::error(array( 'data' => array( 'message' => $l->t('Admins can\'t remove themself from the admin group'))));
38
-	exit();
36
+    $l = \OC::$server->getL10N('core');
37
+    OC_JSON::error(array( 'data' => array( 'message' => $l->t('Admins can\'t remove themself from the admin group'))));
38
+    exit();
39 39
 }
40 40
 
41 41
 $isUserAccessible = false;
@@ -44,20 +44,20 @@  discard block
 block discarded – undo
44 44
 $targetUserObject = \OC::$server->getUserManager()->get($username);
45 45
 $targetGroupObject = \OC::$server->getGroupManager()->get($group);
46 46
 if($targetUserObject !== null && $currentUserObject !== null && $targetGroupObject !== null) {
47
-	$isUserAccessible = \OC::$server->getGroupManager()->getSubAdmin()->isUserAccessible($currentUserObject, $targetUserObject);
48
-	$isGroupAccessible = \OC::$server->getGroupManager()->getSubAdmin()->isSubAdminofGroup($currentUserObject, $targetGroupObject);
47
+    $isUserAccessible = \OC::$server->getGroupManager()->getSubAdmin()->isUserAccessible($currentUserObject, $targetUserObject);
48
+    $isGroupAccessible = \OC::$server->getGroupManager()->getSubAdmin()->isSubAdminofGroup($currentUserObject, $targetGroupObject);
49 49
 }
50 50
 
51 51
 if(!OC_User::isAdminUser(OC_User::getUser())
52
-	&& (!$isUserAccessible
53
-		|| !$isGroupAccessible)) {
54
-	$l = \OC::$server->getL10N('core');
55
-	OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
56
-	exit();
52
+    && (!$isUserAccessible
53
+        || !$isGroupAccessible)) {
54
+    $l = \OC::$server->getL10N('core');
55
+    OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
56
+    exit();
57 57
 }
58 58
 
59 59
 if(!OC_Group::groupExists($group)) {
60
-	OC_Group::createGroup($group);
60
+    OC_Group::createGroup($group);
61 61
 }
62 62
 
63 63
 $l = \OC::$server->getL10N('settings');
@@ -67,19 +67,19 @@  discard block
 block discarded – undo
67 67
 
68 68
 // Toggle group
69 69
 if( OC_Group::inGroup( $username, $group )) {
70
-	$action = "remove";
71
-	$error = $l->t("Unable to remove user from group %s", $group);
72
-	$success = OC_Group::removeFromGroup( $username, $group );
73
-	$usersInGroup=OC_Group::usersInGroup($group);
70
+    $action = "remove";
71
+    $error = $l->t("Unable to remove user from group %s", $group);
72
+    $success = OC_Group::removeFromGroup( $username, $group );
73
+    $usersInGroup=OC_Group::usersInGroup($group);
74 74
 }
75 75
 else{
76
-	$success = OC_Group::addToGroup( $username, $group );
76
+    $success = OC_Group::addToGroup( $username, $group );
77 77
 }
78 78
 
79 79
 // Return Success story
80 80
 if( $success ) {
81
-	OC_JSON::success(array("data" => array( "username" => $username, "action" => $action, "groupname" => $group )));
81
+    OC_JSON::success(array("data" => array( "username" => $username, "action" => $action, "groupname" => $group )));
82 82
 }
83 83
 else{
84
-	OC_JSON::error(array("data" => array( "message" => $error )));
84
+    OC_JSON::error(array("data" => array( "message" => $error )));
85 85
 }
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
 OCP\JSON::callCheck();
30 30
 
31 31
 $success = true;
32
-$username = (string)$_POST['username'];
33
-$group = (string)$_POST['group'];
32
+$username = (string) $_POST['username'];
33
+$group = (string) $_POST['group'];
34 34
 
35
-if($username === OC_User::getUser() && $group === "admin" &&  OC_User::isAdminUser($username)) {
35
+if ($username === OC_User::getUser() && $group === "admin" && OC_User::isAdminUser($username)) {
36 36
 	$l = \OC::$server->getL10N('core');
37
-	OC_JSON::error(array( 'data' => array( 'message' => $l->t('Admins can\'t remove themself from the admin group'))));
37
+	OC_JSON::error(array('data' => array('message' => $l->t('Admins can\'t remove themself from the admin group'))));
38 38
 	exit();
39 39
 }
40 40
 
@@ -43,20 +43,20 @@  discard block
 block discarded – undo
43 43
 $currentUserObject = \OC::$server->getUserSession()->getUser();
44 44
 $targetUserObject = \OC::$server->getUserManager()->get($username);
45 45
 $targetGroupObject = \OC::$server->getGroupManager()->get($group);
46
-if($targetUserObject !== null && $currentUserObject !== null && $targetGroupObject !== null) {
46
+if ($targetUserObject !== null && $currentUserObject !== null && $targetGroupObject !== null) {
47 47
 	$isUserAccessible = \OC::$server->getGroupManager()->getSubAdmin()->isUserAccessible($currentUserObject, $targetUserObject);
48 48
 	$isGroupAccessible = \OC::$server->getGroupManager()->getSubAdmin()->isSubAdminofGroup($currentUserObject, $targetGroupObject);
49 49
 }
50 50
 
51
-if(!OC_User::isAdminUser(OC_User::getUser())
51
+if (!OC_User::isAdminUser(OC_User::getUser())
52 52
 	&& (!$isUserAccessible
53 53
 		|| !$isGroupAccessible)) {
54 54
 	$l = \OC::$server->getL10N('core');
55
-	OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
55
+	OC_JSON::error(array('data' => array('message' => $l->t('Authentication error'))));
56 56
 	exit();
57 57
 }
58 58
 
59
-if(!OC_Group::groupExists($group)) {
59
+if (!OC_Group::groupExists($group)) {
60 60
 	OC_Group::createGroup($group);
61 61
 }
62 62
 
@@ -66,20 +66,20 @@  discard block
 block discarded – undo
66 66
 $action = "add";
67 67
 
68 68
 // Toggle group
69
-if( OC_Group::inGroup( $username, $group )) {
69
+if (OC_Group::inGroup($username, $group)) {
70 70
 	$action = "remove";
71 71
 	$error = $l->t("Unable to remove user from group %s", $group);
72
-	$success = OC_Group::removeFromGroup( $username, $group );
73
-	$usersInGroup=OC_Group::usersInGroup($group);
72
+	$success = OC_Group::removeFromGroup($username, $group);
73
+	$usersInGroup = OC_Group::usersInGroup($group);
74 74
 }
75
-else{
76
-	$success = OC_Group::addToGroup( $username, $group );
75
+else {
76
+	$success = OC_Group::addToGroup($username, $group);
77 77
 }
78 78
 
79 79
 // Return Success story
80
-if( $success ) {
81
-	OC_JSON::success(array("data" => array( "username" => $username, "action" => $action, "groupname" => $group )));
80
+if ($success) {
81
+	OC_JSON::success(array("data" => array("username" => $username, "action" => $action, "groupname" => $group)));
82 82
 }
83
-else{
84
-	OC_JSON::error(array("data" => array( "message" => $error )));
83
+else {
84
+	OC_JSON::error(array("data" => array("message" => $error)));
85 85
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,15 +71,13 @@
 block discarded – undo
71 71
 	$error = $l->t("Unable to remove user from group %s", $group);
72 72
 	$success = OC_Group::removeFromGroup( $username, $group );
73 73
 	$usersInGroup=OC_Group::usersInGroup($group);
74
-}
75
-else{
74
+} else{
76 75
 	$success = OC_Group::addToGroup( $username, $group );
77 76
 }
78 77
 
79 78
 // Return Success story
80 79
 if( $success ) {
81 80
 	OC_JSON::success(array("data" => array( "username" => $username, "action" => $action, "groupname" => $group )));
82
-}
83
-else{
81
+} else{
84 82
 	OC_JSON::error(array("data" => array( "message" => $error )));
85 83
 }
Please login to merge, or discard this patch.
settings/ajax/installapp.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 OCP\JSON::callCheck();
26 26
 
27 27
 if (!array_key_exists('appid', $_POST)) {
28
-	OC_JSON::error();
29
-	exit;
28
+    OC_JSON::error();
29
+    exit;
30 30
 }
31 31
 
32 32
 $appId = (string)$_POST['appid'];
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 
35 35
 $result = OC_App::installApp($appId);
36 36
 if($result !== false) {
37
-	// FIXME: Clear the cache - move that into some sane helper method
38
-	\OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-0');
39
-	\OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-1');
40
-	OC_JSON::success(array('data' => array('appid' => $appId)));
37
+    // FIXME: Clear the cache - move that into some sane helper method
38
+    \OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-0');
39
+    \OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-1');
40
+    OC_JSON::success(array('data' => array('appid' => $appId)));
41 41
 } else {
42
-	$l = \OC::$server->getL10N('settings');
43
-	OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't remove app.") )));
42
+    $l = \OC::$server->getL10N('settings');
43
+    OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't remove app.") )));
44 44
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,16 +29,16 @@
 block discarded – undo
29 29
 	exit;
30 30
 }
31 31
 
32
-$appId = (string)$_POST['appid'];
32
+$appId = (string) $_POST['appid'];
33 33
 $appId = OC_App::cleanAppId($appId);
34 34
 
35 35
 $result = OC_App::installApp($appId);
36
-if($result !== false) {
36
+if ($result !== false) {
37 37
 	// FIXME: Clear the cache - move that into some sane helper method
38 38
 	\OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-0');
39 39
 	\OC::$server->getMemCacheFactory()->create('settings')->remove('listApps-1');
40 40
 	OC_JSON::success(array('data' => array('appid' => $appId)));
41 41
 } else {
42 42
 	$l = \OC::$server->getL10N('settings');
43
-	OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't remove app.") )));
43
+	OC_JSON::error(array("data" => array("message" => $l->t("Couldn't remove app."))));
44 44
 }
Please login to merge, or discard this patch.