Passed
Push — master ( 5d3ecf...8fc877 )
by Morris
11:31 queued 12s
created
apps/files/composer/composer/autoload_static.php 1 patch
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -6,73 +6,73 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitFiles
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\Files\\' => 10,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\Files\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'OCA\\Files\\Activity\\FavoriteProvider' => __DIR__ . '/..' . '/../lib/Activity/FavoriteProvider.php',
25
-        'OCA\\Files\\Activity\\Filter\\Favorites' => __DIR__ . '/..' . '/../lib/Activity/Filter/Favorites.php',
26
-        'OCA\\Files\\Activity\\Filter\\FileChanges' => __DIR__ . '/..' . '/../lib/Activity/Filter/FileChanges.php',
27
-        'OCA\\Files\\Activity\\Helper' => __DIR__ . '/..' . '/../lib/Activity/Helper.php',
28
-        'OCA\\Files\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php',
29
-        'OCA\\Files\\Activity\\Settings\\FavoriteAction' => __DIR__ . '/..' . '/../lib/Activity/Settings/FavoriteAction.php',
30
-        'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileActivitySettings.php',
31
-        'OCA\\Files\\Activity\\Settings\\FileChanged' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileChanged.php',
32
-        'OCA\\Files\\Activity\\Settings\\FileCreated' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileCreated.php',
33
-        'OCA\\Files\\Activity\\Settings\\FileDeleted' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileDeleted.php',
34
-        'OCA\\Files\\Activity\\Settings\\FileFavorite' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileFavorite.php',
35
-        'OCA\\Files\\Activity\\Settings\\FileRestored' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileRestored.php',
36
-        'OCA\\Files\\App' => __DIR__ . '/..' . '/../lib/App.php',
37
-        'OCA\\Files\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
38
-        'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanupDirectEditingTokens.php',
39
-        'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanupFileLocks.php',
40
-        'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => __DIR__ . '/..' . '/../lib/BackgroundJob/DeleteOrphanedItems.php',
41
-        'OCA\\Files\\BackgroundJob\\ScanFiles' => __DIR__ . '/..' . '/../lib/BackgroundJob/ScanFiles.php',
42
-        'OCA\\Files\\BackgroundJob\\TransferOwnership' => __DIR__ . '/..' . '/../lib/BackgroundJob/TransferOwnership.php',
43
-        'OCA\\Files\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php',
44
-        'OCA\\Files\\Collaboration\\Resources\\Listener' => __DIR__ . '/..' . '/../lib/Collaboration/Resources/Listener.php',
45
-        'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => __DIR__ . '/..' . '/../lib/Collaboration/Resources/ResourceProvider.php',
46
-        'OCA\\Files\\Command\\DeleteOrphanedFiles' => __DIR__ . '/..' . '/../lib/Command/DeleteOrphanedFiles.php',
47
-        'OCA\\Files\\Command\\Scan' => __DIR__ . '/..' . '/../lib/Command/Scan.php',
48
-        'OCA\\Files\\Command\\ScanAppData' => __DIR__ . '/..' . '/../lib/Command/ScanAppData.php',
49
-        'OCA\\Files\\Command\\TransferOwnership' => __DIR__ . '/..' . '/../lib/Command/TransferOwnership.php',
50
-        'OCA\\Files\\Controller\\AjaxController' => __DIR__ . '/..' . '/../lib/Controller/AjaxController.php',
51
-        'OCA\\Files\\Controller\\ApiController' => __DIR__ . '/..' . '/../lib/Controller/ApiController.php',
52
-        'OCA\\Files\\Controller\\DirectEditingController' => __DIR__ . '/..' . '/../lib/Controller/DirectEditingController.php',
53
-        'OCA\\Files\\Controller\\DirectEditingViewController' => __DIR__ . '/..' . '/../lib/Controller/DirectEditingViewController.php',
54
-        'OCA\\Files\\Controller\\TransferOwnershipController' => __DIR__ . '/..' . '/../lib/Controller/TransferOwnershipController.php',
55
-        'OCA\\Files\\Controller\\ViewController' => __DIR__ . '/..' . '/../lib/Controller/ViewController.php',
56
-        'OCA\\Files\\Db\\TransferOwnership' => __DIR__ . '/..' . '/../lib/Db/TransferOwnership.php',
57
-        'OCA\\Files\\Db\\TransferOwnershipMapper' => __DIR__ . '/..' . '/../lib/Db/TransferOwnershipMapper.php',
58
-        'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => __DIR__ . '/..' . '/../lib/Event/LoadAdditionalScriptsEvent.php',
59
-        'OCA\\Files\\Event\\LoadSidebar' => __DIR__ . '/..' . '/../lib/Event/LoadSidebar.php',
60
-        'OCA\\Files\\Exception\\TransferOwnershipException' => __DIR__ . '/..' . '/../lib/Exception/TransferOwnershipException.php',
61
-        'OCA\\Files\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php',
62
-        'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => __DIR__ . '/..' . '/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php',
63
-        'OCA\\Files\\Listener\\LoadSidebarListener' => __DIR__ . '/..' . '/../lib/Listener/LoadSidebarListener.php',
64
-        'OCA\\Files\\Migration\\Version11301Date20191205150729' => __DIR__ . '/..' . '/../lib/Migration/Version11301Date20191205150729.php',
65
-        'OCA\\Files\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php',
66
-        'OCA\\Files\\Search\\FilesSearchProvider' => __DIR__ . '/..' . '/../lib/Search/FilesSearchProvider.php',
67
-        'OCA\\Files\\Service\\DirectEditingService' => __DIR__ . '/..' . '/../lib/Service/DirectEditingService.php',
68
-        'OCA\\Files\\Service\\OwnershipTransferService' => __DIR__ . '/..' . '/../lib/Service/OwnershipTransferService.php',
69
-        'OCA\\Files\\Service\\TagService' => __DIR__ . '/..' . '/../lib/Service/TagService.php',
70
-        'OCA\\Files\\Settings\\PersonalSettings' => __DIR__ . '/..' . '/../lib/Settings/PersonalSettings.php',
23
+    public static $classMap = array(
24
+        'OCA\\Files\\Activity\\FavoriteProvider' => __DIR__.'/..'.'/../lib/Activity/FavoriteProvider.php',
25
+        'OCA\\Files\\Activity\\Filter\\Favorites' => __DIR__.'/..'.'/../lib/Activity/Filter/Favorites.php',
26
+        'OCA\\Files\\Activity\\Filter\\FileChanges' => __DIR__.'/..'.'/../lib/Activity/Filter/FileChanges.php',
27
+        'OCA\\Files\\Activity\\Helper' => __DIR__.'/..'.'/../lib/Activity/Helper.php',
28
+        'OCA\\Files\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php',
29
+        'OCA\\Files\\Activity\\Settings\\FavoriteAction' => __DIR__.'/..'.'/../lib/Activity/Settings/FavoriteAction.php',
30
+        'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => __DIR__.'/..'.'/../lib/Activity/Settings/FileActivitySettings.php',
31
+        'OCA\\Files\\Activity\\Settings\\FileChanged' => __DIR__.'/..'.'/../lib/Activity/Settings/FileChanged.php',
32
+        'OCA\\Files\\Activity\\Settings\\FileCreated' => __DIR__.'/..'.'/../lib/Activity/Settings/FileCreated.php',
33
+        'OCA\\Files\\Activity\\Settings\\FileDeleted' => __DIR__.'/..'.'/../lib/Activity/Settings/FileDeleted.php',
34
+        'OCA\\Files\\Activity\\Settings\\FileFavorite' => __DIR__.'/..'.'/../lib/Activity/Settings/FileFavorite.php',
35
+        'OCA\\Files\\Activity\\Settings\\FileRestored' => __DIR__.'/..'.'/../lib/Activity/Settings/FileRestored.php',
36
+        'OCA\\Files\\App' => __DIR__.'/..'.'/../lib/App.php',
37
+        'OCA\\Files\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
38
+        'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanupDirectEditingTokens.php',
39
+        'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanupFileLocks.php',
40
+        'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => __DIR__.'/..'.'/../lib/BackgroundJob/DeleteOrphanedItems.php',
41
+        'OCA\\Files\\BackgroundJob\\ScanFiles' => __DIR__.'/..'.'/../lib/BackgroundJob/ScanFiles.php',
42
+        'OCA\\Files\\BackgroundJob\\TransferOwnership' => __DIR__.'/..'.'/../lib/BackgroundJob/TransferOwnership.php',
43
+        'OCA\\Files\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php',
44
+        'OCA\\Files\\Collaboration\\Resources\\Listener' => __DIR__.'/..'.'/../lib/Collaboration/Resources/Listener.php',
45
+        'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => __DIR__.'/..'.'/../lib/Collaboration/Resources/ResourceProvider.php',
46
+        'OCA\\Files\\Command\\DeleteOrphanedFiles' => __DIR__.'/..'.'/../lib/Command/DeleteOrphanedFiles.php',
47
+        'OCA\\Files\\Command\\Scan' => __DIR__.'/..'.'/../lib/Command/Scan.php',
48
+        'OCA\\Files\\Command\\ScanAppData' => __DIR__.'/..'.'/../lib/Command/ScanAppData.php',
49
+        'OCA\\Files\\Command\\TransferOwnership' => __DIR__.'/..'.'/../lib/Command/TransferOwnership.php',
50
+        'OCA\\Files\\Controller\\AjaxController' => __DIR__.'/..'.'/../lib/Controller/AjaxController.php',
51
+        'OCA\\Files\\Controller\\ApiController' => __DIR__.'/..'.'/../lib/Controller/ApiController.php',
52
+        'OCA\\Files\\Controller\\DirectEditingController' => __DIR__.'/..'.'/../lib/Controller/DirectEditingController.php',
53
+        'OCA\\Files\\Controller\\DirectEditingViewController' => __DIR__.'/..'.'/../lib/Controller/DirectEditingViewController.php',
54
+        'OCA\\Files\\Controller\\TransferOwnershipController' => __DIR__.'/..'.'/../lib/Controller/TransferOwnershipController.php',
55
+        'OCA\\Files\\Controller\\ViewController' => __DIR__.'/..'.'/../lib/Controller/ViewController.php',
56
+        'OCA\\Files\\Db\\TransferOwnership' => __DIR__.'/..'.'/../lib/Db/TransferOwnership.php',
57
+        'OCA\\Files\\Db\\TransferOwnershipMapper' => __DIR__.'/..'.'/../lib/Db/TransferOwnershipMapper.php',
58
+        'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => __DIR__.'/..'.'/../lib/Event/LoadAdditionalScriptsEvent.php',
59
+        'OCA\\Files\\Event\\LoadSidebar' => __DIR__.'/..'.'/../lib/Event/LoadSidebar.php',
60
+        'OCA\\Files\\Exception\\TransferOwnershipException' => __DIR__.'/..'.'/../lib/Exception/TransferOwnershipException.php',
61
+        'OCA\\Files\\Helper' => __DIR__.'/..'.'/../lib/Helper.php',
62
+        'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => __DIR__.'/..'.'/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php',
63
+        'OCA\\Files\\Listener\\LoadSidebarListener' => __DIR__.'/..'.'/../lib/Listener/LoadSidebarListener.php',
64
+        'OCA\\Files\\Migration\\Version11301Date20191205150729' => __DIR__.'/..'.'/../lib/Migration/Version11301Date20191205150729.php',
65
+        'OCA\\Files\\Notification\\Notifier' => __DIR__.'/..'.'/../lib/Notification/Notifier.php',
66
+        'OCA\\Files\\Search\\FilesSearchProvider' => __DIR__.'/..'.'/../lib/Search/FilesSearchProvider.php',
67
+        'OCA\\Files\\Service\\DirectEditingService' => __DIR__.'/..'.'/../lib/Service/DirectEditingService.php',
68
+        'OCA\\Files\\Service\\OwnershipTransferService' => __DIR__.'/..'.'/../lib/Service/OwnershipTransferService.php',
69
+        'OCA\\Files\\Service\\TagService' => __DIR__.'/..'.'/../lib/Service/TagService.php',
70
+        'OCA\\Files\\Settings\\PersonalSettings' => __DIR__.'/..'.'/../lib/Settings/PersonalSettings.php',
71 71
     );
