@@ -67,7 +67,7 @@ |
||
67 | 67 | return []; |
68 | 68 | } |
69 | 69 | |
70 | - return array_map(function (IToken $token) use ($sessionToken) { |
|
70 | + return array_map(function(IToken $token) use ($sessionToken) { |
|
71 | 71 | $data = $token->jsonSerialize(); |
72 | 72 | $data['canDelete'] = true; |
73 | 73 | $data['canRename'] = $token instanceof INamedToken && $data['type'] !== IToken::WIPE_TOKEN; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $template->setSubject($l->t('Password for %1$s changed on %2$s', [$user->getDisplayName(), $instanceName])); |
94 | 94 | $template->addHeader(); |
95 | 95 | $template->addHeading($l->t('Password changed for %s', [$user->getDisplayName()]), false); |
96 | - $template->addBodyText($text . ' ' . $l->t('If you did not request this, please contact an administrator.')); |
|
96 | + $template->addBodyText($text.' '.$l->t('If you did not request this, please contact an administrator.')); |
|
97 | 97 | $template->addFooter(); |
98 | 98 | |
99 | 99 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $template->setSubject($l->t('Email address for %1$s changed on %2$s', [$user->getDisplayName(), $instanceName])); |
164 | 164 | $template->addHeader(); |
165 | 165 | $template->addHeading($l->t('Email address changed for %s', [$user->getDisplayName()]), false); |
166 | - $template->addBodyText($text . ' ' . $l->t('If you did not request this, please contact an administrator.')); |
|
166 | + $template->addBodyText($text.' '.$l->t('If you did not request this, please contact an administrator.')); |
|
167 | 167 | if ($user->getEMailAddress()) { |
168 | 168 | $template->addBodyText($l->t('The new email address is %s', [$user->getEMailAddress()])); |
169 | 169 | } |
@@ -6,72 +6,72 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitFiles_Trashbin |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'O' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'OCA\\Files_Trashbin\\' => 19, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'OCA\\Files_Trashbin\\' => |
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\\Files_Trashbin\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
26 | - 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => __DIR__ . '/..' . '/../lib/BackgroundJob/ExpireTrash.php', |
|
27 | - 'OCA\\Files_Trashbin\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
28 | - 'OCA\\Files_Trashbin\\Command\\CleanUp' => __DIR__ . '/..' . '/../lib/Command/CleanUp.php', |
|
29 | - 'OCA\\Files_Trashbin\\Command\\Expire' => __DIR__ . '/..' . '/../lib/Command/Expire.php', |
|
30 | - 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => __DIR__ . '/..' . '/../lib/Command/ExpireTrash.php', |
|
31 | - 'OCA\\Files_Trashbin\\Command\\RestoreAllFiles' => __DIR__ . '/..' . '/../lib/Command/RestoreAllFiles.php', |
|
32 | - 'OCA\\Files_Trashbin\\Command\\Size' => __DIR__ . '/..' . '/../lib/Command/Size.php', |
|
33 | - 'OCA\\Files_Trashbin\\Controller\\PreviewController' => __DIR__ . '/..' . '/../lib/Controller/PreviewController.php', |
|
34 | - 'OCA\\Files_Trashbin\\Events\\BeforeNodeRestoredEvent' => __DIR__ . '/..' . '/../lib/Events/BeforeNodeRestoredEvent.php', |
|
35 | - 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => __DIR__ . '/..' . '/../lib/Events/MoveToTrashEvent.php', |
|
36 | - 'OCA\\Files_Trashbin\\Events\\NodeRestoredEvent' => __DIR__ . '/..' . '/../lib/Events/NodeRestoredEvent.php', |
|
37 | - 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => __DIR__ . '/..' . '/../lib/Exceptions/CopyRecursiveException.php', |
|
38 | - 'OCA\\Files_Trashbin\\Expiration' => __DIR__ . '/..' . '/../lib/Expiration.php', |
|
39 | - 'OCA\\Files_Trashbin\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php', |
|
40 | - 'OCA\\Files_Trashbin\\Listener\\EventListener' => __DIR__ . '/..' . '/../lib/Listener/EventListener.php', |
|
41 | - 'OCA\\Files_Trashbin\\Listeners\\BeforeTemplateRendered' => __DIR__ . '/..' . '/../lib/Listeners/BeforeTemplateRendered.php', |
|
42 | - 'OCA\\Files_Trashbin\\Listeners\\LoadAdditionalScripts' => __DIR__ . '/..' . '/../lib/Listeners/LoadAdditionalScripts.php', |
|
43 | - 'OCA\\Files_Trashbin\\Listeners\\SyncLivePhotosListener' => __DIR__ . '/..' . '/../lib/Listeners/SyncLivePhotosListener.php', |
|
44 | - 'OCA\\Files_Trashbin\\Migration\\Version1010Date20200630192639' => __DIR__ . '/..' . '/../lib/Migration/Version1010Date20200630192639.php', |
|
45 | - 'OCA\\Files_Trashbin\\Migration\\Version1020Date20240403003535' => __DIR__ . '/..' . '/../lib/Migration/Version1020Date20240403003535.php', |
|
46 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => __DIR__ . '/..' . '/../lib/Sabre/AbstractTrash.php', |
|
47 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => __DIR__ . '/..' . '/../lib/Sabre/AbstractTrashFile.php', |
|
48 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => __DIR__ . '/..' . '/../lib/Sabre/AbstractTrashFolder.php', |
|
49 | - 'OCA\\Files_Trashbin\\Sabre\\ITrash' => __DIR__ . '/..' . '/../lib/Sabre/ITrash.php', |
|
50 | - 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => __DIR__ . '/..' . '/../lib/Sabre/RestoreFolder.php', |
|
51 | - 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => __DIR__ . '/..' . '/../lib/Sabre/RootCollection.php', |
|
52 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => __DIR__ . '/..' . '/../lib/Sabre/TrashFile.php', |
|
53 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => __DIR__ . '/..' . '/../lib/Sabre/TrashFolder.php', |
|
54 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => __DIR__ . '/..' . '/../lib/Sabre/TrashFolderFile.php', |
|
55 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => __DIR__ . '/..' . '/../lib/Sabre/TrashFolderFolder.php', |
|
56 | - 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => __DIR__ . '/..' . '/../lib/Sabre/TrashHome.php', |
|
57 | - 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => __DIR__ . '/..' . '/../lib/Sabre/TrashRoot.php', |
|
58 | - 'OCA\\Files_Trashbin\\Sabre\\TrashbinPlugin' => __DIR__ . '/..' . '/../lib/Sabre/TrashbinPlugin.php', |
|
59 | - 'OCA\\Files_Trashbin\\Service\\ConfigService' => __DIR__ . '/..' . '/../lib/Service/ConfigService.php', |
|
60 | - 'OCA\\Files_Trashbin\\Storage' => __DIR__ . '/..' . '/../lib/Storage.php', |
|
61 | - 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => __DIR__ . '/..' . '/../lib/Trash/BackendNotFoundException.php', |
|
62 | - 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => __DIR__ . '/..' . '/../lib/Trash/ITrashBackend.php', |
|
63 | - 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => __DIR__ . '/..' . '/../lib/Trash/ITrashItem.php', |
|
64 | - 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => __DIR__ . '/..' . '/../lib/Trash/ITrashManager.php', |
|
65 | - 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => __DIR__ . '/..' . '/../lib/Trash/LegacyTrashBackend.php', |
|
66 | - 'OCA\\Files_Trashbin\\Trash\\TrashItem' => __DIR__ . '/..' . '/../lib/Trash/TrashItem.php', |
|
67 | - 'OCA\\Files_Trashbin\\Trash\\TrashManager' => __DIR__ . '/..' . '/../lib/Trash/TrashManager.php', |
|
68 | - 'OCA\\Files_Trashbin\\Trashbin' => __DIR__ . '/..' . '/../lib/Trashbin.php', |
|
69 | - 'OCA\\Files_Trashbin\\UserMigration\\TrashbinMigrator' => __DIR__ . '/..' . '/../lib/UserMigration/TrashbinMigrator.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
25 | + 'OCA\\Files_Trashbin\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
26 | + 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => __DIR__.'/..'.'/../lib/BackgroundJob/ExpireTrash.php', |
|
27 | + 'OCA\\Files_Trashbin\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
28 | + 'OCA\\Files_Trashbin\\Command\\CleanUp' => __DIR__.'/..'.'/../lib/Command/CleanUp.php', |
|
29 | + 'OCA\\Files_Trashbin\\Command\\Expire' => __DIR__.'/..'.'/../lib/Command/Expire.php', |
|
30 | + 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => __DIR__.'/..'.'/../lib/Command/ExpireTrash.php', |
|
31 | + 'OCA\\Files_Trashbin\\Command\\RestoreAllFiles' => __DIR__.'/..'.'/../lib/Command/RestoreAllFiles.php', |
|
32 | + 'OCA\\Files_Trashbin\\Command\\Size' => __DIR__.'/..'.'/../lib/Command/Size.php', |
|
33 | + 'OCA\\Files_Trashbin\\Controller\\PreviewController' => __DIR__.'/..'.'/../lib/Controller/PreviewController.php', |
|
34 | + 'OCA\\Files_Trashbin\\Events\\BeforeNodeRestoredEvent' => __DIR__.'/..'.'/../lib/Events/BeforeNodeRestoredEvent.php', |
|
35 | + 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => __DIR__.'/..'.'/../lib/Events/MoveToTrashEvent.php', |
|
36 | + 'OCA\\Files_Trashbin\\Events\\NodeRestoredEvent' => __DIR__.'/..'.'/../lib/Events/NodeRestoredEvent.php', |
|
37 | + 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => __DIR__.'/..'.'/../lib/Exceptions/CopyRecursiveException.php', |
|
38 | + 'OCA\\Files_Trashbin\\Expiration' => __DIR__.'/..'.'/../lib/Expiration.php', |
|
39 | + 'OCA\\Files_Trashbin\\Helper' => __DIR__.'/..'.'/../lib/Helper.php', |
|
40 | + 'OCA\\Files_Trashbin\\Listener\\EventListener' => __DIR__.'/..'.'/../lib/Listener/EventListener.php', |
|
41 | + 'OCA\\Files_Trashbin\\Listeners\\BeforeTemplateRendered' => __DIR__.'/..'.'/../lib/Listeners/BeforeTemplateRendered.php', |
|
42 | + 'OCA\\Files_Trashbin\\Listeners\\LoadAdditionalScripts' => __DIR__.'/..'.'/../lib/Listeners/LoadAdditionalScripts.php', |
|
43 | + 'OCA\\Files_Trashbin\\Listeners\\SyncLivePhotosListener' => __DIR__.'/..'.'/../lib/Listeners/SyncLivePhotosListener.php', |
|
44 | + 'OCA\\Files_Trashbin\\Migration\\Version1010Date20200630192639' => __DIR__.'/..'.'/../lib/Migration/Version1010Date20200630192639.php', |
|
45 | + 'OCA\\Files_Trashbin\\Migration\\Version1020Date20240403003535' => __DIR__.'/..'.'/../lib/Migration/Version1020Date20240403003535.php', |
|
46 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => __DIR__.'/..'.'/../lib/Sabre/AbstractTrash.php', |
|
47 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => __DIR__.'/..'.'/../lib/Sabre/AbstractTrashFile.php', |
|
48 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => __DIR__.'/..'.'/../lib/Sabre/AbstractTrashFolder.php', |
|
49 | + 'OCA\\Files_Trashbin\\Sabre\\ITrash' => __DIR__.'/..'.'/../lib/Sabre/ITrash.php', |
|
50 | + 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => __DIR__.'/..'.'/../lib/Sabre/RestoreFolder.php', |
|
51 | + 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => __DIR__.'/..'.'/../lib/Sabre/RootCollection.php', |
|
52 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => __DIR__.'/..'.'/../lib/Sabre/TrashFile.php', |
|
53 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => __DIR__.'/..'.'/../lib/Sabre/TrashFolder.php', |
|
54 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => __DIR__.'/..'.'/../lib/Sabre/TrashFolderFile.php', |
|
55 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => __DIR__.'/..'.'/../lib/Sabre/TrashFolderFolder.php', |
|
56 | + 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => __DIR__.'/..'.'/../lib/Sabre/TrashHome.php', |
|
57 | + 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => __DIR__.'/..'.'/../lib/Sabre/TrashRoot.php', |
|
58 | + 'OCA\\Files_Trashbin\\Sabre\\TrashbinPlugin' => __DIR__.'/..'.'/../lib/Sabre/TrashbinPlugin.php', |
|
59 | + 'OCA\\Files_Trashbin\\Service\\ConfigService' => __DIR__.'/..'.'/../lib/Service/ConfigService.php', |
|
60 | + 'OCA\\Files_Trashbin\\Storage' => __DIR__.'/..'.'/../lib/Storage.php', |
|
61 | + 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => __DIR__.'/..'.'/../lib/Trash/BackendNotFoundException.php', |
|
62 | + 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => __DIR__.'/..'.'/../lib/Trash/ITrashBackend.php', |
|
63 | + 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => __DIR__.'/..'.'/../lib/Trash/ITrashItem.php', |
|
64 | + 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => __DIR__.'/..'.'/../lib/Trash/ITrashManager.php', |
|
65 | + 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => __DIR__.'/..'.'/../lib/Trash/LegacyTrashBackend.php', |
|
66 | + 'OCA\\Files_Trashbin\\Trash\\TrashItem' => __DIR__.'/..'.'/../lib/Trash/TrashItem.php', |
|
67 | + 'OCA\\Files_Trashbin\\Trash\\TrashManager' => __DIR__.'/..'.'/../lib/Trash/TrashManager.php', |
|
68 | + 'OCA\\Files_Trashbin\\Trashbin' => __DIR__.'/..'.'/../lib/Trashbin.php', |
|
69 | + 'OCA\\Files_Trashbin\\UserMigration\\TrashbinMigrator' => __DIR__.'/..'.'/../lib/UserMigration/TrashbinMigrator.php', |
|
70 | 70 | ); |
71 | 71 | |
72 | 72 | public static function getInitializer(ClassLoader $loader) |
73 | 73 | { |
74 | - return \Closure::bind(function () use ($loader) { |
|
74 | + return \Closure::bind(function() use ($loader) { |
|
75 | 75 | $loader->prefixLengthsPsr4 = ComposerStaticInitFiles_Trashbin::$prefixLengthsPsr4; |
76 | 76 | $loader->prefixDirsPsr4 = ComposerStaticInitFiles_Trashbin::$prefixDirsPsr4; |
77 | 77 | $loader->classMap = ComposerStaticInitFiles_Trashbin::$classMap; |
@@ -6,50 +6,50 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
10 | - 'OCA\\Files_Trashbin\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
11 | - 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => $baseDir . '/../lib/BackgroundJob/ExpireTrash.php', |
|
12 | - 'OCA\\Files_Trashbin\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
13 | - 'OCA\\Files_Trashbin\\Command\\CleanUp' => $baseDir . '/../lib/Command/CleanUp.php', |
|
14 | - 'OCA\\Files_Trashbin\\Command\\Expire' => $baseDir . '/../lib/Command/Expire.php', |
|
15 | - 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => $baseDir . '/../lib/Command/ExpireTrash.php', |
|
16 | - 'OCA\\Files_Trashbin\\Command\\RestoreAllFiles' => $baseDir . '/../lib/Command/RestoreAllFiles.php', |
|
17 | - 'OCA\\Files_Trashbin\\Command\\Size' => $baseDir . '/../lib/Command/Size.php', |
|
18 | - 'OCA\\Files_Trashbin\\Controller\\PreviewController' => $baseDir . '/../lib/Controller/PreviewController.php', |
|
19 | - 'OCA\\Files_Trashbin\\Events\\BeforeNodeRestoredEvent' => $baseDir . '/../lib/Events/BeforeNodeRestoredEvent.php', |
|
20 | - 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => $baseDir . '/../lib/Events/MoveToTrashEvent.php', |
|
21 | - 'OCA\\Files_Trashbin\\Events\\NodeRestoredEvent' => $baseDir . '/../lib/Events/NodeRestoredEvent.php', |
|
22 | - 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => $baseDir . '/../lib/Exceptions/CopyRecursiveException.php', |
|
23 | - 'OCA\\Files_Trashbin\\Expiration' => $baseDir . '/../lib/Expiration.php', |
|
24 | - 'OCA\\Files_Trashbin\\Helper' => $baseDir . '/../lib/Helper.php', |
|
25 | - 'OCA\\Files_Trashbin\\Listener\\EventListener' => $baseDir . '/../lib/Listener/EventListener.php', |
|
26 | - 'OCA\\Files_Trashbin\\Listeners\\BeforeTemplateRendered' => $baseDir . '/../lib/Listeners/BeforeTemplateRendered.php', |
|
27 | - 'OCA\\Files_Trashbin\\Listeners\\LoadAdditionalScripts' => $baseDir . '/../lib/Listeners/LoadAdditionalScripts.php', |
|
28 | - 'OCA\\Files_Trashbin\\Listeners\\SyncLivePhotosListener' => $baseDir . '/../lib/Listeners/SyncLivePhotosListener.php', |
|
29 | - 'OCA\\Files_Trashbin\\Migration\\Version1010Date20200630192639' => $baseDir . '/../lib/Migration/Version1010Date20200630192639.php', |
|
30 | - 'OCA\\Files_Trashbin\\Migration\\Version1020Date20240403003535' => $baseDir . '/../lib/Migration/Version1020Date20240403003535.php', |
|
31 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => $baseDir . '/../lib/Sabre/AbstractTrash.php', |
|
32 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => $baseDir . '/../lib/Sabre/AbstractTrashFile.php', |
|
33 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => $baseDir . '/../lib/Sabre/AbstractTrashFolder.php', |
|
34 | - 'OCA\\Files_Trashbin\\Sabre\\ITrash' => $baseDir . '/../lib/Sabre/ITrash.php', |
|
35 | - 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => $baseDir . '/../lib/Sabre/RestoreFolder.php', |
|
36 | - 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => $baseDir . '/../lib/Sabre/RootCollection.php', |
|
37 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => $baseDir . '/../lib/Sabre/TrashFile.php', |
|
38 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => $baseDir . '/../lib/Sabre/TrashFolder.php', |
|
39 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => $baseDir . '/../lib/Sabre/TrashFolderFile.php', |
|
40 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => $baseDir . '/../lib/Sabre/TrashFolderFolder.php', |
|
41 | - 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => $baseDir . '/../lib/Sabre/TrashHome.php', |
|
42 | - 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => $baseDir . '/../lib/Sabre/TrashRoot.php', |
|
43 | - 'OCA\\Files_Trashbin\\Sabre\\TrashbinPlugin' => $baseDir . '/../lib/Sabre/TrashbinPlugin.php', |
|
44 | - 'OCA\\Files_Trashbin\\Service\\ConfigService' => $baseDir . '/../lib/Service/ConfigService.php', |
|
45 | - 'OCA\\Files_Trashbin\\Storage' => $baseDir . '/../lib/Storage.php', |
|
46 | - 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => $baseDir . '/../lib/Trash/BackendNotFoundException.php', |
|
47 | - 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => $baseDir . '/../lib/Trash/ITrashBackend.php', |
|
48 | - 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => $baseDir . '/../lib/Trash/ITrashItem.php', |
|
49 | - 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => $baseDir . '/../lib/Trash/ITrashManager.php', |
|
50 | - 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => $baseDir . '/../lib/Trash/LegacyTrashBackend.php', |
|
51 | - 'OCA\\Files_Trashbin\\Trash\\TrashItem' => $baseDir . '/../lib/Trash/TrashItem.php', |
|
52 | - 'OCA\\Files_Trashbin\\Trash\\TrashManager' => $baseDir . '/../lib/Trash/TrashManager.php', |
|
53 | - 'OCA\\Files_Trashbin\\Trashbin' => $baseDir . '/../lib/Trashbin.php', |
|
54 | - 'OCA\\Files_Trashbin\\UserMigration\\TrashbinMigrator' => $baseDir . '/../lib/UserMigration/TrashbinMigrator.php', |
|
9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
10 | + 'OCA\\Files_Trashbin\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
11 | + 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => $baseDir.'/../lib/BackgroundJob/ExpireTrash.php', |
|
12 | + 'OCA\\Files_Trashbin\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
13 | + 'OCA\\Files_Trashbin\\Command\\CleanUp' => $baseDir.'/../lib/Command/CleanUp.php', |
|
14 | + 'OCA\\Files_Trashbin\\Command\\Expire' => $baseDir.'/../lib/Command/Expire.php', |
|
15 | + 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => $baseDir.'/../lib/Command/ExpireTrash.php', |
|
16 | + 'OCA\\Files_Trashbin\\Command\\RestoreAllFiles' => $baseDir.'/../lib/Command/RestoreAllFiles.php', |
|
17 | + 'OCA\\Files_Trashbin\\Command\\Size' => $baseDir.'/../lib/Command/Size.php', |
|
18 | + 'OCA\\Files_Trashbin\\Controller\\PreviewController' => $baseDir.'/../lib/Controller/PreviewController.php', |
|
19 | + 'OCA\\Files_Trashbin\\Events\\BeforeNodeRestoredEvent' => $baseDir.'/../lib/Events/BeforeNodeRestoredEvent.php', |
|
20 | + 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => $baseDir.'/../lib/Events/MoveToTrashEvent.php', |
|
21 | + 'OCA\\Files_Trashbin\\Events\\NodeRestoredEvent' => $baseDir.'/../lib/Events/NodeRestoredEvent.php', |
|
22 | + 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => $baseDir.'/../lib/Exceptions/CopyRecursiveException.php', |
|
23 | + 'OCA\\Files_Trashbin\\Expiration' => $baseDir.'/../lib/Expiration.php', |
|
24 | + 'OCA\\Files_Trashbin\\Helper' => $baseDir.'/../lib/Helper.php', |
|
25 | + 'OCA\\Files_Trashbin\\Listener\\EventListener' => $baseDir.'/../lib/Listener/EventListener.php', |
|
26 | + 'OCA\\Files_Trashbin\\Listeners\\BeforeTemplateRendered' => $baseDir.'/../lib/Listeners/BeforeTemplateRendered.php', |
|
27 | + 'OCA\\Files_Trashbin\\Listeners\\LoadAdditionalScripts' => $baseDir.'/../lib/Listeners/LoadAdditionalScripts.php', |
|
28 | + 'OCA\\Files_Trashbin\\Listeners\\SyncLivePhotosListener' => $baseDir.'/../lib/Listeners/SyncLivePhotosListener.php', |
|
29 | + 'OCA\\Files_Trashbin\\Migration\\Version1010Date20200630192639' => $baseDir.'/../lib/Migration/Version1010Date20200630192639.php', |
|
30 | + 'OCA\\Files_Trashbin\\Migration\\Version1020Date20240403003535' => $baseDir.'/../lib/Migration/Version1020Date20240403003535.php', |
|
31 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => $baseDir.'/../lib/Sabre/AbstractTrash.php', |
|
32 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => $baseDir.'/../lib/Sabre/AbstractTrashFile.php', |
|
33 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => $baseDir.'/../lib/Sabre/AbstractTrashFolder.php', |
|
34 | + 'OCA\\Files_Trashbin\\Sabre\\ITrash' => $baseDir.'/../lib/Sabre/ITrash.php', |
|
35 | + 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => $baseDir.'/../lib/Sabre/RestoreFolder.php', |
|
36 | + 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => $baseDir.'/../lib/Sabre/RootCollection.php', |
|
37 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => $baseDir.'/../lib/Sabre/TrashFile.php', |
|
38 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => $baseDir.'/../lib/Sabre/TrashFolder.php', |
|
39 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => $baseDir.'/../lib/Sabre/TrashFolderFile.php', |
|
40 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => $baseDir.'/../lib/Sabre/TrashFolderFolder.php', |
|
41 | + 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => $baseDir.'/../lib/Sabre/TrashHome.php', |
|
42 | + 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => $baseDir.'/../lib/Sabre/TrashRoot.php', |
|
43 | + 'OCA\\Files_Trashbin\\Sabre\\TrashbinPlugin' => $baseDir.'/../lib/Sabre/TrashbinPlugin.php', |
|
44 | + 'OCA\\Files_Trashbin\\Service\\ConfigService' => $baseDir.'/../lib/Service/ConfigService.php', |
|
45 | + 'OCA\\Files_Trashbin\\Storage' => $baseDir.'/../lib/Storage.php', |
|
46 | + 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => $baseDir.'/../lib/Trash/BackendNotFoundException.php', |
|
47 | + 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => $baseDir.'/../lib/Trash/ITrashBackend.php', |
|
48 | + 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => $baseDir.'/../lib/Trash/ITrashItem.php', |
|
49 | + 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => $baseDir.'/../lib/Trash/ITrashManager.php', |
|
50 | + 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => $baseDir.'/../lib/Trash/LegacyTrashBackend.php', |
|
51 | + 'OCA\\Files_Trashbin\\Trash\\TrashItem' => $baseDir.'/../lib/Trash/TrashItem.php', |
|
52 | + 'OCA\\Files_Trashbin\\Trash\\TrashManager' => $baseDir.'/../lib/Trash/TrashManager.php', |
|
53 | + 'OCA\\Files_Trashbin\\Trashbin' => $baseDir.'/../lib/Trashbin.php', |
|
54 | + 'OCA\\Files_Trashbin\\UserMigration\\TrashbinMigrator' => $baseDir.'/../lib/UserMigration/TrashbinMigrator.php', |
|
55 | 55 | ); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | public static function injectInitialState(IInitialState $initialState): void { |
21 | - $initialState->provideLazyInitialState('config', function () { |
|
21 | + $initialState->provideLazyInitialState('config', function() { |
|
22 | 22 | return [ |
23 | 23 | 'allow_delete' => ConfigService::getDeleteFromTrashEnabled(), |
24 | 24 | ]; |
@@ -183,8 +183,8 @@ discard block |
||
183 | 183 | try { |
184 | 184 | $trashItem->getTrashBackend()->restoreItem($trashItem); |
185 | 185 | } catch (\Throwable $e) { |
186 | - $output->writeln(' <error>Failed: ' . $e->getMessage() . '</error>'); |
|
187 | - $output->writeln(' <error>' . $e->getTraceAsString() . '</error>', OutputInterface::VERBOSITY_VERY_VERBOSE); |
|
186 | + $output->writeln(' <error>Failed: '.$e->getMessage().'</error>'); |
|
187 | + $output->writeln(' <error>'.$e->getTraceAsString().'</error>', OutputInterface::VERBOSITY_VERY_VERBOSE); |
|
188 | 188 | continue; |
189 | 189 | } |
190 | 190 | |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | |
240 | 240 | // Check scope with exact class name for locally deleted files |
241 | 241 | if ($scope === self::SCOPE_USER && $trashItemClass !== TrashItem::class) { |
242 | - $output->writeln('Skipping <info>' . $trashItem->getName() . '</info> because it is not a user trash item', OutputInterface::VERBOSITY_VERBOSE); |
|
242 | + $output->writeln('Skipping <info>'.$trashItem->getName().'</info> because it is not a user trash item', OutputInterface::VERBOSITY_VERBOSE); |
|
243 | 243 | continue; |
244 | 244 | } |
245 | 245 | |
@@ -249,19 +249,19 @@ discard block |
||
249 | 249 | * @psalm-suppress RedundantCondition |
250 | 250 | */ |
251 | 251 | if ($scope === self::SCOPE_GROUPFOLDERS && $trashItemClass !== 'OCA\GroupFolders\Trash\GroupTrashItem') { |
252 | - $output->writeln('Skipping <info>' . $trashItem->getName() . '</info> because it is not a groupfolders trash item', OutputInterface::VERBOSITY_VERBOSE); |
|
252 | + $output->writeln('Skipping <info>'.$trashItem->getName().'</info> because it is not a groupfolders trash item', OutputInterface::VERBOSITY_VERBOSE); |
|
253 | 253 | continue; |
254 | 254 | } |
255 | 255 | |
256 | 256 | // Check left timestamp boundary |
257 | 257 | if ($since !== null && $trashItem->getDeletedTime() <= $since) { |
258 | - $output->writeln('Skipping <info>' . $trashItem->getName() . "</info> because it was deleted before the 'since' timestamp", OutputInterface::VERBOSITY_VERBOSE); |
|
258 | + $output->writeln('Skipping <info>'.$trashItem->getName()."</info> because it was deleted before the 'since' timestamp", OutputInterface::VERBOSITY_VERBOSE); |
|
259 | 259 | continue; |
260 | 260 | } |
261 | 261 | |
262 | 262 | // Check right timestamp boundary |
263 | 263 | if ($until !== null && $trashItem->getDeletedTime() >= $until) { |
264 | - $output->writeln('Skipping <info>' . $trashItem->getName() . "</info> because it was deleted after the 'until' timestamp", OutputInterface::VERBOSITY_VERBOSE); |
|
264 | + $output->writeln('Skipping <info>'.$trashItem->getName()."</info> because it was deleted after the 'until' timestamp", OutputInterface::VERBOSITY_VERBOSE); |
|
265 | 265 | continue; |
266 | 266 | } |
267 | 267 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $result = []; |
29 | 29 | $timestamp = null; |
30 | 30 | |
31 | - $view = new View('/' . $user . '/files_trashbin/files'); |
|
31 | + $view = new View('/'.$user.'/files_trashbin/files'); |
|
32 | 32 | |
33 | 33 | if (ltrim($dir, '/') !== '' && !$view->is_dir($dir)) { |
34 | 34 | throw new \Exception('Directory does not exists'); |
@@ -75,13 +75,13 @@ discard block |
||
75 | 75 | ]; |
76 | 76 | if ($originalPath) { |
77 | 77 | if ($originalPath !== '.') { |
78 | - $i['extraData'] = $originalPath . '/' . $originalName; |
|
78 | + $i['extraData'] = $originalPath.'/'.$originalName; |
|
79 | 79 | } else { |
80 | 80 | $i['extraData'] = $originalName; |
81 | 81 | } |
82 | 82 | } |
83 | 83 | $i['deletedBy'] = $extraData[$originalName][$timestamp]['deletedBy'] ?? null; |
84 | - $result[] = new FileInfo($absoluteDir . '/' . $i['name'], $storage, $internalPath . '/' . $i['name'], $i, $mount); |
|
84 | + $result[] = new FileInfo($absoluteDir.'/'.$i['name'], $storage, $internalPath.'/'.$i['name'], $i, $mount); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | if ($sortAttribute !== '') { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public function getDeletedBy(): ?IUser; |
26 | 26 | |
27 | - public function getSize(): int|float; |
|
27 | + public function getSize(): int | float; |
|
28 | 28 | |
29 | 29 | public function getFileId(): int; |
30 | 30 |
@@ -113,8 +113,8 @@ |
||
113 | 113 | */ |
114 | 114 | private function getTrashItem(array $trashFolder, string $path): ?ITrashItem { |
115 | 115 | foreach ($trashFolder as $trashItem) { |
116 | - if (str_starts_with($path, 'files_trashbin/files' . $trashItem->getTrashPath())) { |
|
117 | - if ($path === 'files_trashbin/files' . $trashItem->getTrashPath()) { |
|
116 | + if (str_starts_with($path, 'files_trashbin/files'.$trashItem->getTrashPath())) { |
|
117 | + if ($path === 'files_trashbin/files'.$trashItem->getTrashPath()) { |
|
118 | 118 | return $trashItem; |
119 | 119 | } |
120 | 120 |