Passed
Push — master ( 31cc07...56b08c )
by Joas
24:48 queued 11s
created
apps/settings/lib/Settings/Admin/Sharing.php 1 patch
Indentation   +94 added lines, -94 removed lines patch added patch discarded remove patch
@@ -39,107 +39,107 @@
 block discarded – undo
39 39
 use OCP\Util;
40 40
 
41 41
 class Sharing implements ISettings {
42
-	/** @var IConfig */
43
-	private $config;
42
+    /** @var IConfig */
43
+    private $config;
44 44
 
45
-	/** @var IL10N */
46
-	private $l;
45
+    /** @var IL10N */
46
+    private $l;
47 47
 
48
-	/** @var IManager */
49
-	private $shareManager;
48
+    /** @var IManager */
49
+    private $shareManager;
50 50
 
51
-	/**
52
-	 * @param IConfig $config
53
-	 */
54
-	public function __construct(IConfig $config, IL10N $l, IManager $shareManager) {
55
-		$this->config = $config;
56
-		$this->l = $l;
57
-		$this->shareManager = $shareManager;
58
-	}
51
+    /**
52
+     * @param IConfig $config
53
+     */
54
+    public function __construct(IConfig $config, IL10N $l, IManager $shareManager) {
55
+        $this->config = $config;
56
+        $this->l = $l;
57
+        $this->shareManager = $shareManager;
58
+    }
59 59
 
60
-	/**
61
-	 * @return TemplateResponse
62
-	 */
63
-	public function getForm() {
64
-		$excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
65
-		$excludeGroupsList = !is_null(json_decode($excludedGroups))
66
-			? implode('|', json_decode($excludedGroups, true)) : '';
60
+    /**
61
+     * @return TemplateResponse
62
+     */
63
+    public function getForm() {
64
+        $excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
65
+        $excludeGroupsList = !is_null(json_decode($excludedGroups))
66
+            ? implode('|', json_decode($excludedGroups, true)) : '';
67 67
 
68
-		$parameters = [
69
-			// Built-In Sharing
70
-			'allowGroupSharing' => $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes'),
71
-			'allowLinks' => $this->config->getAppValue('core', 'shareapi_allow_links', 'yes'),
72
-			'allowPublicUpload' => $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes'),
73
-			'allowResharing' => $this->config->getAppValue('core', 'shareapi_allow_resharing', 'yes'),
74
-			'allowShareDialogUserEnumeration' => $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes'),
75
-			'restrictUserEnumerationToGroup' => $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_group', 'no'),
76
-			'restrictUserEnumerationToPhone' => $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_phone', 'no'),
77
-			'restrictUserEnumerationFullMatch' => $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match', 'yes'),
78
-			'enforceLinkPassword' => Util::isPublicLinkPasswordRequired(),
79
-			'onlyShareWithGroupMembers' => $this->shareManager->shareWithGroupMembersOnly(),
80
-			'shareAPIEnabled' => $this->config->getAppValue('core', 'shareapi_enabled', 'yes'),
81
-			'shareDefaultExpireDateSet' => $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no'),
82
-			'shareExpireAfterNDays' => $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'),
83
-			'shareEnforceExpireDate' => $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no'),
84
-			'shareExcludeGroups' => $this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes',
85
-			'shareExcludedGroupsList' => $excludeGroupsList,
86
-			'publicShareDisclaimerText' => $this->config->getAppValue('core', 'shareapi_public_link_disclaimertext', null),
87
-			'enableLinkPasswordByDefault' => $this->config->getAppValue('core', 'shareapi_enable_link_password_by_default', 'no'),
88
-			'shareApiDefaultPermissions' => $this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL),
89
-			'shareApiDefaultPermissionsCheckboxes' => $this->getSharePermissionList(),
90
-			'shareDefaultInternalExpireDateSet' => $this->config->getAppValue('core', 'shareapi_default_internal_expire_date', 'no'),
91
-			'shareInternalExpireAfterNDays' => $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'),
92
-			'shareInternalEnforceExpireDate' => $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no'),
93
-		];
68
+        $parameters = [
69
+            // Built-In Sharing
70
+            'allowGroupSharing' => $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes'),
71
+            'allowLinks' => $this->config->getAppValue('core', 'shareapi_allow_links', 'yes'),
72
+            'allowPublicUpload' => $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes'),
73
+            'allowResharing' => $this->config->getAppValue('core', 'shareapi_allow_resharing', 'yes'),
74
+            'allowShareDialogUserEnumeration' => $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes'),
75
+            'restrictUserEnumerationToGroup' => $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_group', 'no'),
76
+            'restrictUserEnumerationToPhone' => $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_phone', 'no'),
77
+            'restrictUserEnumerationFullMatch' => $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match', 'yes'),
78
+            'enforceLinkPassword' => Util::isPublicLinkPasswordRequired(),
79
+            'onlyShareWithGroupMembers' => $this->shareManager->shareWithGroupMembersOnly(),
80
+            'shareAPIEnabled' => $this->config->getAppValue('core', 'shareapi_enabled', 'yes'),
81
+            'shareDefaultExpireDateSet' => $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no'),
82
+            'shareExpireAfterNDays' => $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'),
83
+            'shareEnforceExpireDate' => $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no'),
84
+            'shareExcludeGroups' => $this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes',
85
+            'shareExcludedGroupsList' => $excludeGroupsList,
86
+            'publicShareDisclaimerText' => $this->config->getAppValue('core', 'shareapi_public_link_disclaimertext', null),
87
+            'enableLinkPasswordByDefault' => $this->config->getAppValue('core', 'shareapi_enable_link_password_by_default', 'no'),
88
+            'shareApiDefaultPermissions' => $this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL),
89
+            'shareApiDefaultPermissionsCheckboxes' => $this->getSharePermissionList(),
90
+            'shareDefaultInternalExpireDateSet' => $this->config->getAppValue('core', 'shareapi_default_internal_expire_date', 'no'),
91
+            'shareInternalExpireAfterNDays' => $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'),
92
+            'shareInternalEnforceExpireDate' => $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no'),
93
+        ];
94 94
 
95
-		return new TemplateResponse('settings', 'settings/admin/sharing', $parameters, '');
96
-	}
95
+        return new TemplateResponse('settings', 'settings/admin/sharing', $parameters, '');
96
+    }
97 97
 