72 72
 
73 73
     public static function getInitializer(ClassLoader $loader)
74 74
     {
75
-        return \Closure::bind(function () use ($loader) {
75
+        return \Closure::bind(function() use ($loader) {
76 76
             $loader->prefixLengthsPsr4 = ComposerStaticInitFiles::$prefixLengthsPsr4;
77 77
             $loader->prefixDirsPsr4 = ComposerStaticInitFiles::$prefixDirsPsr4;
78 78
             $loader->classMap = ComposerStaticInitFiles::$classMap;
Please login to merge, or discard this patch.
apps/files/composer/composer/autoload_classmap.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -6,51 +6,51 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Files\\Activity\\FavoriteProvider' => $baseDir . '/../lib/Activity/FavoriteProvider.php',
10
-    'OCA\\Files\\Activity\\Filter\\Favorites' => $baseDir . '/../lib/Activity/Filter/Favorites.php',
11
-    'OCA\\Files\\Activity\\Filter\\FileChanges' => $baseDir . '/../lib/Activity/Filter/FileChanges.php',
12
-    'OCA\\Files\\Activity\\Helper' => $baseDir . '/../lib/Activity/Helper.php',
13
-    'OCA\\Files\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php',
14
-    'OCA\\Files\\Activity\\Settings\\FavoriteAction' => $baseDir . '/../lib/Activity/Settings/FavoriteAction.php',
15
-    'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => $baseDir . '/../lib/Activity/Settings/FileActivitySettings.php',
16
-    'OCA\\Files\\Activity\\Settings\\FileChanged' => $baseDir . '/../lib/Activity/Settings/FileChanged.php',
17
-    'OCA\\Files\\Activity\\Settings\\FileCreated' => $baseDir . '/../lib/Activity/Settings/FileCreated.php',
18
-    'OCA\\Files\\Activity\\Settings\\FileDeleted' => $baseDir . '/../lib/Activity/Settings/FileDeleted.php',
19
-    'OCA\\Files\\Activity\\Settings\\FileFavorite' => $baseDir . '/../lib/Activity/Settings/FileFavorite.php',
20
-    'OCA\\Files\\Activity\\Settings\\FileRestored' => $baseDir . '/../lib/Activity/Settings/FileRestored.php',
21
-    'OCA\\Files\\App' => $baseDir . '/../lib/App.php',
22
-    'OCA\\Files\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
23
-    'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => $baseDir . '/../lib/BackgroundJob/CleanupDirectEditingTokens.php',
24
-    'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => $baseDir . '/../lib/BackgroundJob/CleanupFileLocks.php',
25
-    'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => $baseDir . '/../lib/BackgroundJob/DeleteOrphanedItems.php',
26
-    'OCA\\Files\\BackgroundJob\\ScanFiles' => $baseDir . '/../lib/BackgroundJob/ScanFiles.php',
27
-    'OCA\\Files\\BackgroundJob\\TransferOwnership' => $baseDir . '/../lib/BackgroundJob/TransferOwnership.php',
28
-    'OCA\\Files\\Capabilities' => $baseDir . '/../lib/Capabilities.php',
29
-    'OCA\\Files\\Collaboration\\Resources\\Listener' => $baseDir . '/../lib/Collaboration/Resources/Listener.php',
30
-    'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => $baseDir . '/../lib/Collaboration/Resources/ResourceProvider.php',
31
-    'OCA\\Files\\Command\\DeleteOrphanedFiles' => $baseDir . '/../lib/Command/DeleteOrphanedFiles.php',
32
-    'OCA\\Files\\Command\\Scan' => $baseDir . '/../lib/Command/Scan.php',
33
-    'OCA\\Files\\Command\\ScanAppData' => $baseDir . '/../lib/Command/ScanAppData.php',
34
-    'OCA\\Files\\Command\\TransferOwnership' => $baseDir . '/../lib/Command/TransferOwnership.php',
35
-    'OCA\\Files\\Controller\\AjaxController' => $baseDir . '/../lib/Controller/AjaxController.php',
36
-    'OCA\\Files\\Controller\\ApiController' => $baseDir . '/../lib/Controller/ApiController.php',
37
-    'OCA\\Files\\Controller\\DirectEditingController' => $baseDir . '/../lib/Controller/DirectEditingController.php',
38
-    'OCA\\Files\\Controller\\DirectEditingViewController' => $baseDir . '/../lib/Controller/DirectEditingViewController.php',
39
-    'OCA\\Files\\Controller\\TransferOwnershipController' => $baseDir . '/../lib/Controller/TransferOwnershipController.php',
40
-    'OCA\\Files\\Controller\\ViewController' => $baseDir . '/../lib/Controller/ViewController.php',
41
-    'OCA\\Files\\Db\\TransferOwnership' => $baseDir . '/../lib/Db/TransferOwnership.php',
42
-    'OCA\\Files\\Db\\TransferOwnershipMapper' => $baseDir . '/../lib/Db/TransferOwnershipMapper.php',
43
-    'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => $baseDir . '/../lib/Event/LoadAdditionalScriptsEvent.php',
44
-    'OCA\\Files\\Event\\LoadSidebar' => $baseDir . '/../lib/Event/LoadSidebar.php',
45
-    'OCA\\Files\\Exception\\TransferOwnershipException' => $baseDir . '/../lib/Exception/TransferOwnershipException.php',
46
-    'OCA\\Files\\Helper' => $baseDir . '/../lib/Helper.php',
47
-    'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => $baseDir . '/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php',
48
-    'OCA\\Files\\Listener\\LoadSidebarListener' => $baseDir . '/../lib/Listener/LoadSidebarListener.php',
49
-    'OCA\\Files\\Migration\\Version11301Date20191205150729' => $baseDir . '/../lib/Migration/Version11301Date20191205150729.php',
50
-    'OCA\\Files\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php',
51
-    'OCA\\Files\\Search\\FilesSearchProvider' => $baseDir . '/../lib/Search/FilesSearchProvider.php',
52
-    'OCA\\Files\\Service\\DirectEditingService' => $baseDir . '/../lib/Service/DirectEditingService.php',
53
-    'OCA\\Files\\Service\\OwnershipTransferService' => $baseDir . '/../lib/Service/OwnershipTransferService.php',
54
-    'OCA\\Files\\Service\\TagService' => $baseDir . '/../lib/Service/TagService.php',
55
-    'OCA\\Files\\Settings\\PersonalSettings' => $baseDir . '/../lib/Settings/PersonalSettings.php',
9
+    'OCA\\Files\\Activity\\FavoriteProvider' => $baseDir.'/../lib/Activity/FavoriteProvider.php',
10
+    'OCA\\Files\\Activity\\Filter\\Favorites' => $baseDir.'/../lib/Activity/Filter/Favorites.php',
11
+    'OCA\\Files\\Activity\\Filter\\FileChanges' => $baseDir.'/../lib/Activity/Filter/FileChanges.php',
12
+    'OCA\\Files\\Activity\\Helper' => $baseDir.'/../lib/Activity/Helper.php',
13
+    'OCA\\Files\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php',
14
+    'OCA\\Files\\Activity\\Settings\\FavoriteAction' => $baseDir.'/../lib/Activity/Settings/FavoriteAction.php',
15
+    'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => $baseDir.'/../lib/Activity/Settings/FileActivitySettings.php',
16
+    'OCA\\Files\\Activity\\Settings\\FileChanged' => $baseDir.'/../lib/Activity/Settings/FileChanged.php',
17
+    'OCA\\Files\\Activity\\Settings\\FileCreated' => $baseDir.'/../lib/Activity/Settings/FileCreated.php',
18
+    'OCA\\Files\\Activity\\Settings\\FileDeleted' => $baseDir.'/../lib/Activity/Settings/FileDeleted.php',
19
+    'OCA\\Files\\Activity\\Settings\\FileFavorite' => $baseDir.'/../lib/Activity/Settings/FileFavorite.php',
20
+    'OCA\\Files\\Activity\\Settings\\FileRestored' => $baseDir.'/../lib/Activity/Settings/FileRestored.php',
21
+    'OCA\\Files\\App' => $baseDir.'/../lib/App.php',
22
+    'OCA\\Files\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
23
+    'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => $baseDir.'/../lib/BackgroundJob/CleanupDirectEditingTokens.php',
24
+    'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => $baseDir.'/../lib/BackgroundJob/CleanupFileLocks.php',
25
+    'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => $baseDir.'/../lib/BackgroundJob/DeleteOrphanedItems.php',
26
+    'OCA\\Files\\BackgroundJob\\ScanFiles' => $baseDir.'/../lib/BackgroundJob/ScanFiles.php',
27
+    'OCA\\Files\\BackgroundJob\\TransferOwnership' => $baseDir.'/../lib/BackgroundJob/TransferOwnership.php',
28
+    'OCA\\Files\\Capabilities' => $baseDir.'/../lib/Capabilities.php',
29
+    'OCA\\Files\\Collaboration\\Resources\\Listener' => $baseDir.'/../lib/Collaboration/Resources/Listener.php',
30
+    'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => $baseDir.'/../lib/Collaboration/Resources/ResourceProvider.php',
31
+    'OCA\\Files\\Command\\DeleteOrphanedFiles' => $baseDir.'/../lib/Command/DeleteOrphanedFiles.php',
32
+    'OCA\\Files\\Command\\Scan' => $baseDir.'/../lib/Command/Scan.php',
33
+    'OCA\\Files\\Command\\ScanAppData' => $baseDir.'/../lib/Command/ScanAppData.php',
34
+    'OCA\\Files\\Command\\TransferOwnership' => $baseDir.'/../lib/Command/TransferOwnership.php',
35
+    'OCA\\Files\\Controller\\AjaxController' => $baseDir.'/../lib/Controller/AjaxController.php',
36
+    'OCA\\Files\\Controller\\ApiController' => $baseDir.'/../lib/Controller/ApiController.php',
37
+    'OCA\\Files\\Controller\\DirectEditingController' => $baseDir.'/../lib/Controller/DirectEditingController.php',
38
+    'OCA\\Files\\Controller\\DirectEditingViewController' => $baseDir.'/../lib/Controller/DirectEditingViewController.php',
39
+    'OCA\\Files\\Controller\\TransferOwnershipController' => $baseDir.'/../lib/Controller/TransferOwnershipController.php',
40
+    'OCA\\Files\\Controller\\ViewController' => $baseDir.'/../lib/Controller/ViewController.php',
41
+    'OCA\\Files\\Db\\TransferOwnership' => $baseDir.'/../lib/Db/TransferOwnership.php',
42
+    'OCA\\Files\\Db\\TransferOwnershipMapper' => $baseDir.'/../lib/Db/TransferOwnershipMapper.php',
43
+    'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => $baseDir.'/../lib/Event/LoadAdditionalScriptsEvent.php',
44
+    'OCA\\Files\\Event\\LoadSidebar' => $baseDir.'/../lib/Event/LoadSidebar.php',
45
+    'OCA\\Files\\Exception\\TransferOwnershipException' => $baseDir.'/../lib/Exception/TransferOwnershipException.php',
46
+    'OCA\\Files\\Helper' => $baseDir.'/../lib/Helper.php',
47
+    'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => $baseDir.'/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php',
48
+    'OCA\\Files\\Listener\\LoadSidebarListener' => $baseDir.'/../lib/Listener/LoadSidebarListener.php',
49
+    'OCA\\Files\\Migration\\Version11301Date20191205150729' => $baseDir.'/../lib/Migration/Version11301Date20191205150729.php',
50
+    'OCA\\Files\\Notification\\Notifier' => $baseDir.'/../lib/Notification/Notifier.php',
51
+    'OCA\\Files\\Search\\FilesSearchProvider' => $baseDir.'/../lib/Search/FilesSearchProvider.php',
52
+    'OCA\\Files\\Service\\DirectEditingService' => $baseDir.'/../lib/Service/DirectEditingService.php',
53
+    'OCA\\Files\\Service\\OwnershipTransferService' => $baseDir.'/../lib/Service/OwnershipTransferService.php',
54
+    'OCA\\Files\\Service\\TagService' => $baseDir.'/../lib/Service/TagService.php',
55
+    'OCA\\Files\\Settings\\PersonalSettings' => $baseDir.'/../lib/Settings/PersonalSettings.php',
56 56
 );
Please login to merge, or discard this patch.
lib/private/Server.php 1 patch
Spacing   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -259,10 +259,10 @@  discard block
 block discarded – undo
259 259
 		// To find out if we are running from CLI or not
260 260
 		$this->registerParameter('isCLI', \OC::$CLI);
261 261
 
262
-		$this->registerService(ContainerInterface::class, function (ContainerInterface $c) {
262
+		$this->registerService(ContainerInterface::class, function(ContainerInterface $c) {
263 263
 			return $c;
264 264
 		});
265
-		$this->registerService(\OCP\IServerContainer::class, function (ContainerInterface $c) {
265
+		$this->registerService(\OCP\IServerContainer::class, function(ContainerInterface $c) {
266 266
 			return $c;
267 267
 		});
268 268
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 		$this->registerAlias(IActionFactory::class, ActionFactory::class);
284 284
 
285 285
 
286
-		$this->registerService(IPreview::class, function (Server $c) {
286
+		$this->registerService(IPreview::class, function(Server $c) {
287 287
 			return new PreviewManager(
288 288
 				$c->getConfig(),
289 289
 				$c->getRootFolder(),
@@ -295,13 +295,13 @@  discard block
 block discarded – undo
295 295
 		});
296 296
 		$this->registerDeprecatedAlias('PreviewManager', IPreview::class);
297 297
 
298
-		$this->registerService(\OC\Preview\Watcher::class, function (Server $c) {
298
+		$this->registerService(\OC\Preview\Watcher::class, function(Server $c) {
299 299
 			return new \OC\Preview\Watcher(
300 300
 				new \OC\Preview\Storage\Root($c->getRootFolder(), $c->getSystemConfig(), 'preview')
301 301
 			);
302 302
 		});
303 303
 
304
-		$this->registerService(\OCP\Encryption\IManager::class, function (Server $c) {
304
+		$this->registerService(\OCP\Encryption\IManager::class, function(Server $c) {
305 305
 			$view = new View();
306 306
 			$util = new Encryption\Util(
307 307
 				$view,
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 		});
321 321
 		$this->registerDeprecatedAlias('EncryptionManager', \OCP\Encryption\IManager::class);
322 322
 
323
-		$this->registerService('EncryptionFileHelper', function (Server $c) {
323
+		$this->registerService('EncryptionFileHelper', function(Server $c) {
324 324
 			$util = new Encryption\Util(
325 325
 				new View(),
326 326
 				$c->getUserManager(),
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 			);
335 335
 		});
336 336
 
337
-		$this->registerService('EncryptionKeyStorage', function (Server $c) {
337
+		$this->registerService('EncryptionKeyStorage', function(Server $c) {
338 338
 			$view = new View();
339 339
 			$util = new Encryption\Util(
340 340
 				$view,
@@ -345,30 +345,30 @@  discard block
 block discarded – undo
345 345
 
346 346
 			return new Encryption\Keys\Storage($view, $util);
347 347
 		});
348
-		$this->registerService('TagMapper', function (Server $c) {
348
+		$this->registerService('TagMapper', function(Server $c) {
349 349
 			return new TagMapper($c->getDatabaseConnection());
350 350
 		});
351 351
 
352
-		$this->registerService(\OCP\ITagManager::class, function (Server $c) {
352
+		$this->registerService(\OCP\ITagManager::class, function(Server $c) {
353 353
 			$tagMapper = $c->query('TagMapper');
354 354
 			return new TagManager($tagMapper, $c->getUserSession());
355 355
 		});
356 356
 		$this->registerDeprecatedAlias('TagManager', \OCP\ITagManager::class);
357 357
 
358
-		$this->registerService('SystemTagManagerFactory', function (Server $c) {
358
+		$this->registerService('SystemTagManagerFactory', function(Server $c) {
359 359
 			$config = $c->getConfig();
360 360
 			$factoryClass = $config->getSystemValue('systemtags.managerFactory', SystemTagManagerFactory::class);
361 361
 			return new $factoryClass($this);
362 362
 		});
363
-		$this->registerService(ISystemTagManager::class, function (Server $c) {
363
+		$this->registerService(ISystemTagManager::class, function(Server $c) {
364 364
 			return $c->query('SystemTagManagerFactory')->getManager();
365 365
 		});
366 366
 		$this->registerDeprecatedAlias('SystemTagManager', ISystemTagManager::class);
367 367
 
368
-		$this->registerService(ISystemTagObjectMapper::class, function (Server $c) {
368
+		$this->registerService(ISystemTagObjectMapper::class, function(Server $c) {
369 369
 			return $c->query('SystemTagManagerFactory')->getObjectMapper();
370 370
 		});
371
-		$this->registerService('RootFolder', function (Server $c) {
371
+		$this->registerService('RootFolder', function(Server $c) {
372 372
 			$manager = \OC\Files\Filesystem::getMountManager(null);
373 373
 			$view = new View();
374 374
 			$root = new Root(
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 
386 386
 			return $root;
387 387
 		});
388
-		$this->registerService(HookConnector::class, function (Server $c) {
388
+		$this->registerService(HookConnector::class, function(Server $c) {
389 389
 			return new HookConnector(
390 390
 				$c->query(IRootFolder::class),
391 391
 				new View(),
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
 
397 397
 		$this->registerDeprecatedAlias('SystemTagObjectMapper', ISystemTagObjectMapper::class);
398 398
 
399
-		$this->registerService(IRootFolder::class, function (Server $c) {
400
-			return new LazyRoot(function () use ($c) {
399
+		$this->registerService(IRootFolder::class, function(Server $c) {
400
+			return new LazyRoot(function() use ($c) {
401 401
 				return $c->query('RootFolder');
402 402
 			});
403 403
 		});
@@ -406,44 +406,44 @@  discard block
 block discarded – undo
406 406
 		$this->registerDeprecatedAlias('UserManager', \OC\User\Manager::class);
407 407
 		$this->registerAlias(\OCP\IUserManager::class, \OC\User\Manager::class);
408 408
 
409
-		$this->registerService(\OCP\IGroupManager::class, function (Server $c) {
409
+		$this->registerService(\OCP\IGroupManager::class, function(Server $c) {
410 410
 			$groupManager = new \OC\Group\Manager($this->getUserManager(), $c->getEventDispatcher(), $this->getLogger());
411
-			$groupManager->listen('\OC\Group', 'preCreate', function ($gid) {
411
+			$groupManager->listen('\OC\Group', 'preCreate', function($gid) {
412 412
 				\OC_Hook::emit('OC_Group', 'pre_createGroup', ['run' => true, 'gid' => $gid]);
413 413
 
414 414
 				/** @var IEventDispatcher $dispatcher */
415 415
 				$dispatcher = $this->query(IEventDispatcher::class);
416 416
 				$dispatcher->dispatchTyped(new BeforeGroupCreatedEvent($gid));
417 417
 			});
418
-			$groupManager->listen('\OC\Group', 'postCreate', function (\OC\Group\Group $group) {
418
+			$groupManager->listen('\OC\Group', 'postCreate', function(\OC\Group\Group $group) {
419 419
 				\OC_Hook::emit('OC_User', 'post_createGroup', ['gid' => $group->getGID()]);
420 420
 
421 421
 				/** @var IEventDispatcher $dispatcher */
422 422
 				$dispatcher = $this->query(IEventDispatcher::class);
423 423
 				$dispatcher->dispatchTyped(new GroupCreatedEvent($group));
424 424
 			});
425
-			$groupManager->listen('\OC\Group', 'preDelete', function (\OC\Group\Group $group) {
425
+			$groupManager->listen('\OC\Group', 'preDelete', function(\OC\Group\Group $group) {
426 426
 				\OC_Hook::emit('OC_Group', 'pre_deleteGroup', ['run' => true, 'gid' => $group->getGID()]);
427 427
 
428 428
 				/** @var IEventDispatcher $dispatcher */
429 429
 				$dispatcher = $this->query(IEventDispatcher::class);
430 430
 				$dispatcher->dispatchTyped(new BeforeGroupDeletedEvent($group));
431 431
 			});
432
-			$groupManager->listen('\OC\Group', 'postDelete', function (\OC\Group\Group $group) {
432
+			$groupManager->listen('\OC\Group', 'postDelete', function(\OC\Group\Group $group) {
433 433
 				\OC_Hook::emit('OC_User', 'post_deleteGroup', ['gid' => $group->getGID()]);
434 434
 
435 435
 				/** @var IEventDispatcher $dispatcher */
436 436
 				$dispatcher = $this->query(IEventDispatcher::class);
437 437
 				$dispatcher->dispatchTyped(new GroupDeletedEvent($group));
438 438
 			});
439
-			$groupManager->listen('\OC\Group', 'preAddUser', function (\OC\Group\Group $group, \OC\User\User $user) {
439
+			$groupManager->listen('\OC\Group', 'preAddUser', function(\OC\Group\Group $group, \OC\User\User $user) {
440 440
 				\OC_Hook::emit('OC_Group', 'pre_addToGroup', ['run' => true, 'uid' => $user->getUID(), 'gid' => $group->getGID()]);
441 441
 
442 442
 				/** @var IEventDispatcher $dispatcher */
443 443
 				$dispatcher = $this->query(IEventDispatcher::class);
444 444
 				$dispatcher->dispatchTyped(new BeforeUserAddedEvent($group, $user));
445 445
 			});
446
-			$groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) {
446
+			$groupManager->listen('\OC\Group', 'postAddUser', function(\OC\Group\Group $group, \OC\User\User $user) {
447 447
 				\OC_Hook::emit('OC_Group', 'post_addToGroup', ['uid' => $user->getUID(), 'gid' => $group->getGID()]);
448 448
 				//Minimal fix to keep it backward compatible TODO: clean up all the GroupManager hooks
449 449
 				\OC_Hook::emit('OC_User', 'post_addToGroup', ['uid' => $user->getUID(), 'gid' => $group->getGID()]);
@@ -452,12 +452,12 @@  discard block
 block discarded – undo
452 452
 				$dispatcher = $this->query(IEventDispatcher::class);
453 453
 				$dispatcher->dispatchTyped(new UserAddedEvent($group, $user));
454 454
 			});
455
-			$groupManager->listen('\OC\Group', 'preRemoveUser', function (\OC\Group\Group $group, \OC\User\User $user) {
455
+			$groupManager->listen('\OC\Group', 'preRemoveUser', function(\OC\Group\Group $group, \OC\User\User $user) {
456 456
 				/** @var IEventDispatcher $dispatcher */
457 457
 				$dispatcher = $this->query(IEventDispatcher::class);
458 458
 				$dispatcher->dispatchTyped(new BeforeUserRemovedEvent($group, $user));
459 459
 			});
460
-			$groupManager->listen('\OC\Group', 'postRemoveUser', function (\OC\Group\Group $group, \OC\User\User $user) {
460
+			$groupManager->listen('\OC\Group', 'postRemoveUser', function(\OC\Group\Group $group, \OC\User\User $user) {
461 461
 				/** @var IEventDispatcher $dispatcher */
462 462
 				$dispatcher = $this->query(IEventDispatcher::class);
463 463
 				$dispatcher->dispatchTyped(new UserRemovedEvent($group, $user));
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 		});
467 467
 		$this->registerDeprecatedAlias('GroupManager', \OCP\IGroupManager::class);
468 468
 
469
-		$this->registerService(Store::class, function (Server $c) {
469
+		$this->registerService(Store::class, function(Server $c) {
470 470
 			$session = $c->getSession();
471 471
 			if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
472 472
 				$tokenProvider = $c->query(IProvider::class);
@@ -477,13 +477,13 @@  discard block
 block discarded – undo
477 477
 			return new Store($session, $logger, $tokenProvider);
478 478
 		});
479 479
 		$this->registerAlias(IStore::class, Store::class);
480
-		$this->registerService(Authentication\Token\DefaultTokenMapper::class, function (Server $c) {
480
+		$this->registerService(Authentication\Token\DefaultTokenMapper::class, function(Server $c) {
481 481
 			$dbConnection = $c->getDatabaseConnection();
482 482
 			return new Authentication\Token\DefaultTokenMapper($dbConnection);
483 483
 		});
484 484
 		$this->registerAlias(IProvider::class, Authentication\Token\Manager::class);
485 485
 
486
-		$this->registerService(\OC\User\Session::class, function (Server $c) {
486
+		$this->registerService(\OC\User\Session::class, function(Server $c) {
487 487
 			$manager = $c->getUserManager();
488 488
 			$session = new \OC\Session\Memory('');
489 489
 			$timeFactory = new TimeFactory();
@@ -508,14 +508,14 @@  discard block
 block discarded – undo
508 508
 				$c->getLogger(),
509 509
 				$c->query(IEventDispatcher::class)
510 510
 			);
511
-			$userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) {
511
+			$userSession->listen('\OC\User', 'preCreateUser', function($uid, $password) {
512 512
 				\OC_Hook::emit('OC_User', 'pre_createUser', ['run' => true, 'uid' => $uid, 'password' => $password]);
513 513
 
514 514
 				/** @var IEventDispatcher $dispatcher */
515 515
 				$dispatcher = $this->query(IEventDispatcher::class);
516 516
 				$dispatcher->dispatchTyped(new BeforeUserCreatedEvent($uid, $password));
517 517
 			});
518
-			$userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) {
518
+			$userSession->listen('\OC\User', 'postCreateUser', function($user, $password) {
519 519
 				/** @var $user \OC\User\User */
520 520
 				\OC_Hook::emit('OC_User', 'post_createUser', ['uid' => $user->getUID(), 'password' => $password]);
521 521
 
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 				$dispatcher = $this->query(IEventDispatcher::class);
524 524
 				$dispatcher->dispatchTyped(new UserCreatedEvent($user, $password));
525 525
 			});
526
-			$userSession->listen('\OC\User', 'preDelete', function ($user) use ($legacyDispatcher) {
526
+			$userSession->listen('\OC\User', 'preDelete', function($user) use ($legacyDispatcher) {
527 527
 				/** @var $user \OC\User\User */
528 528
 				\OC_Hook::emit('OC_User', 'pre_deleteUser', ['run' => true, 'uid' => $user->getUID()]);
529 529
 				$legacyDispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user));
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
 				$dispatcher = $this->query(IEventDispatcher::class);
533 533
 				$dispatcher->dispatchTyped(new BeforeUserDeletedEvent($user));
534 534
 			});
535
-			$userSession->listen('\OC\User', 'postDelete', function ($user) {
535
+			$userSession->listen('\OC\User', 'postDelete', function($user) {
536 536
 				/** @var $user \OC\User\User */
537 537
 				\OC_Hook::emit('OC_User', 'post_deleteUser', ['uid' => $user->getUID()]);
538 538
 
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 				$dispatcher = $this->query(IEventDispatcher::class);
541 541
 				$dispatcher->dispatchTyped(new UserDeletedEvent($user));
542 542
 			});
543
-			$userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) {
543
+			$userSession->listen('\OC\User', 'preSetPassword', function($user, $password, $recoveryPassword) {
544 544
 				/** @var $user \OC\User\User */
545 545
 				\OC_Hook::emit('OC_User', 'pre_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]);
546 546
 
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 				$dispatcher = $this->query(IEventDispatcher::class);
549 549
 				$dispatcher->dispatchTyped(new BeforePasswordUpdatedEvent($user, $password, $recoveryPassword));
550 550
 			});
551
-			$userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) {
551
+			$userSession->listen('\OC\User', 'postSetPassword', function($user, $password, $recoveryPassword) {
552 552
 				/** @var $user \OC\User\User */
553 553
 				\OC_Hook::emit('OC_User', 'post_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]);
554 554
 
@@ -556,14 +556,14 @@  discard block
 block discarded – undo
556 556
 				$dispatcher = $this->query(IEventDispatcher::class);
557 557
 				$dispatcher->dispatchTyped(new PasswordUpdatedEvent($user, $password, $recoveryPassword));
558 558
 			});
559
-			$userSession->listen('\OC\User', 'preLogin', function ($uid, $password) {
559
+			$userSession->listen('\OC\User', 'preLogin', function($uid, $password) {
560 560
 				\OC_Hook::emit('OC_User', 'pre_login', ['run' => true, 'uid' => $uid, 'password' => $password]);
561 561
 
562 562
 				/** @var IEventDispatcher $dispatcher */
563 563
 				$dispatcher = $this->query(IEventDispatcher::class);
564 564
 				$dispatcher->dispatchTyped(new BeforeUserLoggedInEvent($uid, $password));
565 565
 			});
566
-			$userSession->listen('\OC\User', 'postLogin', function ($user, $password, $isTokenLogin) {
566
+			$userSession->listen('\OC\User', 'postLogin', function($user, $password, $isTokenLogin) {
567 567
 				/** @var $user \OC\User\User */
568 568
 				\OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'isTokenLogin' => $isTokenLogin]);
569 569
 
@@ -571,12 +571,12 @@  discard block
 block discarded – undo
571 571
 				$dispatcher = $this->query(IEventDispatcher::class);
572 572
 				$dispatcher->dispatchTyped(new UserLoggedInEvent($user, $password, $isTokenLogin));
573 573
 			});
574
-			$userSession->listen('\OC\User', 'preRememberedLogin', function ($uid) {
574
+			$userSession->listen('\OC\User', 'preRememberedLogin', function($uid) {
575 575
 				/** @var IEventDispatcher $dispatcher */
576 576
 				$dispatcher = $this->query(IEventDispatcher::class);
577 577
 				$dispatcher->dispatchTyped(new BeforeUserLoggedInWithCookieEvent($uid));
578 578
 			});
579
-			$userSession->listen('\OC\User', 'postRememberedLogin', function ($user, $password) {
579
+			$userSession->listen('\OC\User', 'postRememberedLogin', function($user, $password) {
580 580
 				/** @var $user \OC\User\User */
581 581
 				\OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'password' => $password]);
582 582
 
@@ -584,19 +584,19 @@  discard block
 block discarded – undo
584 584
 				$dispatcher = $this->query(IEventDispatcher::class);
585 585
 				$dispatcher->dispatchTyped(new UserLoggedInWithCookieEvent($user, $password));
586 586
 			});
587
-			$userSession->listen('\OC\User', 'logout', function ($user) {
587
+			$userSession->listen('\OC\User', 'logout', function($user) {
588 588
 				\OC_Hook::emit('OC_User', 'logout', []);
589 589
 
590 590
 				/** @var IEventDispatcher $dispatcher */
591 591
 				$dispatcher = $this->query(IEventDispatcher::class);
592 592
 				$dispatcher->dispatchTyped(new BeforeUserLoggedOutEvent($user));
593 593
 			});
594
-			$userSession->listen('\OC\User', 'postLogout', function ($user) {
594
+			$userSession->listen('\OC\User', 'postLogout', function($user) {
595 595
 				/** @var IEventDispatcher $dispatcher */
596 596
 				$dispatcher = $this->query(IEventDispatcher::class);
597 597
 				$dispatcher->dispatchTyped(new UserLoggedOutEvent($user));
598 598
 			});
599
-			$userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) {
599
+			$userSession->listen('\OC\User', 'changeUser', function($user, $feature, $value, $oldValue) {
600 600
 				/** @var $user \OC\User\User */
601 601
 				\OC_Hook::emit('OC_User', 'changeUser', ['run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue]);
602 602
 
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 		$this->registerAlias(INavigationManager::class, \OC\NavigationManager::class);
615 615
 		$this->registerDeprecatedAlias('NavigationManager', INavigationManager::class);
616 616
 
617
-		$this->registerService(\OC\AllConfig::class, function (Server $c) {
617
+		$this->registerService(\OC\AllConfig::class, function(Server $c) {
618 618
 			return new \OC\AllConfig(
619 619
 				$c->getSystemConfig()
620 620
 			);
@@ -622,18 +622,18 @@  discard block
 block discarded – undo
622 622
 		$this->registerDeprecatedAlias('AllConfig', \OC\AllConfig::class);
623 623
 		$this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class);
624 624
 
625
-		$this->registerService(\OC\SystemConfig::class, function ($c) use ($config) {
625
+		$this->registerService(\OC\SystemConfig::class, function($c) use ($config) {
626 626
 			return new \OC\SystemConfig($config);
627 627
 		});
628 628
 		$this->registerDeprecatedAlias('SystemConfig', \OC\SystemConfig::class);
629 629
 
630
-		$this->registerService(\OC\AppConfig::class, function (Server $c) {
630
+		$this->registerService(\OC\AppConfig::class, function(Server $c) {
631 631
 			return new \OC\AppConfig($c->getDatabaseConnection());
632 632
 		});
633 633
 		$this->registerDeprecatedAlias('AppConfig', \OC\AppConfig::class);
634 634
 		$this->registerAlias(IAppConfig::class, \OC\AppConfig::class);
635 635
 
636
-		$this->registerService(IFactory::class, function (Server $c) {
636
+		$this->registerService(IFactory::class, function(Server $c) {
637 637
 			return new \OC\L10N\Factory(
638 638
 				$c->getConfig(),
639 639
 				$c->getRequest(),
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 		});
644 644
 		$this->registerDeprecatedAlias('L10NFactory', IFactory::class);
645 645
 
646
-		$this->registerService(IURLGenerator::class, function (Server $c) {
646
+		$this->registerService(IURLGenerator::class, function(Server $c) {
647 647
 			$config = $c->getConfig();
648 648
 			$cacheFactory = $c->getMemCacheFactory();
649 649
 			$request = $c->getRequest();
@@ -658,12 +658,12 @@  discard block
 block discarded – undo
658 658
 		$this->registerDeprecatedAlias('AppFetcher', AppFetcher::class);
659 659
 		$this->registerDeprecatedAlias('CategoryFetcher', CategoryFetcher::class);
660 660
 
661
-		$this->registerService(ICache::class, function ($c) {
661
+		$this->registerService(ICache::class, function($c) {
662 662
 			return new Cache\File();
663 663
 		});
664 664
 		$this->registerDeprecatedAlias('UserCache', ICache::class);
665 665
 
666
-		$this->registerService(Factory::class, function (Server $c) {
666
+		$this->registerService(Factory::class, function(Server $c) {
667 667
 			$arrayCacheFactory = new \OC\Memcache\Factory('', $c->getLogger(),
668 668
 				ArrayCache::class,
669 669
 				ArrayCache::class,
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
 				$version = implode(',', $v);
678 678
 				$instanceId = \OC_Util::getInstanceId();
679 679
 				$path = \OC::$SERVERROOT;
680
-				$prefix = md5($instanceId . '-' . $version . '-' . $path);
680
+				$prefix = md5($instanceId.'-'.$version.'-'.$path);
681 681
 				return new \OC\Memcache\Factory($prefix, $c->getLogger(),
682 682
 					$config->getSystemValue('memcache.local', null),
683 683
 					$config->getSystemValue('memcache.distributed', null),
@@ -689,12 +689,12 @@  discard block
 block discarded – undo
689 689
 		$this->registerDeprecatedAlias('MemCacheFactory', Factory::class);
690 690
 		$this->registerAlias(ICacheFactory::class, Factory::class);
691 691
 
692
-		$this->registerService('RedisFactory', function (Server $c) {
692
+		$this->registerService('RedisFactory', function(Server $c) {
693 693
 			$systemConfig = $c->getSystemConfig();
694 694
 			return new RedisFactory($systemConfig);
695 695
 		});
696 696
 
697
-		$this->registerService(\OCP\Activity\IManager::class, function (Server $c) {
697
+		$this->registerService(\OCP\Activity\IManager::class, function(Server $c) {
698 698
 			$l10n = $this->get(IFactory::class)->get('activity');
699 699
 			return new \OC\Activity\Manager(
700 700
 				$c->getRequest(),
@@ -706,14 +706,14 @@  discard block
 block discarded – undo
706 706
 		});
707 707
 		$this->registerDeprecatedAlias('ActivityManager', \OCP\Activity\IManager::class);
708 708
 
709
-		$this->registerService(\OCP\Activity\IEventMerger::class, function (Server $c) {
709
+		$this->registerService(\OCP\Activity\IEventMerger::class, function(Server $c) {
710 710
 			return new \OC\Activity\EventMerger(
711 711
 				$c->getL10N('lib')
712 712
 			);
713 713
 		});
714 714
 		$this->registerAlias(IValidator::class, Validator::class);
715 715
 
716
-		$this->registerService(AvatarManager::class, function (Server $c) {
716
+		$this->registerService(AvatarManager::class, function(Server $c) {
717 717
 			return new AvatarManager(
718 718
 				$c->query(\OC\User\Manager::class),
719 719
 				$c->getAppDataDir('avatar'),
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
 		$this->registerAlias(\OCP\Support\CrashReport\IRegistry::class, \OC\Support\CrashReport\Registry::class);
729 729
 		$this->registerAlias(\OCP\Support\Subscription\IRegistry::class, \OC\Support\Subscription\Registry::class);
730 730
 
731
-		$this->registerService(\OC\Log::class, function (Server $c) {
731
+		$this->registerService(\OC\Log::class, function(Server $c) {
732 732
 			$logType = $c->query(AllConfig::class)->getSystemValue('log_type', 'file');
733 733
 			$factory = new LogFactory($c, $this->getSystemConfig());
734 734
 			$logger = $factory->get($logType);
@@ -741,11 +741,11 @@  discard block
 block discarded – undo
741 741
 		// PSR-3 logger
742 742
 		$this->registerAlias(LoggerInterface::class, PsrLoggerAdapter::class);
743 743
 
744
-		$this->registerService(ILogFactory::class, function (Server $c) {
744
+		$this->registerService(ILogFactory::class, function(Server $c) {
745 745
 			return new LogFactory($c, $this->getSystemConfig());
746 746
 		});
747 747
 
748
-		$this->registerService(IJobList::class, function (Server $c) {
748
+		$this->registerService(IJobList::class, function(Server $c) {
749 749
 			$config = $c->getConfig();
750 750
 			return new \OC\BackgroundJob\JobList(
751 751
 				$c->getDatabaseConnection(),
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 		});
756 756
 		$this->registerDeprecatedAlias('JobList', IJobList::class);
757 757
 
758
-		$this->registerService(IRouter::class, function (Server $c) {
758
+		$this->registerService(IRouter::class, function(Server $c) {
759 759
 			$cacheFactory = $c->getMemCacheFactory();
760 760
 			$logger = $c->getLogger();
761 761
 			if ($cacheFactory->isLocalCacheAvailable()) {
@@ -767,39 +767,39 @@  discard block
 block discarded – undo
767 767
 		});
768 768
 		$this->registerDeprecatedAlias('Router', IRouter::class);
769 769
 
770
-		$this->registerService(ISearch::class, function ($c) {
770
+		$this->registerService(ISearch::class, function($c) {
771 771
 			return new Search();
772 772
 		});
773 773
 		$this->registerDeprecatedAlias('Search', ISearch::class);
774 774
 
775
-		$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) {
775
+		$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function($c) {
776 776
 			return new \OC\Security\RateLimiting\Backend\MemoryCache(
777 777
 				$this->getMemCacheFactory(),
778 778
 				new \OC\AppFramework\Utility\TimeFactory()
779 779
 			);
780 780
 		});
781 781
 
782
-		$this->registerService(\OCP\Security\ISecureRandom::class, function ($c) {
782
+		$this->registerService(\OCP\Security\ISecureRandom::class, function($c) {
783 783
 			return new SecureRandom();
784 784
 		});
785 785
 		$this->registerDeprecatedAlias('SecureRandom', \OCP\Security\ISecureRandom::class);
786 786
 
787
-		$this->registerService(ICrypto::class, function (Server $c) {
787
+		$this->registerService(ICrypto::class, function(Server $c) {
788 788
 			return new Crypto($c->getConfig(), $c->getSecureRandom());
789 789
 		});
790 790
 		$this->registerDeprecatedAlias('Crypto', ICrypto::class);
791 791
 
792
-		$this->registerService(IHasher::class, function (Server $c) {
792
+		$this->registerService(IHasher::class, function(Server $c) {
793 793
 			return new Hasher($c->getConfig());
794 794
 		});
795 795
 		$this->registerDeprecatedAlias('Hasher', IHasher::class);
796 796
 
797
-		$this->registerService(ICredentialsManager::class, function (Server $c) {
797
+		$this->registerService(ICredentialsManager::class, function(Server $c) {
798 798
 			return new CredentialsManager($c->getCrypto(), $c->getDatabaseConnection());
799 799
 		});
800 800
 		$this->registerDeprecatedAlias('CredentialsManager', ICredentialsManager::class);
801 801
 
802
-		$this->registerService(IDBConnection::class, function (Server $c) {
802
+		$this->registerService(IDBConnection::class, function(Server $c) {
803 803
 			$systemConfig = $c->getSystemConfig();
804 804
 			$factory = new \OC\DB\ConnectionFactory($systemConfig);
805 805
 			$type = $systemConfig->getValue('dbtype', 'sqlite');
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
 		$this->registerDeprecatedAlias('DatabaseConnection', IDBConnection::class);
815 815
 
816 816
 
817
-		$this->registerService(IClientService::class, function (Server $c) {
817
+		$this->registerService(IClientService::class, function(Server $c) {
818 818
 			$user = \OC_User::getUser();
819 819
 			$uid = $user ? $user : null;
820 820
 			return new ClientService(
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
 			);
831 831
 		});
832 832
 		$this->registerDeprecatedAlias('HttpClientService', IClientService::class);
833
-		$this->registerService(IEventLogger::class, function (Server $c) {
833
+		$this->registerService(IEventLogger::class, function(Server $c) {
834 834
 			$eventLogger = new EventLogger();
835 835
 			if ($c->getSystemConfig()->getValue('debug', false)) {
836 836
 				// In debug mode, module is being activated by default
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
 		});
841 841
 		$this->registerDeprecatedAlias('EventLogger', IEventLogger::class);
842 842
 
843
-		$this->registerService(IQueryLogger::class, function (Server $c) {
843
+		$this->registerService(IQueryLogger::class, function(Server $c) {
844 844
 			$queryLogger = new QueryLogger();
845 845
 			if ($c->getSystemConfig()->getValue('debug', false)) {
846 846
 				// In debug mode, module is being activated by default
@@ -850,7 +850,7 @@  discard block
 block discarded – undo
850 850
 		});
851 851
 		$this->registerDeprecatedAlias('QueryLogger', IQueryLogger::class);
852 852
 
853
-		$this->registerService(TempManager::class, function (Server $c) {
853
+		$this->registerService(TempManager::class, function(Server $c) {
854 854
 			return new TempManager(
855 855
 				$c->getLogger(),
856 856
 				$c->getConfig()
@@ -859,7 +859,7 @@  discard block
 block discarded – undo
859 859
 		$this->registerDeprecatedAlias('TempManager', TempManager::class);
860 860
 		$this->registerAlias(ITempManager::class, TempManager::class);
861 861
 
862
-		$this->registerService(AppManager::class, function (Server $c) {
862
+		$this->registerService(AppManager::class, function(Server $c) {
863 863
 			return new \OC\App\AppManager(
864 864
 				$c->getUserSession(),
865 865
 				$c->getConfig(),
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
 		$this->registerDeprecatedAlias('AppManager', AppManager::class);
874 874
 		$this->registerAlias(IAppManager::class, AppManager::class);
875 875
 
876
-		$this->registerService(IDateTimeZone::class, function (Server $c) {
876
+		$this->registerService(IDateTimeZone::class, function(Server $c) {
877 877
 			return new DateTimeZone(
878 878
 				$c->getConfig(),
879 879
 				$c->getSession()
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
 		});
882 882
 		$this->registerDeprecatedAlias('DateTimeZone', IDateTimeZone::class);
883 883
 
884
-		$this->registerService(IDateTimeFormatter::class, function (Server $c) {
884
+		$this->registerService(IDateTimeFormatter::class, function(Server $c) {
885 885
 			$language = $c->getConfig()->getUserValue($c->getSession()->get('user_id'), 'core', 'lang', null);
886 886
 
887 887
 			return new DateTimeFormatter(
@@ -891,7 +891,7 @@  discard block
 block discarded – undo
891 891
 		});
892 892
 		$this->registerDeprecatedAlias('DateTimeFormatter', IDateTimeFormatter::class);
893 893
 
894
-		$this->registerService(IUserMountCache::class, function (Server $c) {
894
+		$this->registerService(IUserMountCache::class, function(Server $c) {
895 895
 			$mountCache = new UserMountCache($c->getDatabaseConnection(), $c->getUserManager(), $c->getLogger());
896 896
 			$listener = new UserMountCacheListener($mountCache);
897 897
 			$listener->listen($c->getUserManager());
@@ -899,7 +899,7 @@  discard block
 block discarded – undo
899 899
 		});
900 900
 		$this->registerDeprecatedAlias('UserMountCache', IUserMountCache::class);
901 901
 
902
-		$this->registerService(IMountProviderCollection::class, function (Server $c) {
902
+		$this->registerService(IMountProviderCollection::class, function(Server $c) {
903 903
 			$loader = \OC\Files\Filesystem::getLoader();
904 904
 			$mountCache = $c->query(IUserMountCache::class);
905 905
 			$manager = new \OC\Files\Config\MountProviderCollection($loader, $mountCache);
@@ -917,10 +917,10 @@  discard block
 block discarded – undo
917 917
 		});
918 918
 		$this->registerDeprecatedAlias('MountConfigManager', IMountProviderCollection::class);
919 919
 
920
-		$this->registerService('IniWrapper', function ($c) {
920
+		$this->registerService('IniWrapper', function($c) {
921 921
 			return new IniGetWrapper();
922 922
 		});
923
-		$this->registerService('AsyncCommandBus', function (Server $c) {
923
+		$this->registerService('AsyncCommandBus', function(Server $c) {
924 924
 			$busClass = $c->getConfig()->getSystemValue('commandbus');
925 925
 			if ($busClass) {
926 926
 				[$app, $class] = explode('::', $busClass, 2);
@@ -936,10 +936,10 @@  discard block
 block discarded – undo
936 936
 			}
937 937
 		});
938 938
 		$this->registerAlias(IBus::class, 'AsyncCommandBus');
939
-		$this->registerService('TrustedDomainHelper', function ($c) {
939
+		$this->registerService('TrustedDomainHelper', function($c) {
940 940
 			return new TrustedDomainHelper($this->getConfig());
941 941
 		});
942
-		$this->registerService(Throttler::class, function (Server $c) {
942
+		$this->registerService(Throttler::class, function(Server $c) {
943 943
 			return new Throttler(
944 944
 				$c->getDatabaseConnection(),
945 945
 				new TimeFactory(),
@@ -948,7 +948,7 @@  discard block
 block discarded – undo
948 948
 			);
949 949
 		});
950 950
 		$this->registerDeprecatedAlias('Throttler', Throttler::class);
951
-		$this->registerService('IntegrityCodeChecker', function (Server $c) {
951
+		$this->registerService('IntegrityCodeChecker', function(Server $c) {
952 952
 			// IConfig and IAppManager requires a working database. This code
953 953
 			// might however be called when ownCloud is not yet setup.
954 954
 			if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
 				$c->getMimeTypeDetector()
971 971
 			);
972 972
 		});
973
-		$this->registerService(\OCP\IRequest::class, function ($c) {
973
+		$this->registerService(\OCP\IRequest::class, function($c) {
974 974
 			if (isset($this['urlParams'])) {
975 975
 				$urlParams = $this['urlParams'];
976 976
 			} else {
@@ -1006,7 +1006,7 @@  discard block
 block discarded – undo
1006 1006
 		});
1007 1007
 		$this->registerDeprecatedAlias('Request', \OCP\IRequest::class);
1008 1008
 
1009
-		$this->registerService(IMailer::class, function (Server $c) {
1009
+		$this->registerService(IMailer::class, function(Server $c) {
1010 1010
 			return new Mailer(
1011 1011
 				$c->getConfig(),
1012 1012
 				$c->getLogger(),
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
 		});
1020 1020
 		$this->registerDeprecatedAlias('Mailer', IMailer::class);
1021 1021
 
1022
-		$this->registerService('LDAPProvider', function (Server $c) {
1022
+		$this->registerService('LDAPProvider', function(Server $c) {
1023 1023
 			$config = $c->getConfig();
1024 1024
 			$factoryClass = $config->getSystemValue('ldapProviderFactory', null);
1025 1025
 			if (is_null($factoryClass)) {
@@ -1029,7 +1029,7 @@  discard block
 block discarded – undo
1029 1029
 			$factory = new $factoryClass($this);
1030 1030
 			return $factory->getLDAPProvider();
1031 1031
 		});
1032
-		$this->registerService(ILockingProvider::class, function (Server $c) {
1032
+		$this->registerService(ILockingProvider::class, function(Server $c) {
1033 1033
 			$ini = $c->getIniWrapper();
1034 1034
 			$config = $c->getConfig();
1035 1035
 			$ttl = $config->getSystemValue('filelocking.ttl', max(3600, $ini->getNumeric('max_execution_time')));
@@ -1052,31 +1052,31 @@  discard block
 block discarded – undo
1052 1052
 		});
1053 1053
 		$this->registerDeprecatedAlias('LockingProvider', ILockingProvider::class);
1054 1054
 
1055
-		$this->registerService(IMountManager::class, function () {
1055
+		$this->registerService(IMountManager::class, function() {
1056 1056
 			return new \OC\Files\Mount\Manager();
1057 1057
 		});
1058 1058
 		$this->registerDeprecatedAlias('MountManager', IMountManager::class);
1059 1059
 
1060
-		$this->registerService(IMimeTypeDetector::class, function (Server $c) {
1060
+		$this->registerService(IMimeTypeDetector::class, function(Server $c) {
1061 1061
 			return new \OC\Files\Type\Detection(
1062 1062
 				$c->getURLGenerator(),
1063 1063
 				$c->getLogger(),
1064 1064
 				\OC::$configDir,
1065
-				\OC::$SERVERROOT . '/resources/config/'
1065
+				\OC::$SERVERROOT.'/resources/config/'
1066 1066
 			);
1067 1067
 		});
1068 1068
 		$this->registerDeprecatedAlias('MimeTypeDetector', IMimeTypeDetector::class);
1069 1069
 
1070
-		$this->registerService(IMimeTypeLoader::class, function (Server $c) {
1070
+		$this->registerService(IMimeTypeLoader::class, function(Server $c) {
1071 1071
 			return new \OC\Files\Type\Loader(
1072 1072
 				$c->getDatabaseConnection()
1073 1073
 			);
1074 1074
 		});
1075 1075
 		$this->registerDeprecatedAlias('MimeTypeLoader', IMimeTypeLoader::class);
1076
-		$this->registerService(BundleFetcher::class, function () {
1076
+		$this->registerService(BundleFetcher::class, function() {
1077 1077
 			return new BundleFetcher($this->getL10N('lib'));
1078 1078
 		});
1079
-		$this->registerService(\OCP\Notification\IManager::class, function (Server $c) {
1079
+		$this->registerService(\OCP\Notification\IManager::class, function(Server $c) {
1080 1080
 			return new Manager(
1081 1081
 				$c->query(IValidator::class),
1082 1082
 				$c->getLogger()
@@ -1084,26 +1084,26 @@  discard block
 block discarded – undo
1084 1084
 		});
1085 1085
 		$this->registerDeprecatedAlias('NotificationManager', \OCP\Notification\IManager::class);
1086 1086
 
1087
-		$this->registerService(CapabilitiesManager::class, function (Server $c) {
1087
+		$this->registerService(CapabilitiesManager::class, function(Server $c) {
1088 1088
 			$manager = new CapabilitiesManager($c->getLogger());
1089
-			$manager->registerCapability(function () use ($c) {
1089
+			$manager->registerCapability(function() use ($c) {
1090 1090
 				return new \OC\OCS\CoreCapabilities($c->getConfig());
1091 1091
 			});
1092
-			$manager->registerCapability(function () use ($c) {
1092
+			$manager->registerCapability(function() use ($c) {
1093 1093
 				return $c->query(\OC\Security\Bruteforce\Capabilities::class);
1094 1094
 			});
1095 1095
 			return $manager;
1096 1096
 		});
1097 1097
 		$this->registerDeprecatedAlias('CapabilitiesManager', CapabilitiesManager::class);
1098 1098
 
1099
-		$this->registerService(ICommentsManager::class, function (Server $c) {
1099
+		$this->registerService(ICommentsManager::class, function(Server $c) {
1100 1100
 			$config = $c->getConfig();
1101 1101
 			$factoryClass = $config->getSystemValue('comments.managerFactory', CommentsManagerFactory::class);
1102 1102
 			/** @var \OCP\Comments\ICommentsManagerFactory $factory */
1103 1103
 			$factory = new $factoryClass($this);
1104 1104
 			$manager = $factory->getManager();
1105 1105
 
1106
-			$manager->registerDisplayNameResolver('user', function ($id) use ($c) {
1106
+			$manager->registerDisplayNameResolver('user', function($id) use ($c) {
1107 1107
 				$manager = $c->getUserManager();
1108 1108
 				$user = $manager->get($id);
1109 1109
 				if (is_null($user)) {
@@ -1119,7 +1119,7 @@  discard block
 block discarded – undo
1119 1119
 		});
1120 1120
 		$this->registerDeprecatedAlias('CommentsManager', ICommentsManager::class);
1121 1121
 
1122
-		$this->registerService('ThemingDefaults', function (Server $c) {
1122
+		$this->registerService('ThemingDefaults', function(Server $c) {
1123 1123
 			/*
1124 1124
 			 * Dark magic for autoloader.
1125 1125
 			 * If we do a class_exists it will try to load the class which will
@@ -1147,7 +1147,7 @@  discard block
 block discarded – undo
1147 1147
 			}
1148 1148
 			return new \OC_Defaults();
1149 1149
 		});
1150
-		$this->registerService(SCSSCacher::class, function (Server $c) {
1150
+		$this->registerService(SCSSCacher::class, function(Server $c) {
1151 1151
 			return new SCSSCacher(
1152 1152
 				$c->getLogger(),
1153 1153
 				$c->query(\OC\Files\AppData\Factory::class),
@@ -1160,7 +1160,7 @@  discard block
 block discarded – undo
1160 1160
 				new TimeFactory()
1161 1161
 			);
1162 1162
 		});
1163
-		$this->registerService(JSCombiner::class, function (Server $c) {
1163
+		$this->registerService(JSCombiner::class, function(Server $c) {
1164 1164
 			return new JSCombiner(
1165 1165
 				$c->getAppDataDir('js'),
1166 1166
 				$c->getURLGenerator(),
@@ -1173,7 +1173,7 @@  discard block
 block discarded – undo
1173 1173
 		$this->registerDeprecatedAlias('EventDispatcher', \OC\EventDispatcher\SymfonyAdapter::class);
1174 1174
 		$this->registerAlias(EventDispatcherInterface::class, \OC\EventDispatcher\SymfonyAdapter::class);
1175 1175
 
1176
-		$this->registerService('CryptoWrapper', function (Server $c) {
1176
+		$this->registerService('CryptoWrapper', function(Server $c) {
1177 1177
 			// FIXME: Instantiiated here due to cyclic dependency
1178 1178
 			$request = new Request(
1179 1179
 				[
@@ -1198,7 +1198,7 @@  discard block
 block discarded – undo
1198 1198
 				$request
1199 1199
 			);
1200 1200
 		});
1201
-		$this->registerService(CsrfTokenManager::class, function (Server $c) {
1201
+		$this->registerService(CsrfTokenManager::class, function(Server $c) {
1202 1202
 			$tokenGenerator = new CsrfTokenGenerator($c->getSecureRandom());
1203 1203
 
1204 1204
 			return new CsrfTokenManager(
@@ -1207,20 +1207,20 @@  discard block
 block discarded – undo
1207 1207
 			);
1208 1208
 		});
1209 1209
 		$this->registerDeprecatedAlias('CsrfTokenManager', CsrfTokenManager::class);
1210
-		$this->registerService(SessionStorage::class, function (Server $c) {
1210
+		$this->registerService(SessionStorage::class, function(Server $c) {
1211 1211
 			return new SessionStorage($c->getSession());
1212 1212
 		});
1213 1213
 		$this->registerAlias(\OCP\Security\IContentSecurityPolicyManager::class, ContentSecurityPolicyManager::class);
1214 1214
 		$this->registerDeprecatedAlias('ContentSecurityPolicyManager', ContentSecurityPolicyManager::class);
1215 1215
 
1216
-		$this->registerService('ContentSecurityPolicyNonceManager', function (Server $c) {
1216
+		$this->registerService('ContentSecurityPolicyNonceManager', function(Server $c) {
1217 1217
 			return new ContentSecurityPolicyNonceManager(
1218 1218
 				$c->getCsrfTokenManager(),
1219 1219
 				$c->getRequest()
1220 1220
 			);
1221 1221
 		});
1222 1222
 
1223
-		$this->registerService(\OCP\Share\IManager::class, function (Server $c) {
1223
+		$this->registerService(\OCP\Share\IManager::class, function(Server $c) {
1224 1224
 			$config = $c->getConfig();
1225 1225
 			$factoryClass = $config->getSystemValue('sharing.managerFactory', ProviderFactory::class);
1226 1226
 			/** @var \OCP\Share\IProviderFactory $factory */
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
 		});
1250 1250
 		$this->registerDeprecatedAlias('ShareManager', \OCP\Share\IManager::class);
1251 1251
 
1252
-		$this->registerService(\OCP\Collaboration\Collaborators\ISearch::class, function (Server $c) {
1252
+		$this->registerService(\OCP\Collaboration\Collaborators\ISearch::class, function(Server $c) {
1253 1253
 			$instance = new Collaboration\Collaborators\Search($c);
1254 1254
 
1255 1255
 			// register default plugins
@@ -1269,7 +1269,7 @@  discard block
 block discarded – undo
1269 1269
 		$this->registerAlias(\OCP\Collaboration\Resources\IProviderManager::class, \OC\Collaboration\Resources\ProviderManager::class);
1270 1270
 		$this->registerAlias(\OCP\Collaboration\Resources\IManager::class, \OC\Collaboration\Resources\Manager::class);
1271 1271
 
1272
-		$this->registerService('SettingsManager', function (Server $c) {
1272
+		$this->registerService('SettingsManager', function(Server $c) {
1273 1273
 			$manager = new \OC\Settings\Manager(
1274 1274
 				$c->getLogger(),
1275 1275
 				$c->getL10NFactory(),
@@ -1278,34 +1278,34 @@  discard block
 block discarded – undo
1278 1278
 			);
1279 1279
 			return $manager;
1280 1280
 		});
1281
-		$this->registerService(\OC\Files\AppData\Factory::class, function (Server $c) {
1281
+		$this->registerService(\OC\Files\AppData\Factory::class, function(Server $c) {
1282 1282
 			return new \OC\Files\AppData\Factory(
1283 1283
 				$c->getRootFolder(),
1284 1284
 				$c->getSystemConfig()
1285 1285
 			);
1286 1286
 		});
1287 1287
 
1288
-		$this->registerService('LockdownManager', function (Server $c) {
1289
-			return new LockdownManager(function () use ($c) {
1288
+		$this->registerService('LockdownManager', function(Server $c) {
1289
+			return new LockdownManager(function() use ($c) {
1290 1290
 				return $c->getSession();
1291 1291
 			});
1292 1292
 		});
1293 1293
 
1294
-		$this->registerService(\OCP\OCS\IDiscoveryService::class, function (Server $c) {
1294
+		$this->registerService(\OCP\OCS\IDiscoveryService::class, function(Server $c) {
1295 1295
 			return new DiscoveryService($c->getMemCacheFactory(), $c->getHTTPClientService());
1296 1296
 		});
1297 1297
 
1298
-		$this->registerService(ICloudIdManager::class, function (Server $c) {
1298
+		$this->registerService(ICloudIdManager::class, function(Server $c) {
1299 1299
 			return new CloudIdManager();
1300 1300
 		});
1301 1301
 
1302 1302
 		$this->registerAlias(\OCP\GlobalScale\IConfig::class, \OC\GlobalScale\Config::class);
1303 1303
 
1304
-		$this->registerService(ICloudFederationProviderManager::class, function (Server $c) {
1304
+		$this->registerService(ICloudFederationProviderManager::class, function(Server $c) {
1305 1305
 			return new CloudFederationProviderManager($c->getAppManager(), $c->getHTTPClientService(), $c->getCloudIdManager(), $c->getLogger());
1306 1306
 		});
1307 1307
 
1308
-		$this->registerService(ICloudFederationFactory::class, function (Server $c) {
1308
+		$this->registerService(ICloudFederationFactory::class, function(Server $c) {
1309 1309
 			return new CloudFederationFactory();
1310 1310
 		});
1311 1311
 
@@ -1315,24 +1315,24 @@  discard block
 block discarded – undo
1315 1315
 		$this->registerAlias(\OCP\AppFramework\Utility\ITimeFactory::class, \OC\AppFramework\Utility\TimeFactory::class);
1316 1316
 		$this->registerDeprecatedAlias('TimeFactory', \OCP\AppFramework\Utility\ITimeFactory::class);
1317 1317
 
1318
-		$this->registerService(Defaults::class, function (Server $c) {
1318
+		$this->registerService(Defaults::class, function(Server $c) {
1319 1319
 			return new Defaults(
1320 1320
 				$c->getThemingDefaults()
1321 1321
 			);
1322 1322
 		});
1323 1323
 		$this->registerDeprecatedAlias('Defaults', \OCP\Defaults::class);
1324 1324
 
1325
-		$this->registerService(\OCP\ISession::class, function (SimpleContainer $c) {
1325
+		$this->registerService(\OCP\ISession::class, function(SimpleContainer $c) {
1326 1326
 			return $c->query(\OCP\IUserSession::class)->getSession();
1327 1327
 		});
1328 1328
 
1329
-		$this->registerService(IShareHelper::class, function (Server $c) {
1329
+		$this->registerService(IShareHelper::class, function(Server $c) {
1330 1330
 			return new ShareHelper(
1331 1331
 				$c->query(\OCP\Share\IManager::class)
1332 1332
 			);
1333 1333
 		});
1334 1334
 
1335
-		$this->registerService(Installer::class, function (Server $c) {
1335
+		$this->registerService(Installer::class, function(Server $c) {
1336 1336
 			return new Installer(
1337 1337
 				$c->getAppFetcher(),
1338 1338
 				$c->getHTTPClientService(),
@@ -1343,16 +1343,16 @@  discard block
 block discarded – undo
1343 1343
 			);
1344 1344
 		});
1345 1345
 
1346
-		$this->registerService(IApiFactory::class, function (Server $c) {
1346
+		$this->registerService(IApiFactory::class, function(Server $c) {
1347 1347
 			return new ApiFactory($c->getHTTPClientService());
1348 1348
 		});
1349 1349
 
1350
-		$this->registerService(IInstanceFactory::class, function (Server $c) {
1350
+		$this->registerService(IInstanceFactory::class, function(Server $c) {
1351 1351
 			$memcacheFactory = $c->getMemCacheFactory();
1352 1352
 			return new InstanceFactory($memcacheFactory->createLocal('remoteinstance.'), $c->getHTTPClientService());
1353 1353
 		});
1354 1354
 
1355
-		$this->registerService(IContactsStore::class, function (Server $c) {
1355
+		$this->registerService(IContactsStore::class, function(Server $c) {
1356 1356
 			return new ContactsStore(
1357 1357
 				$c->getContactsManager(),
1358 1358
 				$c->getConfig(),
@@ -1363,7 +1363,7 @@  discard block
 block discarded – undo
1363 1363
 		$this->registerAlias(IContactsStore::class, ContactsStore::class);
1364 1364
 		$this->registerAlias(IAccountManager::class, AccountManager::class);
1365 1365
 
1366
-		$this->registerService(IStorageFactory::class, function () {
1366
+		$this->registerService(IStorageFactory::class, function() {
1367 1367
 			return new StorageFactory();
1368 1368
 		});
1369 1369
 
@@ -1414,7 +1414,7 @@  discard block
 block discarded – undo
1414 1414
 		$dispatcher = $this->getEventDispatcher();
1415 1415
 
1416 1416
 		// Delete avatar on user deletion
1417
-		$dispatcher->addListener('OCP\IUser::preDelete', function (GenericEvent $e) {
1417
+		$dispatcher->addListener('OCP\IUser::preDelete', function(GenericEvent $e) {
1418 1418
 			$logger = $this->getLogger();
1419 1419
 			$manager = $this->getAvatarManager();
1420 1420
 			/** @var IUser $user */
@@ -1427,11 +1427,11 @@  discard block
 block discarded – undo
1427 1427
 				// no avatar to remove
1428 1428
 			} catch (\Exception $e) {
1429 1429
 				// Ignore exceptions
1430
-				$logger->info('Could not cleanup avatar of ' . $user->getUID());
1430
+				$logger->info('Could not cleanup avatar of '.$user->getUID());
1431 1431
 			}
1432 1432
 		});
1433 1433
 
1434
-		$dispatcher->addListener('OCP\IUser::changeUser', function (GenericEvent $e) {
1434
+		$dispatcher->addListener('OCP\IUser::changeUser', function(GenericEvent $e) {
1435 1435
 			$manager = $this->getAvatarManager();
1436 1436
 			/** @var IUser $user */
1437 1437
 			$user = $e->getSubject();
@@ -2336,11 +2336,11 @@  discard block
 block discarded – undo
2336 2336
 	}
2337 2337
 
2338 2338
 	private function registerDeprecatedAlias(string $alias, string $target) {
2339
-		$this->registerService($alias, function (ContainerInterface $container) use ($target, $alias) {
2339
+		$this->registerService($alias, function(ContainerInterface $container) use ($target, $alias) {
2340 2340
 			try {
2341 2341
 				/** @var ILogger $logger */
2342 2342
 				$logger = $container->get(ILogger::class);
2343
-				$logger->debug('The requested alias "' . $alias . '" is depreacted. Please request "' . $target . '" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']);
2343
+				$logger->debug('The requested alias "'.$alias.'" is depreacted. Please request "'.$target.'" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']);
2344 2344
 			} catch (ContainerExceptionInterface $e) {
2345 2345
 				// Could not get logger. Continue
2346 2346
 			}
Please login to merge, or discard this patch.