Completed
Push — master ( a67720...be1982 )
by Daniel
19:40 queued 14s
created
lib/public/Files/Search/ISearchQuery.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -29,49 +29,49 @@
 block discarded – undo
29 29
  * @since 12.0.0
30 30
  */
31 31
 interface ISearchQuery {
32
-	/**
33
-	 * @return ISearchOperator
34
-	 * @since 12.0.0
35
-	 */
36
-	public function getSearchOperation();
32
+    /**
33
+     * @return ISearchOperator
34
+     * @since 12.0.0
35
+     */
36
+    public function getSearchOperation();
37 37
 
38
-	/**
39
-	 * Get the maximum number of results to return
40
-	 *
41
-	 * @return integer
42
-	 * @since 12.0.0
43
-	 */
44
-	public function getLimit();
38
+    /**
39
+     * Get the maximum number of results to return
40
+     *
41
+     * @return integer
42
+     * @since 12.0.0
43
+     */
44
+    public function getLimit();
45 45
 
46
-	/**
47
-	 * Get the offset for returned results
48
-	 *
49
-	 * @return integer
50
-	 * @since 12.0.0
51
-	 */
52
-	public function getOffset();
46
+    /**
47
+     * Get the offset for returned results
48
+     *
49
+     * @return integer
50
+     * @since 12.0.0
51
+     */
52
+    public function getOffset();
53 53
 
54
-	/**
55
-	 * The fields and directions to order by
56
-	 *
57
-	 * @return ISearchOrder[]
58
-	 * @since 12.0.0
59
-	 */
60
-	public function getOrder();
54
+    /**
55
+     * The fields and directions to order by
56
+     *
57
+     * @return ISearchOrder[]
58
+     * @since 12.0.0
59
+     */
60
+    public function getOrder();
61 61
 
62
-	/**
63
-	 * The user that issued the search
64
-	 *
65
-	 * @return ?IUser
66
-	 * @since 12.0.0
67
-	 */
68
-	public function getUser();
62
+    /**
63
+     * The user that issued the search
64
+     *
65
+     * @return ?IUser
66
+     * @since 12.0.0
67
+     */
68
+    public function getUser();
69 69
 
70
-	/**
71
-	 * Whether or not the search should be limited to the users home storage
72
-	 *
73
-	 * @return bool
74
-	 * @since 18.0.0
75
-	 */
76
-	public function limitToHome(): bool;
70
+    /**
71
+     * Whether or not the search should be limited to the users home storage
72
+     *
73
+     * @return bool
74
+     * @since 18.0.0
75
+     */
76
+    public function limitToHome(): bool;
77 77
 }
Please login to merge, or discard this patch.
apps/comments/lib/MaxAutoCompleteResultsInitialState.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,6 @@
 block discarded – undo
43 43
 	}
44 44
 
45 45
 	public function getData(): int {
46
-		return (int)$this->config->getAppValue('comments', 'maxAutoCompleteResults', '10');
46
+		return (int) $this->config->getAppValue('comments', 'maxAutoCompleteResults', '10');
47 47
 	}
48 48
 }
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
 use OCP\IConfig;
13 13
 
14 14
 class MaxAutoCompleteResultsInitialState extends InitialStateProvider {
15
-	public function __construct(
16
-		private IConfig $config,
17
-	) {
18
-	}
15
+    public function __construct(
16
+        private IConfig $config,
17
+    ) {
18
+    }
19 19
 
20
-	public function getKey(): string {
21
-		return 'maxAutoCompleteResults';
22
-	}
20
+    public function getKey(): string {
21
+        return 'maxAutoCompleteResults';
22
+    }
23 23
 
24
-	public function getData(): int {
25
-		return (int)$this->config->getAppValue('comments', 'maxAutoCompleteResults', '10');
26
-	}
24
+    public function getData(): int {
25
+        return (int)$this->config->getAppValue('comments', 'maxAutoCompleteResults', '10');
26
+    }
27 27
 }
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -36,27 +36,27 @@
 block discarded – undo
36 36
 
