@@ -25,11 +25,11 @@ |
||
25 | 25 | namespace OCA\Files_Trashbin\Sabre; |
26 | 26 | |
27 | 27 | class TrashFile extends AbstractTrashFile { |
28 | - public function get() { |
|
29 | - return $this->data->getStorage()->fopen($this->data->getInternalPath() . '.d' . $this->getLastModified(), 'rb'); |
|
30 | - } |
|
28 | + public function get() { |
|
29 | + return $this->data->getStorage()->fopen($this->data->getInternalPath() . '.d' . $this->getLastModified(), 'rb'); |
|
30 | + } |
|
31 | 31 | |
32 | - public function getName(): string { |
|
33 | - return $this->data->getName() . '.d' . $this->getLastModified(); |
|
34 | - } |
|
32 | + public function getName(): string { |
|
33 | + return $this->data->getName() . '.d' . $this->getLastModified(); |
|
34 | + } |
|
35 | 35 | } |
@@ -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; |
@@ -36,57 +36,57 @@ |
||
36 | 36 | */ |
37 | 37 | interface IAccount extends \JsonSerializable { |
38 | 38 | |
39 | - /** |
|
40 | - * Set a property with data |
|
41 | - * |
|
42 | - * @since 15.0.0 |
|
43 | - * |
|
44 | - * @param string $property Must be one of the PROPERTY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
45 | - * @param string $value |
|
46 | - * @param string $scope Must be one of the VISIBILITY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
47 | - * @param string $verified \OCP\Accounts\IAccountManager::NOT_VERIFIED | \OCP\Accounts\IAccountManager::VERIFICATION_IN_PROGRESS | \OCP\Accounts\IAccountManager::VERIFIED |
|
48 | - * @return IAccount |
|
49 | - */ |
|
50 | - public function setProperty(string $property, string $value, string $scope, string $verified): IAccount; |
|
39 | + /** |
|
40 | + * Set a property with data |
|
41 | + * |
|
42 | + * @since 15.0.0 |
|
43 | + * |
|
44 | + * @param string $property Must be one of the PROPERTY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
45 | + * @param string $value |
|
46 | + * @param string $scope Must be one of the VISIBILITY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
47 | + * @param string $verified \OCP\Accounts\IAccountManager::NOT_VERIFIED | \OCP\Accounts\IAccountManager::VERIFICATION_IN_PROGRESS | \OCP\Accounts\IAccountManager::VERIFIED |
|
48 | + * @return IAccount |
|
49 | + */ |
|
50 | + public function setProperty(string $property, string $value, string $scope, string $verified): IAccount; |
|
51 | 51 | |
52 | - /** |
|
53 | - * Get a property by its key |
|
54 | - * |
|
55 | - * @since 15.0.0 |
|
56 | - * |
|
57 | - * @param string $property Must be one of the PROPERTY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
58 | - * @return IAccountProperty |
|
59 | - * @throws PropertyDoesNotExistException |
|
60 | - */ |
|
61 | - public function getProperty(string $property): IAccountProperty; |
|
52 | + /** |
|
53 | + * Get a property by its key |
|
54 | + * |
|
55 | + * @since 15.0.0 |
|
56 | + * |
|
57 | + * @param string $property Must be one of the PROPERTY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
58 | + * @return IAccountProperty |
|
59 | + * @throws PropertyDoesNotExistException |
|
60 | + */ |
|
61 | + public function getProperty(string $property): IAccountProperty; |
|
62 | 62 | |
63 | - /** |
|
64 | - * Get all properties of an account |
|
65 | - * |
|
66 | - * @since 15.0.0 |
|
67 | - * |
|
68 | - * @return IAccountProperty[] |
|
69 | - */ |
|
70 | - public function getProperties(): array; |
|
63 | + /** |
|
64 | + * Get all properties of an account |
|
65 | + * |
|
66 | + * @since 15.0.0 |
|
67 | + * |
|
68 | + * @return IAccountProperty[] |
|
69 | + */ |
|
70 | + public function getProperties(): array; |
|
71 | 71 | |
72 | - /** |
|
73 | - * Get all properties that match the provided filters for scope and verification status |
|
74 | - * |
|
75 | - * @since 15.0.0 |
|
76 | - * |
|
77 | - * @param string $scope Must be one of the VISIBILITY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
78 | - * @param string $verified \OCP\Accounts\IAccountManager::NOT_VERIFIED | \OCP\Accounts\IAccountManager::VERIFICATION_IN_PROGRESS | \OCP\Accounts\IAccountManager::VERIFIED |
|
79 | - * @return IAccountProperty[] |
|
80 | - */ |
|
81 | - public function getFilteredProperties(string $scope = null, string $verified = null): array; |
|
72 | + /** |
|
73 | + * Get all properties that match the provided filters for scope and verification status |
|
74 | + * |
|
75 | + * @since 15.0.0 |
|
76 | + * |
|
77 | + * @param string $scope Must be one of the VISIBILITY_ prefixed constants of \OCP\Accounts\IAccountManager |
|
78 | + * @param string $verified \OCP\Accounts\IAccountManager::NOT_VERIFIED | \OCP\Accounts\IAccountManager::VERIFICATION_IN_PROGRESS | \OCP\Accounts\IAccountManager::VERIFIED |
|
79 | + * @return IAccountProperty[] |
|
80 | + */ |
|
81 | + public function getFilteredProperties(string $scope = null, string $verified = null): array; |
|
82 | 82 | |
83 | - /** |
|
84 | - * Get the related user for the account data |
|
85 | - * |
|
86 | - * @since 15.0.0 |
|
87 | - * |
|
88 | - * @return IUser |
|
89 | - */ |
|
90 | - public function getUser(): IUser; |
|
83 | + /** |
|
84 | + * Get the related user for the account data |
|
85 | + * |
|
86 | + * @since 15.0.0 |
|
87 | + * |
|
88 | + * @return IUser |
|
89 | + */ |
|
90 | + public function getUser(): IUser; |
|
91 | 91 | |
92 | 92 | } |
@@ -50,17 +50,23 @@ |
||
50 | 50 | <div id="preview"> |
51 | 51 | <?php if (isset($_['folder'])): ?> |
52 | 52 | <?php print_unescaped($_['folder']); ?> |
53 | - <?php else: ?> |
|
53 | + <?php else { |
|
54 | + : ?> |
|
54 | 55 | <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?> |
55 | 56 | <div id="imgframe"> |
56 | - <audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"> |
|
57 | + <audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); |
|
58 | +} |
|
59 | +?>px; max-height: <?php p($_['previewMaxY']); ?>px"> |
|
57 | 60 | <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> |
58 | 61 | </audio> |
59 | 62 | </div> |
60 | - <?php else: ?> |
|
63 | + <?php else { |
|
64 | + : ?> |
|
61 | 65 | <!-- Preview frame is filled via JS to support SVG images for modern browsers --> |
62 | 66 | <div id="imgframe"></div> |
63 | - <?php endif; ?> |
|
67 | + <?php endif; |
|
68 | +} |
|
69 | +?> |
|
64 | 70 | <?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?> |
65 | 71 | <div class="directDownload"> |
66 | 72 | <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button"> |
@@ -111,10 +111,10 @@ |
||
111 | 111 | <?php if (!empty($_['disclaimer'])) { ?> |
112 | 112 | <div> |
113 | 113 | <?php |
114 | - echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [ |
|
115 | - '<span id="show-terms-dialog">', '</span>' |
|
116 | - ]); |
|
117 | - ?> |
|
114 | + echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [ |
|
115 | + '<span id="show-terms-dialog">', '</span>' |
|
116 | + ]); |
|
117 | + ?> |
|
118 | 118 | </div> |
119 | 119 | <?php } ?> |
120 | 120 | </div> |
@@ -45,45 +45,45 @@ |
||
45 | 45 | interface ISearchService { |
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * generate a search request, based on an array: |
|
50 | - * |
|
51 | - * $request = |
|
52 | - * [ |
|
53 | - * 'providers' => (string/array) 'all' |
|
54 | - * 'author' => (string) owner of the document. |
|
55 | - * 'search' => (string) search string, |
|
56 | - * 'size' => (int) number of items to be return |
|
57 | - * 'page' => (int) page |
|
58 | - * 'parts' => (array) parts of document to search within, |
|
59 | - * 'options' = (array) search options, |
|
60 | - * 'tags' => (array) tags, |
|
61 | - * 'metatags' => (array) metatags, |
|
62 | - * 'subtags' => (array) subtags |
|
63 | - * ] |
|
64 | - * |
|
65 | - * 'providers' can be an array of providerIds |
|
66 | - * |
|
67 | - * @since 15.0.0 |
|
68 | - * |
|
69 | - * @param array $request |
|
70 | - * |
|
71 | - * @return ISearchRequest |
|
72 | - */ |
|
73 | - public function generateSearchRequest(array $request): ISearchRequest; |
|
48 | + /** |
|
49 | + * generate a search request, based on an array: |
|
50 | + * |
|
51 | + * $request = |
|
52 | + * [ |
|
53 | + * 'providers' => (string/array) 'all' |
|
54 | + * 'author' => (string) owner of the document. |
|
55 | + * 'search' => (string) search string, |
|
56 | + * 'size' => (int) number of items to be return |
|
57 | + * 'page' => (int) page |
|
58 | + * 'parts' => (array) parts of document to search within, |
|
59 | + * 'options' = (array) search options, |
|
60 | + * 'tags' => (array) tags, |
|
61 | + * 'metatags' => (array) metatags, |
|
62 | + * 'subtags' => (array) subtags |
|
63 | + * ] |
|
64 | + * |
|
65 | + * 'providers' can be an array of providerIds |
|
66 | + * |
|
67 | + * @since 15.0.0 |
|
68 | + * |
|
69 | + * @param array $request |
|
70 | + * |
|
71 | + * @return ISearchRequest |
|
72 | + */ |
|
73 | + public function generateSearchRequest(array $request): ISearchRequest; |
|
74 | 74 | |
75 | 75 | |
76 | - /** |
|
77 | - * Search documents |
|
78 | - * |
|
79 | - * @since 15.0.0 |
|
80 | - * |
|
81 | - * @param string $userId |
|
82 | - * @param ISearchRequest $searchRequest |
|
83 | - * |
|
84 | - * @return ISearchResult[] |
|
85 | - */ |
|
86 | - public function search(string $userId, ISearchRequest $searchRequest): array; |
|
76 | + /** |
|
77 | + * Search documents |
|
78 | + * |
|
79 | + * @since 15.0.0 |
|
80 | + * |
|
81 | + * @param string $userId |
|
82 | + * @param ISearchRequest $searchRequest |
|
83 | + * |
|
84 | + * @return ISearchResult[] |
|
85 | + */ |
|
86 | + public function search(string $userId, ISearchRequest $searchRequest): array; |
|
87 | 87 | |
88 | 88 | } |
89 | 89 |
@@ -46,41 +46,41 @@ |
||
46 | 46 | interface IIndexOptions { |
47 | 47 | |
48 | 48 | |
49 | - /** |
|
50 | - * Get the value (as a string) for an option. |
|
51 | - * |
|
52 | - * @since 15.0.0 |
|
53 | - * |
|
54 | - * @param string $option |
|
55 | - * @param string $default |
|
56 | - * |
|
57 | - * @return string |
|
58 | - */ |
|
59 | - public function getOption(string $option, string $default = ''): string; |
|
49 | + /** |
|
50 | + * Get the value (as a string) for an option. |
|
51 | + * |
|
52 | + * @since 15.0.0 |
|
53 | + * |
|
54 | + * @param string $option |
|
55 | + * @param string $default |
|
56 | + * |
|
57 | + * @return string |
|
58 | + */ |
|
59 | + public function getOption(string $option, string $default = ''): string; |
|
60 | 60 | |
61 | - /** |
|
62 | - * Get the value (as an array) for an option. |
|
63 | - * |
|
64 | - * @since 15.0.0 |
|
65 | - * |
|
66 | - * @param string $option |
|
67 | - * @param array $default |
|
68 | - * |
|
69 | - * @return array |
|
70 | - */ |
|
71 | - public function getOptionArray(string $option, array $default = []): array; |
|
61 | + /** |
|
62 | + * Get the value (as an array) for an option. |
|
63 | + * |
|
64 | + * @since 15.0.0 |
|
65 | + * |
|
66 | + * @param string $option |
|
67 | + * @param array $default |
|
68 | + * |
|
69 | + * @return array |
|
70 | + */ |
|
71 | + public function getOptionArray(string $option, array $default = []): array; |
|
72 | 72 | |
73 | - /** |
|
74 | - * Get the value (as an boolean) for an option. |
|
75 | - * |
|
76 | - * @since 15.0.0 |
|
77 | - * |
|
78 | - * @param string $option |
|
79 | - * @param bool $default |
|
80 | - * |
|
81 | - * @return bool |
|
82 | - */ |
|
83 | - public function getOptionBool(string $option, bool $default): bool; |
|
73 | + /** |
|
74 | + * Get the value (as an boolean) for an option. |
|
75 | + * |
|
76 | + * @since 15.0.0 |
|
77 | + * |
|
78 | + * @param string $option |
|
79 | + * @param bool $default |
|
80 | + * |
|
81 | + * @return bool |
|
82 | + */ |
|
83 | + public function getOptionBool(string $option, bool $default): bool; |
|
84 | 84 | |
85 | 85 | } |
86 | 86 |
@@ -26,16 +26,16 @@ |
||
26 | 26 | use OC\Authentication\Token\IToken; |
27 | 27 | |
28 | 28 | class ExpiredTokenException extends InvalidTokenException { |
29 | - /** @var IToken */ |
|
30 | - private $token; |
|
29 | + /** @var IToken */ |
|
30 | + private $token; |
|
31 | 31 | |
32 | - public function __construct(IToken $token) { |
|
33 | - parent::__construct(); |
|
32 | + public function __construct(IToken $token) { |
|
33 | + parent::__construct(); |
|
34 | 34 | |
35 | - $this->token = $token; |
|
36 | - } |
|
35 | + $this->token = $token; |
|
36 | + } |
|
37 | 37 | |
38 | - public function getToken(): IToken { |
|
39 | - return $this->token; |
|
40 | - } |
|
38 | + public function getToken(): IToken { |
|
39 | + return $this->token; |
|
40 | + } |
|
41 | 41 | } |
@@ -27,14 +27,14 @@ |
||
27 | 27 | * @since 15.0.0 |
28 | 28 | */ |
29 | 29 | interface IWriteStreamStorage extends IStorage { |
30 | - /** |
|
31 | - * Write the data from a stream to a file |
|
32 | - * |
|
33 | - * @param string $path |
|
34 | - * @param resource $stream |
|
35 | - * @param int|null $size the size of the stream if known in advance |
|
36 | - * @return int the number of bytes written |
|
37 | - * @since 15.0.0 |
|
38 | - */ |
|
39 | - public function writeStream(string $path, $stream, int $size = null): int; |
|
30 | + /** |
|
31 | + * Write the data from a stream to a file |
|
32 | + * |
|
33 | + * @param string $path |
|
34 | + * @param resource $stream |
|
35 | + * @param int|null $size the size of the stream if known in advance |
|
36 | + * @return int the number of bytes written |
|
37 | + * @since 15.0.0 |
|
38 | + */ |
|
39 | + public function writeStream(string $path, $stream, int $size = null): int; |
|
40 | 40 | } |