98
-	/**
99
-	 * get share permission list for template
100
-	 *
101
-	 * @return array
102
-	 */
103
-	private function getSharePermissionList() {
104
-		return [
105
-			[
106
-				'id' => 'cancreate',
107
-				'label' => $this->l->t('Create'),
108
-				'value' => Constants::PERMISSION_CREATE
109
-			],
110
-			[
111
-				'id' => 'canupdate',
112
-				'label' => $this->l->t('Change'),
113
-				'value' => Constants::PERMISSION_UPDATE
114
-			],
115
-			[
116
-				'id' => 'candelete',
117
-				'label' => $this->l->t('Delete'),
118
-				'value' => Constants::PERMISSION_DELETE
119
-			],
120
-			[
121
-				'id' => 'canshare',
122
-				'label' => $this->l->t('Reshare'),
123
-				'value' => Constants::PERMISSION_SHARE
124
-			],
125
-		];
126
-	}
98
+    /**
99
+     * get share permission list for template
100
+     *
101
+     * @return array
102
+     */
103
+    private function getSharePermissionList() {
104
+        return [
105
+            [
106
+                'id' => 'cancreate',
107
+                'label' => $this->l->t('Create'),
108
+                'value' => Constants::PERMISSION_CREATE
109
+            ],
110
+            [
111
+                'id' => 'canupdate',
112
+                'label' => $this->l->t('Change'),
113
+                'value' => Constants::PERMISSION_UPDATE
114
+            ],
115
+            [
116
+                'id' => 'candelete',
117
+                'label' => $this->l->t('Delete'),
118
+                'value' => Constants::PERMISSION_DELETE
119
+            ],
120
+            [
121
+                'id' => 'canshare',
122
+                'label' => $this->l->t('Reshare'),
123
+                'value' => Constants::PERMISSION_SHARE
124
+            ],
125
+        ];
126
+    }
127 127
 
128
-	/**
129
-	 * @return string the section ID, e.g. 'sharing'
130
-	 */
131
-	public function getSection() {
132
-		return 'sharing';
133
-	}
128
+    /**
129
+     * @return string the section ID, e.g. 'sharing'
130
+     */
131
+    public function getSection() {
132
+        return 'sharing';
133
+    }
134 134
 