37 37
 class Version1002Date20170919123342 extends SimpleMigrationStep {
38 38
 
39
-	/**
40
-	 * @param IOutput $output
41
-	 * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
42
-	 * @param array $options
43
-	 * @return null|ISchemaWrapper
44
-	 * @since 13.0.0
45
-	 */
46
-	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
47
-		/** @var ISchemaWrapper $schema */
48
-		$schema = $schemaClosure();
49
-
50
-		$table = $schema->getTable('twofactor_backupcodes');
51
-		$column = $table->getColumn('user_id');
52
-		$column->setDefault('');
53
-
54
-		$column = $table->getColumn('used');
55
-		if ($column->getType()->getName() !== Types::SMALLINT) {
56
-			$column->setType(Type::getType(Types::SMALLINT));
57
-			$column->setOptions(['length' => 6]);
58
-		}
59
-
60
-		return $schema;
61
-	}
39
+    /**
40
+     * @param IOutput $output
41
+     * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
42
+     * @param array $options
43
+     * @return null|ISchemaWrapper
44
+     * @since 13.0.0
45
+     */
46
+    public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
47
+        /** @var ISchemaWrapper $schema */
48
+        $schema = $schemaClosure();
49
+
50
+        $table = $schema->getTable('twofactor_backupcodes');
51
+        $column = $table->getColumn('user_id');
52
+        $column->setDefault('');
53
+
54
+        $column = $table->getColumn('used');
55
+        if ($column->getType()->getName() !== Types::SMALLINT) {
56
+            $column->setType(Type::getType(Types::SMALLINT));
57
+            $column->setOptions(['length' => 6]);
58
+        }
59
+
60
+        return $schema;
61
+    }
62 62
 }
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/composer/composer/autoload_static.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -6,51 +6,51 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitTwoFactorBackupCodes
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\TwoFactorBackupCodes\\' => 25,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\TwoFactorBackupCodes\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
25
-        'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php',
26
-        'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
27
-        'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => __DIR__ . '/..' . '/../lib/BackgroundJob/CheckBackupCodes.php',
28
-        'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/RememberBackupCodesJob.php',
29
-        'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => __DIR__ . '/..' . '/../lib/Controller/SettingsController.php',
30
-        'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => __DIR__ . '/..' . '/../lib/Db/BackupCode.php',
31
-        'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => __DIR__ . '/..' . '/../lib/Db/BackupCodeMapper.php',
32
-        'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => __DIR__ . '/..' . '/../lib/Event/CodesGenerated.php',
33
-        'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => __DIR__ . '/..' . '/../lib/Listener/ActivityPublisher.php',
34
-        'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => __DIR__ . '/..' . '/../lib/Listener/ClearNotifications.php',
35
-        'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => __DIR__ . '/..' . '/../lib/Listener/ProviderDisabled.php',
36
-        'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => __DIR__ . '/..' . '/../lib/Listener/ProviderEnabled.php',
37
-        'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => __DIR__ . '/..' . '/../lib/Listener/RegistryUpdater.php',
38
-        'OCA\\TwoFactorBackupCodes\\Listener\\UserDeleted' => __DIR__ . '/..' . '/../lib/Listener/UserDeleted.php',
39
-        'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => __DIR__ . '/..' . '/../lib/Migration/CheckBackupCodes.php',
40
-        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170607104347.php',
41
-        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170607113030.php',
42
-        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170919123342.php',
43
-        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170926101419.php',
44
-        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20180821043638.php',
45
-        'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => __DIR__ . '/..' . '/../lib/Notifications/Notifier.php',
46
-        'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => __DIR__ . '/..' . '/../lib/Provider/BackupCodesProvider.php',
47
-        'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => __DIR__ . '/..' . '/../lib/Service/BackupCodeStorage.php',
48
-        'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php',
23
+    public static $classMap = array(
24
+        'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php',
25
+        'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php',
26
+        'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
27
+        'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => __DIR__.'/..'.'/../lib/BackgroundJob/CheckBackupCodes.php',
28
+        'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => __DIR__.'/..'.'/../lib/BackgroundJob/RememberBackupCodesJob.php',
29
+        'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => __DIR__.'/..'.'/../lib/Controller/SettingsController.php',
30
+        'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => __DIR__.'/..'.'/../lib/Db/BackupCode.php',
31
+        'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => __DIR__.'/..'.'/../lib/Db/BackupCodeMapper.php',
32
+        'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => __DIR__.'/..'.'/../lib/Event/CodesGenerated.php',
33
+        'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => __DIR__.'/..'.'/../lib/Listener/ActivityPublisher.php',
34
+        'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => __DIR__.'/..'.'/../lib/Listener/ClearNotifications.php',
35
+        'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => __DIR__.'/..'.'/../lib/Listener/ProviderDisabled.php',
36
+        'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => __DIR__.'/..'.'/../lib/Listener/ProviderEnabled.php',
37
+        'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => __DIR__.'/..'.'/../lib/Listener/RegistryUpdater.php',
38
+        'OCA\\TwoFactorBackupCodes\\Listener\\UserDeleted' => __DIR__.'/..'.'/../lib/Listener/UserDeleted.php',
39
+        'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => __DIR__.'/..'.'/../lib/Migration/CheckBackupCodes.php',
40
+        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170607104347.php',
41
+        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170607113030.php',
42
+        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170919123342.php',
43
+        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170926101419.php',
44
+        'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20180821043638.php',
45
+        'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => __DIR__.'/..'.'/../lib/Notifications/Notifier.php',
46
+        'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => __DIR__.'/..'.'/../lib/Provider/BackupCodesProvider.php',
47
+        'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => __DIR__.'/..'.'/../lib/Service/BackupCodeStorage.php',
48
+        'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php',
49 49
     );
