Completed
Push — master ( e0a21e...61fe4c )
by Maxence
21:04 queued 15s
created
apps/settings/lib/Settings/Admin/Sharing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 			'excludeGroupsList' => json_decode($excludedGroups, true) ?? [],
70 70
 			'publicShareDisclaimerText' => $this->config->getAppValue('core', 'shareapi_public_link_disclaimertext'),
71 71
 			'enableLinkPasswordByDefault' => $this->appConfig->getValueBool('core', ConfigLexicon::SHARE_LINK_PASSWORD_DEFAULT),
72
-			'defaultPermissions' => (int)$this->config->getAppValue('core', 'shareapi_default_permissions', (string)Constants::PERMISSION_ALL),
72
+			'defaultPermissions' => (int) $this->config->getAppValue('core', 'shareapi_default_permissions', (string) Constants::PERMISSION_ALL),
73 73
 			'defaultInternalExpireDate' => $this->getHumanBooleanConfig('core', 'shareapi_default_internal_expire_date'),
74 74
 			'internalExpireAfterNDays' => $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'),
75 75
 			'enforceInternalExpireDate' => $this->getHumanBooleanConfig('core', 'shareapi_enforce_internal_expire_date'),
Please login to merge, or discard this patch.
apps/settings/tests/Settings/Admin/SharingTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 				['core', 'shareapi_enforce_expire_date', 'no', 'no'],
84 84
 				['core', 'shareapi_exclude_groups', 'no', 'no'],
85 85
 				['core', 'shareapi_public_link_disclaimertext', '', 'Lorem ipsum'],
86
-				['core', 'shareapi_default_permissions', (string)Constants::PERMISSION_ALL, Constants::PERMISSION_ALL],
86
+				['core', 'shareapi_default_permissions', (string) Constants::PERMISSION_ALL, Constants::PERMISSION_ALL],
87 87
 				['core', 'shareapi_default_internal_expire_date', 'no', 'no'],
88 88
 				['core', 'shareapi_internal_expire_after_n_days', '7', '7'],
89 89
 				['core', 'shareapi_enforce_internal_expire_date', 'no', 'no'],
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 		$this->initialState
103 103
 			->expects($this->exactly(3))
104 104
 			->method('provideInitialState')
105
-			->willReturnCallback(function (string $key) use (&$initialStateCalls): void {
105
+			->willReturnCallback(function(string $key) use (&$initialStateCalls): void {
106 106
 				$initialStateCalls[$key] = func_get_args();
107 107
 			});
108 108
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 				['core', 'shareapi_exclude_groups', 'no', 'yes'],
182 182
 				['core', 'shareapi_public_link_disclaimertext', '', 'Lorem ipsum'],
183 183
 				['core', 'shareapi_enable_link_password_by_default', 'no', 'yes'],
184
-				['core', 'shareapi_default_permissions', (string)Constants::PERMISSION_ALL, Constants::PERMISSION_ALL],
184
+				['core', 'shareapi_default_permissions', (string) Constants::PERMISSION_ALL, Constants::PERMISSION_ALL],
185 185
 				['core', 'shareapi_default_internal_expire_date', 'no', 'no'],
186 186
 				['core', 'shareapi_internal_expire_after_n_days', '7', '7'],
187 187
 				['core', 'shareapi_enforce_internal_expire_date', 'no', 'no'],
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 		$this->initialState
201 201
 			->expects($this->exactly(3))
202 202
 			->method('provideInitialState')
203
-			->willReturnCallback(function (string $key) use (&$initialStateCalls): void {
203
+			->willReturnCallback(function(string $key) use (&$initialStateCalls): void {
204 204
 				$initialStateCalls[$key] = func_get_args();
205 205
 			});
206 206
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 				'expireAfterNDays' => '7',
227 227
 				'enforceExpireDate' => false,
228 228
 				'excludeGroups' => 'yes',
229
-				'excludeGroupsList' => ['NoSharers','OtherNoSharers'],
229
+				'excludeGroupsList' => ['NoSharers', 'OtherNoSharers'],
230 230
 				'publicShareDisclaimerText' => 'Lorem ipsum',
231 231
 				'enableLinkPasswordByDefault' => true,
232 232
 				'defaultPermissions' => Constants::PERMISSION_ALL,
Please login to merge, or discard this patch.
apps/files_sharing/tests/CapabilitiesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 		} else {
68 68
 			// hack to help transition from old IConfig to new IAppConfig
69 69
 			$appConfig = $this->getMockBuilder(IAppConfig::class)->disableOriginalConstructor()->getMock();
70
-			$appConfig->expects($this->any())->method('getValueBool')->willReturnCallback(function (...$args) use ($typedMap): bool {
70
+			$appConfig->expects($this->any())->method('getValueBool')->willReturnCallback(function(...$args) use ($typedMap): bool {
71 71
 				foreach ($typedMap as $entry) {
72 72
 					if ($entry[0] !== $args[0] || $entry[1] !== $args[1]) {
73 73
 						continue;
Please login to merge, or discard this patch.