135
-	/**
136
-	 * @return int whether the form should be rather on the top or bottom of
137
-	 * the admin section. The forms are arranged in ascending order of the
138
-	 * priority values. It is required to return a value between 0 and 100.
139
-	 *
140
-	 * E.g.: 70
141
-	 */
142
-	public function getPriority() {
143
-		return 0;
144
-	}
135
+    /**
136
+     * @return int whether the form should be rather on the top or bottom of
137
+     * the admin section. The forms are arranged in ascending order of the
138
+     * priority values. It is required to return a value between 0 and 100.
139
+     *
140
+     * E.g.: 70
141
+     */
142
+    public function getPriority() {
143
+        return 0;
144
+    }
145 145
 }
Please login to merge, or discard this patch.
apps/settings/templates/settings/admin/sharing.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -35,22 +35,22 @@  discard block
 block discarded – undo
35 35
 	<p id="enable">
36 36
 		<input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled" class="checkbox"
37 37
 			   value="1" <?php if ($_['shareAPIEnabled'] === 'yes') {
38
-	print_unescaped('checked="checked"');
38
+    print_unescaped('checked="checked"');
39 39
 } ?> />
40 40
 		<label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API'));?></label><br/>
41 41
 	</p>
42 42
 
43 43
 	<p id="internalShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
44
-	p('hidden');
44
+    p('hidden');
45 45
 } ?>">
46 46
 		<input type="checkbox" name="shareapi_default_internal_expire_date" id="shareapiDefaultInternalExpireDate" class="checkbox"
47 47
 			   value="1" <?php if ($_['shareDefaultInternalExpireDateSet'] === 'yes') {
48
-	print_unescaped('checked="checked"');
48
+    print_unescaped('checked="checked"');
49 49
 } ?> />
50 50
 		<label for="shareapiDefaultInternalExpireDate"><?php p($l->t('Set default expiration date for shares'));?></label><br/>
51 51
 	</p>
52 52
 	<p id="setDefaultInternalExpireDate" class="double-indent <?php if ($_['shareDefaultInternalExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') {
53
-	p('hidden');
53
+    p('hidden');
54 54
 }?>">
55 55
 		<?php p($l->t('Expire after ')); ?>
56 56
 		<input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>"
@@ -58,49 +58,49 @@  discard block
 block discarded – undo
58 58
 		<?php p($l->t('days')); ?>
59 59
 		<input type="checkbox" name="shareapi_enforce_internal_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox"
60 60
 			   value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') {
61
-	print_unescaped('checked="checked"');
61
+    print_unescaped('checked="checked"');
62 62
 } ?> />
63 63
 		<label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
64 64
 	</p>
65 65
 
66 66
 	<p class="<?php if ($_['shareAPIEnabled'] === 'no') {
67
-	p('hidden');
67
+    p('hidden');
68 68
 }?>">
69 69
 		<input type="checkbox" name="shareapi_allow_links" id="allowLinks" class="checkbox"
70 70
 			   value="1" <?php if ($_['allowLinks'] === 'yes') {
71
-	print_unescaped('checked="checked"');
71
+    print_unescaped('checked="checked"');
72 72
 } ?> />
73 73
 		<label for="allowLinks"><?php p($l->t('Allow users to share via link'));?></label><br/>
74 74
 	</p>
75 75
 
76 76
 	<p id="publicLinkSettings" class="indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareAPIEnabled'] === 'no') {
77
-	p('hidden');
77
+    p('hidden');
78 78
 } ?>">
79 79
 		<input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload" class="checkbox"
80 80
 			   value="1" <?php if ($_['allowPublicUpload'] == 'yes') {
81
-	print_unescaped('checked="checked"');
81
+    print_unescaped('checked="checked"');
82 82
 } ?> />
83 83
 		<label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/>
84 84
 		<input type="checkbox" name="shareapi_enable_link_password_by_default" id="enableLinkPasswordByDefault" class="checkbox"
85 85
 			   value="1" <?php if ($_['enableLinkPasswordByDefault'] === 'yes') {
86
-	print_unescaped('checked="checked"');
86
+    print_unescaped('checked="checked"');
87 87
 } ?> />
88 88
 		<label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password'));?></label><br/>
89 89
 		<input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" class="checkbox"
90 90
 			   value="1" <?php if ($_['enforceLinkPassword']) {
91
-	print_unescaped('checked="checked"');
91
+    print_unescaped('checked="checked"');
92 92
 } ?> />
93 93
 		<label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/>
94 94
 
95 95
 		<input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox"
96 96
 			   value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') {
97
-	print_unescaped('checked="checked"');
97
+    print_unescaped('checked="checked"');
98 98
 } ?> />