50 50
 
51 51
     public static function getInitializer(ClassLoader $loader)
52 52
     {
53
-        return \Closure::bind(function () use ($loader) {
53
+        return \Closure::bind(function() use ($loader) {
54 54
             $loader->prefixLengthsPsr4 = ComposerStaticInitTwoFactorBackupCodes::$prefixLengthsPsr4;
55 55
             $loader->prefixDirsPsr4 = ComposerStaticInitTwoFactorBackupCodes::$prefixDirsPsr4;
56 56
             $loader->classMap = ComposerStaticInitTwoFactorBackupCodes::$classMap;
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/composer/composer/autoload_classmap.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -6,29 +6,29 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
10
-    'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php',
11
-    'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
12
-    'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => $baseDir . '/../lib/BackgroundJob/CheckBackupCodes.php',
13
-    'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => $baseDir . '/../lib/BackgroundJob/RememberBackupCodesJob.php',
14
-    'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => $baseDir . '/../lib/Controller/SettingsController.php',
15
-    'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => $baseDir . '/../lib/Db/BackupCode.php',
16
-    'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => $baseDir . '/../lib/Db/BackupCodeMapper.php',
17
-    'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => $baseDir . '/../lib/Event/CodesGenerated.php',
18
-    'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => $baseDir . '/../lib/Listener/ActivityPublisher.php',
19
-    'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => $baseDir . '/../lib/Listener/ClearNotifications.php',
20
-    'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => $baseDir . '/../lib/Listener/ProviderDisabled.php',
21
-    'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => $baseDir . '/../lib/Listener/ProviderEnabled.php',
22
-    'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => $baseDir . '/../lib/Listener/RegistryUpdater.php',
23
-    'OCA\\TwoFactorBackupCodes\\Listener\\UserDeleted' => $baseDir . '/../lib/Listener/UserDeleted.php',
24
-    'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => $baseDir . '/../lib/Migration/CheckBackupCodes.php',
25
-    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => $baseDir . '/../lib/Migration/Version1002Date20170607104347.php',
26
-    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => $baseDir . '/../lib/Migration/Version1002Date20170607113030.php',
27
-    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => $baseDir . '/../lib/Migration/Version1002Date20170919123342.php',
28
-    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => $baseDir . '/../lib/Migration/Version1002Date20170926101419.php',
29
-    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => $baseDir . '/../lib/Migration/Version1002Date20180821043638.php',
30
-    'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => $baseDir . '/../lib/Notifications/Notifier.php',
31
-    'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => $baseDir . '/../lib/Provider/BackupCodesProvider.php',
32
-    'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => $baseDir . '/../lib/Service/BackupCodeStorage.php',
33
-    'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php',
9
+    'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php',
10
+    'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php',
11
+    'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
12
+    'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => $baseDir.'/../lib/BackgroundJob/CheckBackupCodes.php',
13
+    'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => $baseDir.'/../lib/BackgroundJob/RememberBackupCodesJob.php',
14
+    'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => $baseDir.'/../lib/Controller/SettingsController.php',
15
+    'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => $baseDir.'/../lib/Db/BackupCode.php',
16
+    'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => $baseDir.'/../lib/Db/BackupCodeMapper.php',
17
+    'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => $baseDir.'/../lib/Event/CodesGenerated.php',
18
+    'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => $baseDir.'/../lib/Listener/ActivityPublisher.php',
19
+    'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => $baseDir.'/../lib/Listener/ClearNotifications.php',
20
+    'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => $baseDir.'/../lib/Listener/ProviderDisabled.php',
21
+    'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => $baseDir.'/../lib/Listener/ProviderEnabled.php',
22
+    'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => $baseDir.'/../lib/Listener/RegistryUpdater.php',
23
+    'OCA\\TwoFactorBackupCodes\\Listener\\UserDeleted' => $baseDir.'/../lib/Listener/UserDeleted.php',
24
+    'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => $baseDir.'/../lib/Migration/CheckBackupCodes.php',
25
+    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => $baseDir.'/../lib/Migration/Version1002Date20170607104347.php',
26
+    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => $baseDir.'/../lib/Migration/Version1002Date20170607113030.php',
27
+    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => $baseDir.'/../lib/Migration/Version1002Date20170919123342.php',
28
+    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => $baseDir.'/../lib/Migration/Version1002Date20170926101419.php',
29
+    'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => $baseDir.'/../lib/Migration/Version1002Date20180821043638.php',
30
+    'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => $baseDir.'/../lib/Notifications/Notifier.php',
31
+    'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => $baseDir.'/../lib/Provider/BackupCodesProvider.php',
32
+    'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => $baseDir.'/../lib/Service/BackupCodeStorage.php',
33
+    'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php',
34 34
 );
Please login to merge, or discard this patch.
apps/federation/templates/settings-admin.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
 				<?php if ((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
17 17
 					<span class="status success"></span>
18 18
 				<?php
19
-				} elseif (
20
-					(int)$trustedServer['status'] === TrustedServers::STATUS_PENDING ||
21
-					(int)$trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED
22
-				) { ?>
19
+                } elseif (
20
+                    (int)$trustedServer['status'] === TrustedServers::STATUS_PENDING ||
21
+                    (int)$trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED
22
+                ) { ?>
23 23
 					<span class="status indeterminate"></span>
24 24
 				<?php } else {?>
25 25
 					<span class="status error"></span>
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@  discard block
 block discarded – undo
17 17
 Util::addStyle('federation', 'settings-admin');
18 18
 
19 19
 $urlGenerator = Server::get(IURLGenerator::class);
20
-$documentationLink = $urlGenerator->linkToDocs('admin-sharing-federated') . '#configuring-trusted-nextcloud-servers';
20
+$documentationLink = $urlGenerator->linkToDocs('admin-sharing-federated').'#configuring-trusted-nextcloud-servers';
21 21
 $documentationLabel = $l->t('External documentation for Federated Cloud Sharing');
22 22
 ?>
23 23
 <div id="ocFederationSettings" class="section">
24 24
 	<h2>
25 25
 		<?php p($l->t('Trusted servers')); ?>
26 26
 		<a target="_blank" rel="noreferrer noopener" class="icon-info"
27
-			title="<?php p($documentationLabel);?>"
27
+			title="<?php p($documentationLabel); ?>"
28 28
 			href="<?php p($documentationLink); ?>"></a>
29 29
 	</h2>
30 30
 	<p class="settings-hint"><?php p($l->t('Federation allows you to connect with other trusted servers to exchange the account directory. For example this will be used to auto-complete external accounts for federated sharing. It is not necessary to add a server as trusted server in order to create a federated share.')); ?></p>
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
 	<ul id="listOfTrustedServers">
34 34
 		<?php foreach ($_['trustedServers'] as $trustedServer) { ?>
35 35
 			<li id="<?php p($trustedServer['id']); ?>">
36
-				<?php if ((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
36
+				<?php if ((int) $trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
37 37
 					<span class="status success"></span>
38 38
 				<?php
39 39
 				} elseif (
40
-					(int)$trustedServer['status'] === TrustedServers::STATUS_PENDING ||
41
-					(int)$trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED
40
+					(int) $trustedServer['status'] === TrustedServers::STATUS_PENDING ||
41
+					(int) $trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED
42 42
 				) { ?>
43 43
 					<span class="status indeterminate"></span>
44 44
 				<?php } else {?>
Please login to merge, or discard this patch.
lib/private/Collaboration/Resources/ProviderManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 				try {
58 58
 					$this->providerInstances[] = $this->serverContainer->query($provider);
59 59
 				} catch (QueryException $e) {
60
-					$this->logger->error("Could not query resource provider $provider: " . $e->getMessage(), [
60
+					$this->logger->error("Could not query resource provider $provider: ".$e->getMessage(), [
61 61
 						'exception' => $e,
62 62
 					]);
63 63
 				}
Please login to merge, or discard this patch.
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -15,36 +15,36 @@
 block discarded – undo
15 15
 use Psr\Log\LoggerInterface;
16 16
 
17 17
 class ProviderManager implements IProviderManager {
18
-	/** @var string[] */
19
-	protected array $providers = [];
20
-
21
-	/** @var IProvider[] */
22
-	protected array $providerInstances = [];
23
-
24
-	public function __construct(
25
-		protected IServerContainer $serverContainer,
26
-		protected LoggerInterface $logger,
27
-	) {
28
-	}
29
-
30
-	public function getResourceProviders(): array {
31
-		if ($this->providers !== []) {
32
-			foreach ($this->providers as $provider) {
33
-				try {
34
-					$this->providerInstances[] = $this->serverContainer->query($provider);
35
-				} catch (QueryException $e) {
36
-					$this->logger->error("Could not query resource provider $provider: " . $e->getMessage(), [
37
-						'exception' => $e,
38
-					]);
39
-				}
40
-			}
41
-			$this->providers = [];
42
-		}
43
-
44
-		return $this->providerInstances;
45
-	}
46
-
47
-	public function registerResourceProvider(string $provider): void {
48
-		$this->providers[] = $provider;
49
-	}
18
+    /** @var string[] */
19
+    protected array $providers = [];
20
+
21
+    /** @var IProvider[] */
22
+    protected array $providerInstances = [];
23
+
24
+    public function __construct(
25
+        protected IServerContainer $serverContainer,
26
+        protected LoggerInterface $logger,
27
+    ) {
28
+    }
29
+
30
+    public function getResourceProviders(): array {
31
+        if ($this->providers !== []) {
32
+            foreach ($this->providers as $provider) {
33
+                try {
34
+                    $this->providerInstances[] = $this->serverContainer->query($provider);
35
+                } catch (QueryException $e) {
36
+                    $this->logger->error("Could not query resource provider $provider: " . $e->getMessage(), [
37
+                        'exception' => $e,
38
+                    ]);
39
+                }
40
+            }
41
+            $this->providers = [];
42
+        }
43
+
44
+        return $this->providerInstances;
45
+    }
46
+
47
+    public function registerResourceProvider(string $provider): void {
48
+        $this->providers[] = $provider;
49
+    }
50 50
 }
Please login to merge, or discard this patch.
core/BackgroundJobs/CheckForUserCertificates.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
 	 */
55 55
 	public function run($arguments): void {
56 56
 		$uploadList = [];
57
-		$this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList) {
57
+		$this->userManager->callForSeenUsers(function(IUser $user) use (&$uploadList) {
58 58
 			$userId = $user->getUID();
59 59
 			try {
60 60
 				\OC_Util::setupFS($userId);
61
-				$filesExternalUploadsFolder = $this->rootFolder->get($userId . '/files_external/uploads');
61
+				$filesExternalUploadsFolder = $this->rootFolder->get($userId.'/files_external/uploads');
62 62
 			} catch (NotFoundException $e) {
63 63
 				\OC_Util::tearDownFS();
64 64
 				return;
Please login to merge, or discard this patch.
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -18,43 +18,43 @@
 block discarded – undo
18 18
 use OCP\IUserManager;
19 19
 
20 20
 class CheckForUserCertificates extends QueuedJob {
21
-	public function __construct(
22
-		protected IConfig $config,
23
-		private IUserManager $userManager,
24
-		private IRootFolder $rootFolder,
25
-		ITimeFactory $time,
26
-	) {
27
-		parent::__construct($time);
28
-	}
21
+    public function __construct(
22
+        protected IConfig $config,
23
+        private IUserManager $userManager,
24
+        private IRootFolder $rootFolder,
25
+        ITimeFactory $time,
26
+    ) {
27
+        parent::__construct($time);
28
+    }
29 29
 
30
-	/**
31
-	 * Checks all user directories for old user uploaded certificates
32
-	 */
33
-	public function run($arguments): void {
34
-		$uploadList = [];
35
-		$this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList) {
36
-			$userId = $user->getUID();
37
-			try {
38
-				\OC_Util::setupFS($userId);
39
-				$filesExternalUploadsFolder = $this->rootFolder->get($userId . '/files_external/uploads');
40
-			} catch (NotFoundException $e) {
41
-				\OC_Util::tearDownFS();
42
-				return;
43
-			}
44
-			if ($filesExternalUploadsFolder instanceof Folder) {
45
-				$files = $filesExternalUploadsFolder->getDirectoryListing();
46
-				foreach ($files as $file) {
47
-					$filename = $file->getName();
48
-					$uploadList[] = "$userId/files_external/uploads/$filename";
49
-				}
50
-			}
51
-			\OC_Util::tearDownFS();
52
-		});
30
+    /**
31
+     * Checks all user directories for old user uploaded certificates
32
+     */
33
+    public function run($arguments): void {
34
+        $uploadList = [];
35
+        $this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList) {
36
+            $userId = $user->getUID();
37
+            try {
38
+                \OC_Util::setupFS($userId);
39
+                $filesExternalUploadsFolder = $this->rootFolder->get($userId . '/files_external/uploads');
40
+            } catch (NotFoundException $e) {
41
+                \OC_Util::tearDownFS();
42
+                return;
43
+            }
44
+            if ($filesExternalUploadsFolder instanceof Folder) {
45
+                $files = $filesExternalUploadsFolder->getDirectoryListing();
46
+                foreach ($files as $file) {
47
+                    $filename = $file->getName();
48
+                    $uploadList[] = "$userId/files_external/uploads/$filename";
49
+                }
50
+            }
51
+            \OC_Util::tearDownFS();
52
+        });
53 53
 
54
-		if (empty($uploadList)) {
55
-			$this->config->deleteAppValue('files_external', 'user_certificate_scan');
56
-		} else {
57
-			$this->config->setAppValue('files_external', 'user_certificate_scan', json_encode($uploadList));
58
-		}
59
-	}
54
+        if (empty($uploadList)) {
55
+            $this->config->deleteAppValue('files_external', 'user_certificate_scan');
56
+        } else {
57
+            $this->config->setAppValue('files_external', 'user_certificate_scan', json_encode($uploadList));
58
+        }
59
+    }
60 60
 }
Please login to merge, or discard this patch.
apps/dav/lib/Listener/CalendarDeletionDefaultUpdaterListener.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 			$this->logger->debug('Default user calendar reset');
79 79
 		} catch (Throwable $e) {
80 80
 			// Any error with activities shouldn't abort the calendar deletion, so we just log it
81
-			$this->logger->error('Error generating activities for a deleted calendar: ' . $e->getMessage(), [
81
+			$this->logger->error('Error generating activities for a deleted calendar: '.$e->getMessage(), [
82 82
 				'exception' => $e,
83 83
 			]);
84 84
 		}
Please login to merge, or discard this patch.
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -20,43 +20,43 @@
 block discarded – undo
20 20
  */
21 21
 class CalendarDeletionDefaultUpdaterListener implements IEventListener {
22 22
 
23
-	public function __construct(
24
-		private IConfig $config,
25
-		private LoggerInterface $logger,
26
-	) {
27
-	}
28
-
29
-	/**
30
-	 * In case the user has set their default calendar to the deleted one
31
-	 */
32
-	public function handle(Event $event): void {
33
-		if (!($event instanceof CalendarDeletedEvent)) {
34
-			// Not what we subscribed to
35
-			return;
36
-		}
37
-
38
-		try {
39
-			$principalUri = $event->getCalendarData()['principaluri'];
40
-			if (!str_starts_with($principalUri, 'principals/users')) {
41
-				$this->logger->debug('Default calendar needs no update because the deleted calendar does not belong to a user principal');
42
-				return;
43
-			}
44
-
45
-			[, $uid] = \Sabre\Uri\split($principalUri);
46
-			$uri = $event->getCalendarData()['uri'];
47
-			if ($this->config->getUserValue($uid, 'dav', 'defaultCalendar') !== $uri) {
48
-				$this->logger->debug('Default calendar needs no update because the deleted calendar is no the user\'s default one');
49
-				return;
50
-			}
51
-
52
-			$this->config->deleteUserValue($uid, 'dav', 'defaultCalendar');
53
-
54
-			$this->logger->debug('Default user calendar reset');
55
-		} catch (Throwable $e) {
56
-			// Any error with activities shouldn't abort the calendar deletion, so we just log it
57
-			$this->logger->error('Error generating activities for a deleted calendar: ' . $e->getMessage(), [
58
-				'exception' => $e,
59
-			]);
60
-		}
61
-	}
23
+    public function __construct(
24
+        private IConfig $config,
25
+        private LoggerInterface $logger,
26
+    ) {
27
+    }
28
+
29
+    /**
30
+     * In case the user has set their default calendar to the deleted one
31
+     */
32
+    public function handle(Event $event): void {
33
+        if (!($event instanceof CalendarDeletedEvent)) {
34
+            // Not what we subscribed to
35
+            return;
36
+        }
37
+
38
+        try {
39
+            $principalUri = $event->getCalendarData()['principaluri'];
40
+            if (!str_starts_with($principalUri, 'principals/users')) {
41
+                $this->logger->debug('Default calendar needs no update because the deleted calendar does not belong to a user principal');
42
+                return;
43
+            }
44
+
45
+            [, $uid] = \Sabre\Uri\split($principalUri);
46
+            $uri = $event->getCalendarData()['uri'];
47
+            if ($this->config->getUserValue($uid, 'dav', 'defaultCalendar') !== $uri) {
48
+                $this->logger->debug('Default calendar needs no update because the deleted calendar is no the user\'s default one');
49
+                return;
50
+            }
51
+
52
+            $this->config->deleteUserValue($uid, 'dav', 'defaultCalendar');
53
+
54
+            $this->logger->debug('Default user calendar reset');
55
+        } catch (Throwable $e) {
56
+            // Any error with activities shouldn't abort the calendar deletion, so we just log it
57
+            $this->logger->error('Error generating activities for a deleted calendar: ' . $e->getMessage(), [
58
+                'exception' => $e,
59
+            ]);
60
+        }
61
+    }
62 62
 }
Please login to merge, or discard this patch.