@@ -26,6 +26,6 @@ |
||
26 | 26 | |
27 | 27 | class TrashFolder extends AbstractTrashFolder { |
28 | 28 | public function getName(): string { |
29 | - return $this->data->getName() . '.d' . $this->getLastModified(); |
|
29 | + return $this->data->getName().'.d'.$this->getLastModified(); |
|
30 | 30 | } |
31 | 31 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | use Sabre\DAV\Exception\Forbidden; |
26 | 26 | use Sabre\DAV\IFile; |
27 | 27 | |
28 | -abstract class AbstractTrashFile extends AbstractTrash implements IFile , ITrash{ |
|
28 | +abstract class AbstractTrashFile extends AbstractTrash implements IFile, ITrash{ |
|
29 | 29 | public function put($data) { |
30 | 30 | throw new Forbidden(); |
31 | 31 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | public function getChildren(): array { |
68 | 68 | $entries = $this->trashManager->listTrashRoot($this->user); |
69 | 69 | |
70 | - $children = array_map(function (ITrashItem $entry) { |
|
70 | + $children = array_map(function(ITrashItem $entry) { |
|
71 | 71 | if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
72 | 72 | return new TrashFolder($this->trashManager, $entry); |
73 | 73 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function getChildren(): array { |
33 | 33 | $entries = $this->trashManager->listTrashFolder($this->data); |
34 | 34 | |
35 | - $children = array_map(function (ITrashItem $entry) { |
|
35 | + $children = array_map(function(ITrashItem $entry) { |
|
36 | 36 | if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
37 | 37 | return new TrashFolderFolder($this->trashManager, $entry); |
38 | 38 | } |
@@ -26,10 +26,10 @@ |
||
26 | 26 | |
27 | 27 | class TrashFile extends AbstractTrashFile { |
28 | 28 | public function get() { |
29 | - return $this->data->getStorage()->fopen($this->data->getInternalPath() . '.d' . $this->getLastModified(), 'rb'); |
|
29 | + return $this->data->getStorage()->fopen($this->data->getInternalPath().'.d'.$this->getLastModified(), 'rb'); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | public function getName(): string { |
33 | - return $this->data->getName() . '.d' . $this->getLastModified(); |
|
33 | + return $this->data->getName().'.d'.$this->getLastModified(); |
|
34 | 34 | } |
35 | 35 | } |
@@ -6,38 +6,38 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\Files_Trashbin\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
10 | - 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => $baseDir . '/../lib/BackgroundJob/ExpireTrash.php', |
|
11 | - 'OCA\\Files_Trashbin\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
12 | - 'OCA\\Files_Trashbin\\Command\\CleanUp' => $baseDir . '/../lib/Command/CleanUp.php', |
|
13 | - 'OCA\\Files_Trashbin\\Command\\Expire' => $baseDir . '/../lib/Command/Expire.php', |
|
14 | - 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => $baseDir . '/../lib/Command/ExpireTrash.php', |
|
15 | - 'OCA\\Files_Trashbin\\Controller\\PreviewController' => $baseDir . '/../lib/Controller/PreviewController.php', |
|
16 | - 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => $baseDir . '/../lib/Events/MoveToTrashEvent.php', |
|
17 | - 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => $baseDir . '/../lib/Exceptions/CopyRecursiveException.php', |
|
18 | - 'OCA\\Files_Trashbin\\Expiration' => $baseDir . '/../lib/Expiration.php', |
|
19 | - 'OCA\\Files_Trashbin\\Helper' => $baseDir . '/../lib/Helper.php', |
|
20 | - 'OCA\\Files_Trashbin\\Hooks' => $baseDir . '/../lib/Hooks.php', |
|
21 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => $baseDir . '/../lib/Sabre/AbstractTrash.php', |
|
22 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => $baseDir . '/../lib/Sabre/AbstractTrashFile.php', |
|
23 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => $baseDir . '/../lib/Sabre/AbstractTrashFolder.php', |
|
24 | - 'OCA\\Files_Trashbin\\Sabre\\ITrash' => $baseDir . '/../lib/Sabre/ITrash.php', |
|
25 | - 'OCA\\Files_Trashbin\\Sabre\\PropfindPlugin' => $baseDir . '/../lib/Sabre/PropfindPlugin.php', |
|
26 | - 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => $baseDir . '/../lib/Sabre/RestoreFolder.php', |
|
27 | - 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => $baseDir . '/../lib/Sabre/RootCollection.php', |
|
28 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => $baseDir . '/../lib/Sabre/TrashFile.php', |
|
29 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => $baseDir . '/../lib/Sabre/TrashFolder.php', |
|
30 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => $baseDir . '/../lib/Sabre/TrashFolderFile.php', |
|
31 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => $baseDir . '/../lib/Sabre/TrashFolderFolder.php', |
|
32 | - 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => $baseDir . '/../lib/Sabre/TrashHome.php', |
|
33 | - 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => $baseDir . '/../lib/Sabre/TrashRoot.php', |
|
34 | - 'OCA\\Files_Trashbin\\Storage' => $baseDir . '/../lib/Storage.php', |
|
35 | - 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => $baseDir . '/../lib/Trash/BackendNotFoundException.php', |
|
36 | - 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => $baseDir . '/../lib/Trash/ITrashBackend.php', |
|
37 | - 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => $baseDir . '/../lib/Trash/ITrashItem.php', |
|
38 | - 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => $baseDir . '/../lib/Trash/ITrashManager.php', |
|
39 | - 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => $baseDir . '/../lib/Trash/LegacyTrashBackend.php', |
|
40 | - 'OCA\\Files_Trashbin\\Trash\\TrashItem' => $baseDir . '/../lib/Trash/TrashItem.php', |
|
41 | - 'OCA\\Files_Trashbin\\Trash\\TrashManager' => $baseDir . '/../lib/Trash/TrashManager.php', |
|
42 | - 'OCA\\Files_Trashbin\\Trashbin' => $baseDir . '/../lib/Trashbin.php', |
|
9 | + 'OCA\\Files_Trashbin\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
10 | + 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => $baseDir.'/../lib/BackgroundJob/ExpireTrash.php', |
|
11 | + 'OCA\\Files_Trashbin\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
12 | + 'OCA\\Files_Trashbin\\Command\\CleanUp' => $baseDir.'/../lib/Command/CleanUp.php', |
|
13 | + 'OCA\\Files_Trashbin\\Command\\Expire' => $baseDir.'/../lib/Command/Expire.php', |
|
14 | + 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => $baseDir.'/../lib/Command/ExpireTrash.php', |
|
15 | + 'OCA\\Files_Trashbin\\Controller\\PreviewController' => $baseDir.'/../lib/Controller/PreviewController.php', |
|
16 | + 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => $baseDir.'/../lib/Events/MoveToTrashEvent.php', |
|
17 | + 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => $baseDir.'/../lib/Exceptions/CopyRecursiveException.php', |
|
18 | + 'OCA\\Files_Trashbin\\Expiration' => $baseDir.'/../lib/Expiration.php', |
|
19 | + 'OCA\\Files_Trashbin\\Helper' => $baseDir.'/../lib/Helper.php', |
|
20 | + 'OCA\\Files_Trashbin\\Hooks' => $baseDir.'/../lib/Hooks.php', |
|
21 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => $baseDir.'/../lib/Sabre/AbstractTrash.php', |
|
22 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => $baseDir.'/../lib/Sabre/AbstractTrashFile.php', |
|
23 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => $baseDir.'/../lib/Sabre/AbstractTrashFolder.php', |
|
24 | + 'OCA\\Files_Trashbin\\Sabre\\ITrash' => $baseDir.'/../lib/Sabre/ITrash.php', |
|
25 | + 'OCA\\Files_Trashbin\\Sabre\\PropfindPlugin' => $baseDir.'/../lib/Sabre/PropfindPlugin.php', |
|
26 | + 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => $baseDir.'/../lib/Sabre/RestoreFolder.php', |
|
27 | + 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => $baseDir.'/../lib/Sabre/RootCollection.php', |
|
28 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => $baseDir.'/../lib/Sabre/TrashFile.php', |
|
29 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => $baseDir.'/../lib/Sabre/TrashFolder.php', |
|
30 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => $baseDir.'/../lib/Sabre/TrashFolderFile.php', |
|
31 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => $baseDir.'/../lib/Sabre/TrashFolderFolder.php', |
|
32 | + 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => $baseDir.'/../lib/Sabre/TrashHome.php', |
|
33 | + 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => $baseDir.'/../lib/Sabre/TrashRoot.php', |
|
34 | + 'OCA\\Files_Trashbin\\Storage' => $baseDir.'/../lib/Storage.php', |
|
35 | + 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => $baseDir.'/../lib/Trash/BackendNotFoundException.php', |
|
36 | + 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => $baseDir.'/../lib/Trash/ITrashBackend.php', |
|
37 | + 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => $baseDir.'/../lib/Trash/ITrashItem.php', |
|
38 | + 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => $baseDir.'/../lib/Trash/ITrashManager.php', |
|
39 | + 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => $baseDir.'/../lib/Trash/LegacyTrashBackend.php', |
|
40 | + 'OCA\\Files_Trashbin\\Trash\\TrashItem' => $baseDir.'/../lib/Trash/TrashItem.php', |
|
41 | + 'OCA\\Files_Trashbin\\Trash\\TrashManager' => $baseDir.'/../lib/Trash/TrashManager.php', |
|
42 | + 'OCA\\Files_Trashbin\\Trashbin' => $baseDir.'/../lib/Trashbin.php', |
|
43 | 43 | ); |
@@ -6,60 +6,60 @@ |
||
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 | - 'OCA\\Files_Trashbin\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
25 | - 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => __DIR__ . '/..' . '/../lib/BackgroundJob/ExpireTrash.php', |
|
26 | - 'OCA\\Files_Trashbin\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
27 | - 'OCA\\Files_Trashbin\\Command\\CleanUp' => __DIR__ . '/..' . '/../lib/Command/CleanUp.php', |
|
28 | - 'OCA\\Files_Trashbin\\Command\\Expire' => __DIR__ . '/..' . '/../lib/Command/Expire.php', |
|
29 | - 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => __DIR__ . '/..' . '/../lib/Command/ExpireTrash.php', |
|
30 | - 'OCA\\Files_Trashbin\\Controller\\PreviewController' => __DIR__ . '/..' . '/../lib/Controller/PreviewController.php', |
|
31 | - 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => __DIR__ . '/..' . '/../lib/Events/MoveToTrashEvent.php', |
|
32 | - 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => __DIR__ . '/..' . '/../lib/Exceptions/CopyRecursiveException.php', |
|
33 | - 'OCA\\Files_Trashbin\\Expiration' => __DIR__ . '/..' . '/../lib/Expiration.php', |
|
34 | - 'OCA\\Files_Trashbin\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php', |
|
35 | - 'OCA\\Files_Trashbin\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php', |
|
36 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => __DIR__ . '/..' . '/../lib/Sabre/AbstractTrash.php', |
|
37 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => __DIR__ . '/..' . '/../lib/Sabre/AbstractTrashFile.php', |
|
38 | - 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => __DIR__ . '/..' . '/../lib/Sabre/AbstractTrashFolder.php', |
|
39 | - 'OCA\\Files_Trashbin\\Sabre\\ITrash' => __DIR__ . '/..' . '/../lib/Sabre/ITrash.php', |
|
40 | - 'OCA\\Files_Trashbin\\Sabre\\PropfindPlugin' => __DIR__ . '/..' . '/../lib/Sabre/PropfindPlugin.php', |
|
41 | - 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => __DIR__ . '/..' . '/../lib/Sabre/RestoreFolder.php', |
|
42 | - 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => __DIR__ . '/..' . '/../lib/Sabre/RootCollection.php', |
|
43 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => __DIR__ . '/..' . '/../lib/Sabre/TrashFile.php', |
|
44 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => __DIR__ . '/..' . '/../lib/Sabre/TrashFolder.php', |
|
45 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => __DIR__ . '/..' . '/../lib/Sabre/TrashFolderFile.php', |
|
46 | - 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => __DIR__ . '/..' . '/../lib/Sabre/TrashFolderFolder.php', |
|
47 | - 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => __DIR__ . '/..' . '/../lib/Sabre/TrashHome.php', |
|
48 | - 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => __DIR__ . '/..' . '/../lib/Sabre/TrashRoot.php', |
|
49 | - 'OCA\\Files_Trashbin\\Storage' => __DIR__ . '/..' . '/../lib/Storage.php', |
|
50 | - 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => __DIR__ . '/..' . '/../lib/Trash/BackendNotFoundException.php', |
|
51 | - 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => __DIR__ . '/..' . '/../lib/Trash/ITrashBackend.php', |
|
52 | - 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => __DIR__ . '/..' . '/../lib/Trash/ITrashItem.php', |
|
53 | - 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => __DIR__ . '/..' . '/../lib/Trash/ITrashManager.php', |
|
54 | - 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => __DIR__ . '/..' . '/../lib/Trash/LegacyTrashBackend.php', |
|
55 | - 'OCA\\Files_Trashbin\\Trash\\TrashItem' => __DIR__ . '/..' . '/../lib/Trash/TrashItem.php', |
|
56 | - 'OCA\\Files_Trashbin\\Trash\\TrashManager' => __DIR__ . '/..' . '/../lib/Trash/TrashManager.php', |
|
57 | - 'OCA\\Files_Trashbin\\Trashbin' => __DIR__ . '/..' . '/../lib/Trashbin.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'OCA\\Files_Trashbin\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
25 | + 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash' => __DIR__.'/..'.'/../lib/BackgroundJob/ExpireTrash.php', |
|
26 | + 'OCA\\Files_Trashbin\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
27 | + 'OCA\\Files_Trashbin\\Command\\CleanUp' => __DIR__.'/..'.'/../lib/Command/CleanUp.php', |
|
28 | + 'OCA\\Files_Trashbin\\Command\\Expire' => __DIR__.'/..'.'/../lib/Command/Expire.php', |
|
29 | + 'OCA\\Files_Trashbin\\Command\\ExpireTrash' => __DIR__.'/..'.'/../lib/Command/ExpireTrash.php', |
|
30 | + 'OCA\\Files_Trashbin\\Controller\\PreviewController' => __DIR__.'/..'.'/../lib/Controller/PreviewController.php', |
|
31 | + 'OCA\\Files_Trashbin\\Events\\MoveToTrashEvent' => __DIR__.'/..'.'/../lib/Events/MoveToTrashEvent.php', |
|
32 | + 'OCA\\Files_Trashbin\\Exceptions\\CopyRecursiveException' => __DIR__.'/..'.'/../lib/Exceptions/CopyRecursiveException.php', |
|
33 | + 'OCA\\Files_Trashbin\\Expiration' => __DIR__.'/..'.'/../lib/Expiration.php', |
|
34 | + 'OCA\\Files_Trashbin\\Helper' => __DIR__.'/..'.'/../lib/Helper.php', |
|
35 | + 'OCA\\Files_Trashbin\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php', |
|
36 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrash' => __DIR__.'/..'.'/../lib/Sabre/AbstractTrash.php', |
|
37 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFile' => __DIR__.'/..'.'/../lib/Sabre/AbstractTrashFile.php', |
|
38 | + 'OCA\\Files_Trashbin\\Sabre\\AbstractTrashFolder' => __DIR__.'/..'.'/../lib/Sabre/AbstractTrashFolder.php', |
|
39 | + 'OCA\\Files_Trashbin\\Sabre\\ITrash' => __DIR__.'/..'.'/../lib/Sabre/ITrash.php', |
|
40 | + 'OCA\\Files_Trashbin\\Sabre\\PropfindPlugin' => __DIR__.'/..'.'/../lib/Sabre/PropfindPlugin.php', |
|
41 | + 'OCA\\Files_Trashbin\\Sabre\\RestoreFolder' => __DIR__.'/..'.'/../lib/Sabre/RestoreFolder.php', |
|
42 | + 'OCA\\Files_Trashbin\\Sabre\\RootCollection' => __DIR__.'/..'.'/../lib/Sabre/RootCollection.php', |
|
43 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFile' => __DIR__.'/..'.'/../lib/Sabre/TrashFile.php', |
|
44 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolder' => __DIR__.'/..'.'/../lib/Sabre/TrashFolder.php', |
|
45 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFile' => __DIR__.'/..'.'/../lib/Sabre/TrashFolderFile.php', |
|
46 | + 'OCA\\Files_Trashbin\\Sabre\\TrashFolderFolder' => __DIR__.'/..'.'/../lib/Sabre/TrashFolderFolder.php', |
|
47 | + 'OCA\\Files_Trashbin\\Sabre\\TrashHome' => __DIR__.'/..'.'/../lib/Sabre/TrashHome.php', |
|
48 | + 'OCA\\Files_Trashbin\\Sabre\\TrashRoot' => __DIR__.'/..'.'/../lib/Sabre/TrashRoot.php', |
|
49 | + 'OCA\\Files_Trashbin\\Storage' => __DIR__.'/..'.'/../lib/Storage.php', |
|
50 | + 'OCA\\Files_Trashbin\\Trash\\BackendNotFoundException' => __DIR__.'/..'.'/../lib/Trash/BackendNotFoundException.php', |
|
51 | + 'OCA\\Files_Trashbin\\Trash\\ITrashBackend' => __DIR__.'/..'.'/../lib/Trash/ITrashBackend.php', |
|
52 | + 'OCA\\Files_Trashbin\\Trash\\ITrashItem' => __DIR__.'/..'.'/../lib/Trash/ITrashItem.php', |
|
53 | + 'OCA\\Files_Trashbin\\Trash\\ITrashManager' => __DIR__.'/..'.'/../lib/Trash/ITrashManager.php', |
|
54 | + 'OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend' => __DIR__.'/..'.'/../lib/Trash/LegacyTrashBackend.php', |
|
55 | + 'OCA\\Files_Trashbin\\Trash\\TrashItem' => __DIR__.'/..'.'/../lib/Trash/TrashItem.php', |
|
56 | + 'OCA\\Files_Trashbin\\Trash\\TrashManager' => __DIR__.'/..'.'/../lib/Trash/TrashManager.php', |
|
57 | + 'OCA\\Files_Trashbin\\Trashbin' => __DIR__.'/..'.'/../lib/Trashbin.php', |
|
58 | 58 | ); |
59 | 59 | |
60 | 60 | public static function getInitializer(ClassLoader $loader) |
61 | 61 | { |
62 | - return \Closure::bind(function () use ($loader) { |
|
62 | + return \Closure::bind(function() use ($loader) { |
|
63 | 63 | $loader->prefixLengthsPsr4 = ComposerStaticInitFiles_Trashbin::$prefixLengthsPsr4; |
64 | 64 | $loader->prefixDirsPsr4 = ComposerStaticInitFiles_Trashbin::$prefixDirsPsr4; |
65 | 65 | $loader->classMap = ComposerStaticInitFiles_Trashbin::$classMap; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $this->input = $input; |
135 | 135 | $this->output = $output; |
136 | 136 | |
137 | - $headline = 'Encrypt all files with the ' . Encryption::DISPLAY_NAME; |
|
137 | + $headline = 'Encrypt all files with the '.Encryption::DISPLAY_NAME; |
|
138 | 138 | $this->output->writeln("\n"); |
139 | 139 | $this->output->writeln($headline); |
140 | 140 | $this->output->writeln(str_pad('', strlen($headline), '=')); |
@@ -183,14 +183,14 @@ discard block |
||
183 | 183 | $progress->setFormat(" %message% \n [%bar%]"); |
184 | 184 | $progress->start(); |
185 | 185 | |
186 | - foreach($this->userManager->getBackends() as $backend) { |
|
186 | + foreach ($this->userManager->getBackends() as $backend) { |
|
187 | 187 | $limit = 500; |
188 | 188 | $offset = 0; |
189 | 189 | do { |
190 | 190 | $users = $backend->getUsers('', $limit, $offset); |
191 | 191 | foreach ($users as $user) { |
192 | 192 | if ($this->keyManager->userHasKeys($user) === false) { |
193 | - $progress->setMessage('Create key-pair for ' . $user); |
|
193 | + $progress->setMessage('Create key-pair for '.$user); |
|
194 | 194 | $progress->advance(); |
195 | 195 | $this->setupUserFS($user); |
196 | 196 | $password = $this->generateOneTimePassword($user); |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } |
203 | 203 | } |
204 | 204 | $offset += $limit; |
205 | - } while(count($users) >= $limit); |
|
205 | + } while (count($users) >= $limit); |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | $progress->setMessage('Key-pair created for all users'); |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | */ |
241 | 241 | protected function encryptAllUserFilesWithMasterKey(ProgressBar $progress) { |
242 | 242 | $userNo = 1; |
243 | - foreach($this->userManager->getBackends() as $backend) { |
|
243 | + foreach ($this->userManager->getBackends() as $backend) { |
|
244 | 244 | $limit = 500; |
245 | 245 | $offset = 0; |
246 | 246 | do { |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | $userNo++; |
252 | 252 | } |
253 | 253 | $offset += $limit; |
254 | - } while(count($users) >= $limit); |
|
254 | + } while (count($users) >= $limit); |
|
255 | 255 | } |
256 | 256 | } |
257 | 257 | |
@@ -266,19 +266,19 @@ discard block |
||
266 | 266 | |
267 | 267 | $this->setupUserFS($uid); |
268 | 268 | $directories = array(); |
269 | - $directories[] = '/' . $uid . '/files'; |
|
269 | + $directories[] = '/'.$uid.'/files'; |
|
270 | 270 | |
271 | - while($root = array_pop($directories)) { |
|
271 | + while ($root = array_pop($directories)) { |
|
272 | 272 | $content = $this->rootView->getDirectoryContent($root); |
273 | 273 | foreach ($content as $file) { |
274 | - $path = $root . '/' . $file['name']; |
|
274 | + $path = $root.'/'.$file['name']; |
|
275 | 275 | if ($this->rootView->is_dir($path)) { |
276 | 276 | $directories[] = $path; |
277 | 277 | continue; |
278 | 278 | } else { |
279 | 279 | $progress->setMessage("encrypt files for user $userCount: $path"); |
280 | 280 | $progress->advance(); |
281 | - if($this->encryptFile($path) === false) { |
|
281 | + if ($this->encryptFile($path) === false) { |
|
282 | 282 | $progress->setMessage("encrypt files for user $userCount: $path (already encrypted)"); |
283 | 283 | $progress->advance(); |
284 | 284 | } |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | } |
303 | 303 | |
304 | 304 | $source = $path; |
305 | - $target = $path . '.encrypted.' . time(); |
|
305 | + $target = $path.'.encrypted.'.time(); |
|
306 | 306 | |
307 | 307 | try { |
308 | 308 | $this->rootView->copy($source, $target); |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | continue; |
425 | 425 | } |
426 | 426 | |
427 | - $subject = (string)$this->l->t('one-time password for server-side-encryption'); |
|
427 | + $subject = (string) $this->l->t('one-time password for server-side-encryption'); |
|
428 | 428 | list($htmlBody, $textBody) = $this->createMailBody($password); |
429 | 429 | |
430 | 430 | // send it out now |
@@ -472,11 +472,11 @@ discard block |
||
472 | 472 | protected function createMailBody($password) { |
473 | 473 | |
474 | 474 | $html = new \OC_Template("encryption", "mail", ""); |
475 | - $html->assign ('password', $password); |
|
475 | + $html->assign('password', $password); |
|
476 | 476 | $htmlMail = $html->fetchPage(); |
477 | 477 | |
478 | 478 | $plainText = new \OC_Template("encryption", "altmail", ""); |
479 | - $plainText->assign ('password', $password); |
|
479 | + $plainText->assign('password', $password); |
|
480 | 480 | $plainTextMail = $plainText->fetchPage(); |
481 | 481 | |
482 | 482 | return [$htmlMail, $plainTextMail]; |
@@ -77,14 +77,14 @@ discard block |
||
77 | 77 | |
78 | 78 | // Check if the app is installed |
79 | 79 | if (!\OC_App::getAppPath($appId)) { |
80 | - $output->writeln($appId . ' is not installed'); |
|
80 | + $output->writeln($appId.' is not installed'); |
|
81 | 81 | return 1; |
82 | 82 | } |
83 | 83 | |
84 | 84 | // Removing shipped apps is not possible, therefore we pre-check that |
85 | 85 | // before trying to remove it |
86 | 86 | if ($this->manager->isShipped($appId)) { |
87 | - $output->writeln($appId . ' could not be removed as it is a shipped app'); |
|
87 | + $output->writeln($appId.' could not be removed as it is a shipped app'); |
|
88 | 88 | return 1; |
89 | 89 | } |
90 | 90 | |
@@ -93,9 +93,9 @@ discard block |
||
93 | 93 | if (!$input->getOption('keep-data')) { |
94 | 94 | try { |
95 | 95 | $this->manager->disableApp($appId); |
96 | - $output->writeln($appId . ' disabled'); |
|
97 | - } catch(Throwable $e) { |
|
98 | - $output->writeln('<error>Error: ' . $e->getMessage() . '</error>'); |
|
96 | + $output->writeln($appId.' disabled'); |
|
97 | + } catch (Throwable $e) { |
|
98 | + $output->writeln('<error>Error: '.$e->getMessage().'</error>'); |
|
99 | 99 | $this->logger->logException($e, [ |
100 | 100 | 'app' => 'CLI', |
101 | 101 | 'level' => ILogger::ERROR |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | // Let's try to remove the app... |
108 | 108 | try { |
109 | 109 | $result = $this->installer->removeApp($appId); |
110 | - } catch(Throwable $e) { |
|
111 | - $output->writeln('<error>Error: ' . $e->getMessage() . '</error>'); |
|
110 | + } catch (Throwable $e) { |
|
111 | + $output->writeln('<error>Error: '.$e->getMessage().'</error>'); |
|
112 | 112 | $this->logger->logException($e, [ |
113 | 113 | 'app' => 'CLI', |
114 | 114 | 'level' => ILogger::ERROR |
@@ -116,12 +116,12 @@ discard block |
||
116 | 116 | return 1; |
117 | 117 | } |
118 | 118 | |
119 | - if($result === false) { |
|
120 | - $output->writeln($appId . ' could not be removed'); |
|
119 | + if ($result === false) { |
|
120 | + $output->writeln($appId.' could not be removed'); |
|
121 | 121 | return 1; |
122 | 122 | } |
123 | 123 | |
124 | - $output->writeln($appId . ' removed'); |
|
124 | + $output->writeln($appId.' removed'); |
|
125 | 125 | |
126 | 126 | return 0; |
127 | 127 | } |