99 99
 		<label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date for link shares'));?></label><br/>
100 100
 
101 101
 	</p>
102 102
 	<p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') {
103
-	p('hidden');
103
+    p('hidden');
104 104
 }?>">
105 105
 		<?php p($l->t('Expire after ')); ?>
106 106
 		<input type="text" name='shareapi_expire_after_n_days' id="shareapiExpireAfterNDays" placeholder="<?php p('7')?>"
@@ -108,48 +108,48 @@  discard block
 block discarded – undo
108 108
 		<?php p($l->t('days')); ?>
109 109
 		<input type="checkbox" name="shareapi_enforce_expire_date" id="shareapiEnforceExpireDate" class="checkbox"
110 110
 			   value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') {
111
-	print_unescaped('checked="checked"');
111
+    print_unescaped('checked="checked"');
112 112
 } ?> />
113 113
 		<label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/>
114 114
 	</p>
115 115
 	<p class="<?php if ($_['shareAPIEnabled'] === 'no') {
116
-	p('hidden');
116
+    p('hidden');
117 117
 }?>">
118 118
 		<input type="checkbox" name="shareapi_allow_resharing" id="allowResharing" class="checkbox"
119 119
 			   value="1" <?php if ($_['allowResharing'] === 'yes') {
120
-	print_unescaped('checked="checked"');
120
+    print_unescaped('checked="checked"');
121 121
 } ?> />
122 122
 		<label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
123 123
 	</p>
124 124
 	<p class="<?php if ($_['shareAPIEnabled'] === 'no') {
125
-	p('hidden');
125
+    p('hidden');
126 126
 }?>">
127 127
 		<input type="checkbox" name="shareapi_allow_group_sharing" id="allowGroupSharing" class="checkbox"
128 128
 			   value="1" <?php if ($_['allowGroupSharing'] === 'yes') {
129
-	print_unescaped('checked="checked"');
129
+    print_unescaped('checked="checked"');
130 130
 } ?> />
131 131
 		<label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br />
132 132
 	</p>
133 133
 	<p class="<?php if ($_['shareAPIEnabled'] === 'no') {
134
-	p('hidden');
134
+    p('hidden');
135 135
 }?>">
136 136
 		<input type="checkbox" name="shareapi_only_share_with_group_members" id="onlyShareWithGroupMembers" class="checkbox"
137 137
 			   value="1" <?php if ($_['onlyShareWithGroupMembers']) {
138
-	print_unescaped('checked="checked"');
138
+    print_unescaped('checked="checked"');
139 139
 } ?> />
140 140
 		<label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups'));?></label><br/>
141 141
 	</p>
142 142
 	<p class="<?php if ($_['shareAPIEnabled'] === 'no') {
143
-	p('hidden');
143
+    p('hidden');
144 144
 }?>">
145 145
 		<input type="checkbox" name="shareapi_exclude_groups" id="shareapiExcludeGroups" class="checkbox"
146 146
 			   value="1" <?php if ($_['shareExcludeGroups']) {
147
-	print_unescaped('checked="checked"');
147
+    print_unescaped('checked="checked"');
148 148
 } ?> />
149 149
 		<label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/>
150 150
 	</p>
151 151
 	<p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') {
152
-	p('hidden');
152
+    p('hidden');
153 153
 } ?>">
154 154
 		<input name="shareapi_exclude_groups_list" type="hidden" id="excludedGroups" value="<?php p($_['shareExcludedGroupsList']) ?>" style="width: 400px" class="noJSAutoUpdate"/>
155 155
 		<br />
@@ -157,45 +157,45 @@  discard block
 block discarded – undo
157 157
 	</p>
158 158
 
159 159
 	<p class="<?php if ($_['shareAPIEnabled'] === 'no') {
160
-	p('hidden');
160
+    p('hidden');
161 161
 }?>">
162 162
 		<input type="checkbox" name="shareapi_allow_share_dialog_user_enumeration" value="1" id="shareapi_allow_share_dialog_user_enumeration" class="checkbox"
163 163
 			<?php if ($_['allowShareDialogUserEnumeration'] === 'yes') {
164
-	print_unescaped('checked="checked"');
164
+    print_unescaped('checked="checked"');
165 165
 } ?> />
166 166
 		<label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog'));?></label><br />
167 167
 	</p>
168 168
 
169 169
 	<p id="shareapi_restrict_user_enumeration_to_group_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
170
-	p('hidden');
170
+    p('hidden');
171 171
 }?>">
