@@ -24,33 +24,33 @@ |
||
24 | 24 | use OCP\IUser; |
25 | 25 | |
26 | 26 | interface ITrashManager extends ITrashBackend { |
27 | - /** |
|
28 | - * Add a backend for the trashbin |
|
29 | - * |
|
30 | - * @param string $storageType |
|
31 | - * @param ITrashBackend $backend |
|
32 | - * @since 15.0.0 |
|
33 | - */ |
|
34 | - public function registerBackend(string $storageType, ITrashBackend $backend); |
|
27 | + /** |
|
28 | + * Add a backend for the trashbin |
|
29 | + * |
|
30 | + * @param string $storageType |
|
31 | + * @param ITrashBackend $backend |
|
32 | + * @since 15.0.0 |
|
33 | + */ |
|
34 | + public function registerBackend(string $storageType, ITrashBackend $backend); |
|
35 | 35 | |
36 | - /** |
|
37 | - * List all trash items in the root of the trashbin |
|
38 | - * |
|
39 | - * @param IUser $user |
|
40 | - * @return ITrashItem[] |
|
41 | - * @since 15.0.0 |
|
42 | - */ |
|
43 | - public function listTrashRoot(IUser $user): array; |
|
36 | + /** |
|
37 | + * List all trash items in the root of the trashbin |
|
38 | + * |
|
39 | + * @param IUser $user |
|
40 | + * @return ITrashItem[] |
|
41 | + * @since 15.0.0 |
|
42 | + */ |
|
43 | + public function listTrashRoot(IUser $user): array; |
|
44 | 44 | |
45 | - /** |
|
46 | - * Temporally prevent files from being moved to the trash |
|
47 | - * |
|
48 | - * @since 15.0.0 |
|
49 | - */ |
|
50 | - public function pauseTrash(); |
|
45 | + /** |
|
46 | + * Temporally prevent files from being moved to the trash |
|
47 | + * |
|
48 | + * @since 15.0.0 |
|
49 | + */ |
|
50 | + public function pauseTrash(); |
|
51 | 51 | |
52 | - /** |
|
53 | - * @since 15.0.0 |
|
54 | - */ |
|
55 | - public function resumeTrash(); |
|
52 | + /** |
|
53 | + * @since 15.0.0 |
|
54 | + */ |
|
55 | + public function resumeTrash(); |
|
56 | 56 | } |
@@ -31,54 +31,54 @@ |
||
31 | 31 | * @since 15.0.0 |
32 | 32 | */ |
33 | 33 | interface ITrashBackend { |
34 | - /** |
|
35 | - * List all trash items in the root of the trashbin |
|
36 | - * |
|
37 | - * @param IUser $user |
|
38 | - * @return ITrashItem[] |
|
39 | - * @since 15.0.0 |
|
40 | - */ |
|
41 | - public function listTrashRoot(IUser $user): array; |
|
34 | + /** |
|
35 | + * List all trash items in the root of the trashbin |
|
36 | + * |
|
37 | + * @param IUser $user |
|
38 | + * @return ITrashItem[] |
|
39 | + * @since 15.0.0 |
|
40 | + */ |
|
41 | + public function listTrashRoot(IUser $user): array; |
|
42 | 42 | |
43 | - /** |
|
44 | - * List all trash items in a subfolder in the trashbin |
|
45 | - * |
|
46 | - * @param ITrashItem $folder |
|
47 | - * @return ITrashItem[] |
|
48 | - * @since 15.0.0 |
|
49 | - */ |
|
50 | - public function listTrashFolder(ITrashItem $folder): array; |
|
43 | + /** |
|
44 | + * List all trash items in a subfolder in the trashbin |
|
45 | + * |
|
46 | + * @param ITrashItem $folder |
|
47 | + * @return ITrashItem[] |
|
48 | + * @since 15.0.0 |
|
49 | + */ |
|
50 | + public function listTrashFolder(ITrashItem $folder): array; |
|
51 | 51 | |
52 | - /** |
|
53 | - * Restore a trashbin item |
|
54 | - * |
|
55 | - * @param ITrashItem $item |
|
56 | - * @since 15.0.0 |
|
57 | - */ |
|
58 | - public function restoreItem(ITrashItem $item); |
|
52 | + /** |
|
53 | + * Restore a trashbin item |
|
54 | + * |
|
55 | + * @param ITrashItem $item |
|
56 | + * @since 15.0.0 |
|
57 | + */ |
|
58 | + public function restoreItem(ITrashItem $item); |
|
59 | 59 | |
60 | - /** |
|
61 | - * Permanently remove an item from trash |
|
62 | - * |
|
63 | - * @param ITrashItem $item |
|
64 | - * @since 15.0.0 |
|
65 | - */ |
|
66 | - public function removeItem(ITrashItem $item); |
|
60 | + /** |
|
61 | + * Permanently remove an item from trash |
|
62 | + * |
|
63 | + * @param ITrashItem $item |
|
64 | + * @since 15.0.0 |
|
65 | + */ |
|
66 | + public function removeItem(ITrashItem $item); |
|
67 | 67 | |
68 | - /** |
|
69 | - * Move a file or folder to trash |
|
70 | - * |
|
71 | - * @param IStorage $storage |
|
72 | - * @param string $internalPath |
|
73 | - * @return boolean whether or not the file was moved to trash, if false then the file should be deleted normally |
|
74 | - * @since 15.0.0 |
|
75 | - */ |
|
76 | - public function moveToTrash(IStorage $storage, string $internalPath): bool; |
|
68 | + /** |
|
69 | + * Move a file or folder to trash |
|
70 | + * |
|
71 | + * @param IStorage $storage |
|
72 | + * @param string $internalPath |
|
73 | + * @return boolean whether or not the file was moved to trash, if false then the file should be deleted normally |
|
74 | + * @since 15.0.0 |
|
75 | + */ |
|
76 | + public function moveToTrash(IStorage $storage, string $internalPath): bool; |
|
77 | 77 | |
78 | - /** |
|
79 | - * @param IUser $user |
|
80 | - * @param int $fileId |
|
81 | - * @return Node|null |
|
82 | - */ |
|
83 | - public function getTrashNodeById(IUser $user, int $fileId); |
|
78 | + /** |
|
79 | + * @param IUser $user |
|
80 | + * @param int $fileId |
|
81 | + * @return Node|null |
|
82 | + */ |
|
83 | + public function getTrashNodeById(IUser $user, int $fileId); |
|
84 | 84 | } |
@@ -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 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | namespace OCA\Files_Trashbin\Sabre; |
29 | 29 | |
30 | 30 | class TrashFolder extends AbstractTrashFolder { |
31 | - public function getName(): string { |
|
32 | - return $this->data->getName() . '.d' . $this->getLastModified(); |
|
33 | - } |
|
31 | + public function getName(): string { |
|
32 | + return $this->data->getName() . '.d' . $this->getLastModified(); |
|
33 | + } |
|
34 | 34 | } |
@@ -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 | } |
@@ -37,75 +37,75 @@ |
||
37 | 37 | |
38 | 38 | class TrashRoot implements ICollection { |
39 | 39 | |
40 | - /** @var IUser */ |
|
41 | - private $user; |
|
42 | - |
|
43 | - /** @var ITrashManager */ |
|
44 | - private $trashManager; |
|
45 | - |
|
46 | - public function __construct(IUser $user, ITrashManager $trashManager) { |
|
47 | - $this->user = $user; |
|
48 | - $this->trashManager = $trashManager; |
|
49 | - } |
|
50 | - |
|
51 | - public function delete() { |
|
52 | - \OCA\Files_Trashbin\Trashbin::deleteAll(); |
|
53 | - foreach ($this->trashManager->listTrashRoot($this->user) as $trashItem) { |
|
54 | - $this->trashManager->removeItem($trashItem); |
|
55 | - } |
|
56 | - } |
|
57 | - |
|
58 | - public function getName(): string { |
|
59 | - return 'trash'; |
|
60 | - } |
|
61 | - |
|
62 | - public function setName($name) { |
|
63 | - throw new Forbidden('Permission denied to rename this trashbin'); |
|
64 | - } |
|
65 | - |
|
66 | - public function createFile($name, $data = null) { |
|
67 | - throw new Forbidden('Not allowed to create files in the trashbin'); |
|
68 | - } |
|
69 | - |
|
70 | - public function createDirectory($name) { |
|
71 | - throw new Forbidden('Not allowed to create folders in the trashbin'); |
|
72 | - } |
|
73 | - |
|
74 | - public function getChildren(): array { |
|
75 | - $entries = $this->trashManager->listTrashRoot($this->user); |
|
76 | - |
|
77 | - $children = array_map(function (ITrashItem $entry) { |
|
78 | - if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
79 | - return new TrashFolder($this->trashManager, $entry); |
|
80 | - } |
|
81 | - return new TrashFile($this->trashManager, $entry); |
|
82 | - }, $entries); |
|
83 | - |
|
84 | - return $children; |
|
85 | - } |
|
86 | - |
|
87 | - public function getChild($name): ITrash { |
|
88 | - $entries = $this->getChildren(); |
|
89 | - |
|
90 | - foreach ($entries as $entry) { |
|
91 | - if ($entry->getName() === $name) { |
|
92 | - return $entry; |
|
93 | - } |
|
94 | - } |
|
95 | - |
|
96 | - throw new NotFound(); |
|
97 | - } |
|
98 | - |
|
99 | - public function childExists($name): bool { |
|
100 | - try { |
|
101 | - $this->getChild($name); |
|
102 | - return true; |
|
103 | - } catch (NotFound $e) { |
|
104 | - return false; |
|
105 | - } |
|
106 | - } |
|
107 | - |
|
108 | - public function getLastModified(): int { |
|
109 | - return 0; |
|
110 | - } |
|
40 | + /** @var IUser */ |
|
41 | + private $user; |
|
42 | + |
|
43 | + /** @var ITrashManager */ |
|
44 | + private $trashManager; |
|
45 | + |
|
46 | + public function __construct(IUser $user, ITrashManager $trashManager) { |
|
47 | + $this->user = $user; |
|
48 | + $this->trashManager = $trashManager; |
|
49 | + } |
|
50 | + |
|
51 | + public function delete() { |
|
52 | + \OCA\Files_Trashbin\Trashbin::deleteAll(); |
|
53 | + foreach ($this->trashManager->listTrashRoot($this->user) as $trashItem) { |
|
54 | + $this->trashManager->removeItem($trashItem); |
|
55 | + } |
|
56 | + } |
|
57 | + |
|
58 | + public function getName(): string { |
|
59 | + return 'trash'; |
|
60 | + } |
|
61 | + |
|
62 | + public function setName($name) { |
|
63 | + throw new Forbidden('Permission denied to rename this trashbin'); |
|
64 | + } |
|
65 | + |
|
66 | + public function createFile($name, $data = null) { |
|
67 | + throw new Forbidden('Not allowed to create files in the trashbin'); |
|
68 | + } |
|
69 | + |
|
70 | + public function createDirectory($name) { |
|
71 | + throw new Forbidden('Not allowed to create folders in the trashbin'); |
|
72 | + } |
|
73 | + |
|
74 | + public function getChildren(): array { |
|
75 | + $entries = $this->trashManager->listTrashRoot($this->user); |
|
76 | + |
|
77 | + $children = array_map(function (ITrashItem $entry) { |
|
78 | + if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
79 | + return new TrashFolder($this->trashManager, $entry); |
|
80 | + } |
|
81 | + return new TrashFile($this->trashManager, $entry); |
|
82 | + }, $entries); |
|
83 | + |
|
84 | + return $children; |
|
85 | + } |
|
86 | + |
|
87 | + public function getChild($name): ITrash { |
|
88 | + $entries = $this->getChildren(); |
|
89 | + |
|
90 | + foreach ($entries as $entry) { |
|
91 | + if ($entry->getName() === $name) { |
|
92 | + return $entry; |
|
93 | + } |
|
94 | + } |
|
95 | + |
|
96 | + throw new NotFound(); |
|
97 | + } |
|
98 | + |
|
99 | + public function childExists($name): bool { |
|
100 | + try { |
|
101 | + $this->getChild($name); |
|
102 | + return true; |
|
103 | + } catch (NotFound $e) { |
|
104 | + return false; |
|
105 | + } |
|
106 | + } |
|
107 | + |
|
108 | + public function getLastModified(): int { |
|
109 | + return 0; |
|
110 | + } |
|
111 | 111 | } |
@@ -29,49 +29,49 @@ |
||
29 | 29 | use Sabre\DAV\ICollection; |
30 | 30 | |
31 | 31 | abstract class AbstractTrashFolder extends AbstractTrash implements ICollection, ITrash { |
32 | - public function getChildren(): array { |
|
33 | - $entries = $this->trashManager->listTrashFolder($this->data); |
|
32 | + public function getChildren(): array { |
|
33 | + $entries = $this->trashManager->listTrashFolder($this->data); |
|
34 | 34 | |
35 | - $children = array_map(function (ITrashItem $entry) { |
|
36 | - if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
37 | - return new TrashFolderFolder($this->trashManager, $entry); |
|
38 | - } |
|
39 | - return new TrashFolderFile($this->trashManager, $entry); |
|
40 | - }, $entries); |
|
35 | + $children = array_map(function (ITrashItem $entry) { |
|
36 | + if ($entry->getType() === FileInfo::TYPE_FOLDER) { |
|
37 | + return new TrashFolderFolder($this->trashManager, $entry); |
|
38 | + } |
|
39 | + return new TrashFolderFile($this->trashManager, $entry); |
|
40 | + }, $entries); |
|
41 | 41 | |
42 | - return $children; |
|
43 | - } |
|
42 | + return $children; |
|
43 | + } |
|
44 | 44 | |
45 | - public function getChild($name): ITrash { |
|
46 | - $entries = $this->getChildren(); |
|
45 | + public function getChild($name): ITrash { |
|
46 | + $entries = $this->getChildren(); |
|
47 | 47 | |
48 | - foreach ($entries as $entry) { |
|
49 | - if ($entry->getName() === $name) { |
|
50 | - return $entry; |
|
51 | - } |
|
52 | - } |
|
48 | + foreach ($entries as $entry) { |
|
49 | + if ($entry->getName() === $name) { |
|
50 | + return $entry; |
|
51 | + } |
|
52 | + } |
|
53 | 53 | |
54 | - throw new NotFound(); |
|
55 | - } |
|
54 | + throw new NotFound(); |
|
55 | + } |
|
56 | 56 | |
57 | - public function childExists($name): bool { |
|
58 | - try { |
|
59 | - $this->getChild($name); |
|
60 | - return true; |
|
61 | - } catch (NotFound $e) { |
|
62 | - return false; |
|
63 | - } |
|
64 | - } |
|
57 | + public function childExists($name): bool { |
|
58 | + try { |
|
59 | + $this->getChild($name); |
|
60 | + return true; |
|
61 | + } catch (NotFound $e) { |
|
62 | + return false; |
|
63 | + } |
|
64 | + } |
|
65 | 65 | |
66 | - public function setName($name) { |
|
67 | - throw new Forbidden(); |
|
68 | - } |
|
66 | + public function setName($name) { |
|
67 | + throw new Forbidden(); |
|
68 | + } |
|
69 | 69 | |
70 | - public function createFile($name, $data = null) { |
|
71 | - throw new Forbidden(); |
|
72 | - } |
|
70 | + public function createFile($name, $data = null) { |
|
71 | + throw new Forbidden(); |
|
72 | + } |
|
73 | 73 | |
74 | - public function createDirectory($name) { |
|
75 | - throw new Forbidden(); |
|
76 | - } |
|
74 | + public function createDirectory($name) { |
|
75 | + throw new Forbidden(); |
|
76 | + } |
|
77 | 77 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -25,12 +25,12 @@ |
||
25 | 25 | * @since 15.0.0 |
26 | 26 | */ |
27 | 27 | interface IVersionManager extends IVersionBackend { |
28 | - /** |
|
29 | - * Register a new backend |
|
30 | - * |
|
31 | - * @param string $storageType |
|
32 | - * @param IVersionBackend $backend |
|
33 | - * @since 15.0.0 |
|
34 | - */ |
|
35 | - public function registerBackend(string $storageType, IVersionBackend $backend); |
|
28 | + /** |
|
29 | + * Register a new backend |
|
30 | + * |
|
31 | + * @param string $storageType |
|
32 | + * @param IVersionBackend $backend |
|
33 | + * @since 15.0.0 |
|
34 | + */ |
|
35 | + public function registerBackend(string $storageType, IVersionBackend $backend); |
|
36 | 36 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | public function getChild($name) { |
72 | 72 | $userFolder = $this->rootFolder->getUserFolder($this->user->getUID()); |
73 | 73 | |
74 | - $fileId = (int)$name; |
|
74 | + $fileId = (int) $name; |
|
75 | 75 | $nodes = $userFolder->getById($fileId); |
76 | 76 | |
77 | 77 | if ($nodes === []) { |
@@ -36,74 +36,74 @@ |
||
36 | 36 | |
37 | 37 | class VersionRoot implements ICollection { |
38 | 38 | |
39 | - /** @var IUser */ |
|
40 | - private $user; |
|
39 | + /** @var IUser */ |
|
40 | + private $user; |
|
41 | 41 | |
42 | - /** @var IRootFolder */ |
|
43 | - private $rootFolder; |
|
42 | + /** @var IRootFolder */ |
|
43 | + private $rootFolder; |
|
44 | 44 | |
45 | - /** @var IVersionManager */ |
|
46 | - private $versionManager; |
|
45 | + /** @var IVersionManager */ |
|
46 | + private $versionManager; |
|
47 | 47 | |
48 | - public function __construct(IUser $user, IRootFolder $rootFolder, IVersionManager $versionManager) { |
|
49 | - $this->user = $user; |
|
50 | - $this->rootFolder = $rootFolder; |
|
51 | - $this->versionManager = $versionManager; |
|
52 | - } |
|
48 | + public function __construct(IUser $user, IRootFolder $rootFolder, IVersionManager $versionManager) { |
|
49 | + $this->user = $user; |
|
50 | + $this->rootFolder = $rootFolder; |
|
51 | + $this->versionManager = $versionManager; |
|
52 | + } |
|
53 | 53 | |
54 | - public function delete() { |
|
55 | - throw new Forbidden(); |
|
56 | - } |
|
54 | + public function delete() { |
|
55 | + throw new Forbidden(); |
|
56 | + } |
|
57 | 57 | |
58 | - public function getName(): string { |
|
59 | - return 'versions'; |
|
60 | - } |
|
58 | + public function getName(): string { |
|
59 | + return 'versions'; |
|
60 | + } |
|
61 | 61 | |
62 | - public function setName($name) { |
|
63 | - throw new Forbidden(); |
|
64 | - } |
|
62 | + public function setName($name) { |
|
63 | + throw new Forbidden(); |
|
64 | + } |
|
65 | 65 | |
66 | - public function createFile($name, $data = null) { |
|
67 | - throw new Forbidden(); |
|
68 | - } |
|
66 | + public function createFile($name, $data = null) { |
|
67 | + throw new Forbidden(); |
|
68 | + } |
|
69 | 69 | |
70 | - public function createDirectory($name) { |
|
71 | - throw new Forbidden(); |
|
72 | - } |
|
70 | + public function createDirectory($name) { |
|
71 | + throw new Forbidden(); |
|
72 | + } |
|
73 | 73 | |
74 | - public function getChild($name) { |
|
75 | - $userFolder = $this->rootFolder->getUserFolder($this->user->getUID()); |
|
74 | + public function getChild($name) { |
|
75 | + $userFolder = $this->rootFolder->getUserFolder($this->user->getUID()); |
|
76 | 76 | |
77 | - $fileId = (int)$name; |
|
78 | - $nodes = $userFolder->getById($fileId); |
|
77 | + $fileId = (int)$name; |
|
78 | + $nodes = $userFolder->getById($fileId); |
|
79 | 79 | |
80 | - if ($nodes === []) { |
|
81 | - throw new NotFound(); |
|
82 | - } |
|
80 | + if ($nodes === []) { |
|
81 | + throw new NotFound(); |
|
82 | + } |
|
83 | 83 | |
84 | - $node = array_pop($nodes); |
|
84 | + $node = array_pop($nodes); |
|
85 | 85 | |
86 | - if (!$node instanceof File) { |
|
87 | - throw new NotFound(); |
|
88 | - } |
|
86 | + if (!$node instanceof File) { |
|
87 | + throw new NotFound(); |
|
88 | + } |
|
89 | 89 | |
90 | - return new VersionCollection($node, $this->user, $this->versionManager); |
|
91 | - } |
|
90 | + return new VersionCollection($node, $this->user, $this->versionManager); |
|
91 | + } |
|
92 | 92 | |
93 | - public function getChildren(): array { |
|
94 | - return []; |
|
95 | - } |
|
93 | + public function getChildren(): array { |
|
94 | + return []; |
|
95 | + } |
|
96 | 96 | |
97 | - public function childExists($name): bool { |
|
98 | - try { |
|
99 | - $this->getChild($name); |
|
100 | - return true; |
|
101 | - } catch (NotFound $e) { |
|
102 | - return false; |
|
103 | - } |
|
104 | - } |
|
97 | + public function childExists($name): bool { |
|
98 | + try { |
|
99 | + $this->getChild($name); |
|
100 | + return true; |
|
101 | + } catch (NotFound $e) { |
|
102 | + return false; |
|
103 | + } |
|
104 | + } |
|
105 | 105 | |
106 | - public function getLastModified(): int { |
|
107 | - return 0; |
|
108 | - } |
|
106 | + public function getLastModified(): int { |
|
107 | + return 0; |
|
108 | + } |
|
109 | 109 | } |