172 172
 		<input type="checkbox" name="shareapi_restrict_user_enumeration_to_group" value="1" id="shareapi_restrict_user_enumeration_to_group" class="checkbox"
173 173
 			<?php if ($_['restrictUserEnumerationToGroup'] === 'yes') {
174
-	print_unescaped('checked="checked"');
174
+    print_unescaped('checked="checked"');
175 175
 } ?> />
176 176
 		<label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups'));?></label><br />
177 177
 	</p>
178 178
 
179 179
 	<p id="shareapi_restrict_user_enumeration_to_phone_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
180
-	p('hidden');
180
+    p('hidden');
181 181
 }?>">
182 182
 		<input type="checkbox" name="shareapi_restrict_user_enumeration_to_phone" value="1" id="shareapi_restrict_user_enumeration_to_phone" class="checkbox"
183 183
 			<?php if ($_['restrictUserEnumerationToPhone'] === 'yes') {
184
-	print_unescaped('checked="checked"');
184
+    print_unescaped('checked="checked"');
185 185
 } ?> />
186 186
 		<label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phonebook matches'));?></label><br />
187 187
 	</p>
188 188
 	<p id="shareapi_restrict_user_enumeration_combinewarning_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') {
189
-	p('hidden');
189
+    p('hidden');
190 190
 }?>">
191 191
 		<em><?php p($l->t('If autocompletion "same group" and "phonebook matches" are enabled a match in either is enough to show the user.'));?></em><br />
192 192
 	</p>
193 193
 	<p id="shareapi_restrict_user_enumeration_full_match_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
194
-	p('hidden');
194
+    p('hidden');
195 195
 }?>">
196 196
 		<input type="checkbox" name="shareapi_restrict_user_enumeration_full_match" value="1" id="shareapi_restrict_user_enumeration_full_match" class="checkbox"
197 197
 				<?php if ($_['restrictUserEnumerationFullMatch'] === 'yes') {
198
-	print_unescaped('checked="checked"');
198
+    print_unescaped('checked="checked"');
199 199
 } ?> />
200 200
 		<label for="shareapi_restrict_user_enumeration_full_match"><?php p($l->t('Allow username autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)'));?></label><br />
201 201
 	</p>
@@ -203,13 +203,13 @@  discard block
 block discarded – undo
203 203
 	<p>
204 204
 		<input type="checkbox" id="publicShareDisclaimer" class="checkbox noJSAutoUpdate"
205 205
 			<?php if ($_['publicShareDisclaimerText'] !== null) {
206
-	print_unescaped('checked="checked"');
206
+    print_unescaped('checked="checked"');
207 207
 } ?> />
208 208
 		<label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page (only shown when the file list is hidden)'));?></label>
209 209
 		<span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span>
210 210
 		<br/>
211 211
 		<textarea placeholder="<?php p($l->t('This text will be shown on the public link upload page when the file list is hidden.')) ?>" id="publicShareDisclaimerText" <?php if ($_['publicShareDisclaimerText'] === null) {
212
-	print_unescaped('class="hidden"');
212
+    print_unescaped('class="hidden"');
213 213
 } ?>><?php p($_['publicShareDisclaimerText']) ?></textarea>
214 214
 	</p>
215 215
 
@@ -217,12 +217,12 @@  discard block
 block discarded – undo
217 217
 	<input type="hidden" name="shareapi_default_permissions" id="shareApiDefaultPermissions" class="checkbox"
218 218
 		   value="<?php p($_['shareApiDefaultPermissions']) ?>" />
219 219
 	<p id="shareApiDefaultPermissionsSection" class="indent <?php if ($_['shareAPIEnabled'] === 'no') {
220
-	p('hidden');
220
+    p('hidden');
221 221
 } ?>">
222 222
 		<?php foreach ($_['shareApiDefaultPermissionsCheckboxes'] as $perm): ?>
223 223
 			<input type="checkbox" name="shareapi_default_permission_<?php p($perm['id']) ?>" id="shareapi_default_permission_<?php p($perm['id']) ?>"
224 224
 				   class="noautosave checkbox" value="<?php p($perm['value']) ?>" <?php if (($_['shareApiDefaultPermissions'] & $perm['value']) !== 0) {
225
-	print_unescaped('checked="checked"');
225
+    print_unescaped('checked="checked"');
226 226
 } ?> />
227 227
 			<label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label>
228 228
 		<?php endforeach ?>
Please login to merge, or discard this patch.