@@ -29,8 +29,8 @@ |
||
29 | 29 | */ |
30 | 30 | interface ICreateGroupBackend { |
31 | 31 | |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - */ |
|
35 | - public function createGroup(string $gid): bool; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + */ |
|
35 | + public function createGroup(string $gid): bool; |
|
36 | 36 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | */ |
30 | 30 | interface ICountUsersBackend { |
31 | 31 | |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - */ |
|
35 | - public function countUsersInGroup(string $gid, string $search = ''): int; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + */ |
|
35 | + public function countUsersInGroup(string $gid, string $search = ''): int; |
|
36 | 36 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | */ |
30 | 30 | interface IAddToGroupBackend { |
31 | 31 | |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - */ |
|
35 | - public function addToGroup(string $uid, string $gid): bool; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + */ |
|
35 | + public function addToGroup(string $uid, string $gid): bool; |
|
36 | 36 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | */ |
30 | 30 | interface IRemoveFromGroupBackend { |
31 | 31 | |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - */ |
|
35 | - public function removeFromGroup(string $uid, string $gid); |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + */ |
|
35 | + public function removeFromGroup(string $uid, string $gid); |
|
36 | 36 | } |
@@ -31,37 +31,37 @@ |
||
31 | 31 | */ |
32 | 32 | abstract class ABackend implements GroupInterface { |
33 | 33 | |
34 | - /** |
|
35 | - * @deprecated 14.0.0 |
|
36 | - * |
|
37 | - * @param int $actions The action to check for |
|
38 | - * @return bool |
|
39 | - */ |
|
40 | - public function implementsActions($actions): bool { |
|
41 | - $implements = 0; |
|
34 | + /** |
|
35 | + * @deprecated 14.0.0 |
|
36 | + * |
|
37 | + * @param int $actions The action to check for |
|
38 | + * @return bool |
|
39 | + */ |
|
40 | + public function implementsActions($actions): bool { |
|
41 | + $implements = 0; |
|
42 | 42 | |
43 | - if ($this instanceof IAddToGroupBackend) { |
|
44 | - $implements |= GroupInterface::ADD_TO_GROUP; |
|
45 | - } |
|
46 | - if ($this instanceof ICountUsersBackend) { |
|
47 | - $implements |= GroupInterface::COUNT_USERS; |
|
48 | - } |
|
49 | - if ($this instanceof ICreateGroupBackend) { |
|
50 | - $implements |= GroupInterface::CREATE_GROUP; |
|
51 | - } |
|
52 | - if ($this instanceof IDeleteGroupBackend) { |
|
53 | - $implements |= GroupInterface::DELETE_GROUP; |
|
54 | - } |
|
55 | - if ($this instanceof IGroupDetailsBackend) { |
|
56 | - $implements |= GroupInterface::GROUP_DETAILS; |
|
57 | - } |
|
58 | - if ($this instanceof IIsAdminBackend) { |
|
59 | - $implements |= GroupInterface::IS_ADMIN; |
|
60 | - } |
|
61 | - if ($this instanceof IRemoveFromGroupBackend) { |
|
62 | - $implements |= GroupInterface::REMOVE_FROM_GOUP; |
|
63 | - } |
|
43 | + if ($this instanceof IAddToGroupBackend) { |
|
44 | + $implements |= GroupInterface::ADD_TO_GROUP; |
|
45 | + } |
|
46 | + if ($this instanceof ICountUsersBackend) { |
|
47 | + $implements |= GroupInterface::COUNT_USERS; |
|
48 | + } |
|
49 | + if ($this instanceof ICreateGroupBackend) { |
|
50 | + $implements |= GroupInterface::CREATE_GROUP; |
|
51 | + } |
|
52 | + if ($this instanceof IDeleteGroupBackend) { |
|
53 | + $implements |= GroupInterface::DELETE_GROUP; |
|
54 | + } |
|
55 | + if ($this instanceof IGroupDetailsBackend) { |
|
56 | + $implements |= GroupInterface::GROUP_DETAILS; |
|
57 | + } |
|
58 | + if ($this instanceof IIsAdminBackend) { |
|
59 | + $implements |= GroupInterface::IS_ADMIN; |
|
60 | + } |
|
61 | + if ($this instanceof IRemoveFromGroupBackend) { |
|
62 | + $implements |= GroupInterface::REMOVE_FROM_GOUP; |
|
63 | + } |
|
64 | 64 | |
65 | - return (bool)($actions & $implements); |
|
66 | - } |
|
65 | + return (bool)($actions & $implements); |
|
66 | + } |
|
67 | 67 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | */ |
30 | 30 | interface IDeleteGroupBackend { |
31 | 31 | |
32 | - /** |
|
33 | - * @since 14.0.0 |
|
34 | - */ |
|
35 | - public function deleteGroup(string $gid): bool; |
|
32 | + /** |
|
33 | + * @since 14.0.0 |
|
34 | + */ |
|
35 | + public function deleteGroup(string $gid): bool; |
|
36 | 36 | } |
@@ -30,8 +30,8 @@ |
||
30 | 30 | * @since 14.0.0 |
31 | 31 | */ |
32 | 32 | interface IWriter { |
33 | - /** |
|
34 | - * @since 14.0.0 |
|
35 | - */ |
|
36 | - public function write(string $app, $message, int $level); |
|
33 | + /** |
|
34 | + * @since 14.0.0 |
|
35 | + */ |
|
36 | + public function write(string $app, $message, int $level); |
|
37 | 37 | } |
@@ -30,19 +30,19 @@ |
||
30 | 30 | |
31 | 31 | class AddPreviewBackgroundCleanupJob implements IRepairStep { |
32 | 32 | |
33 | - /** @var IJobList */ |
|
34 | - private $jobList; |
|
33 | + /** @var IJobList */ |
|
34 | + private $jobList; |
|
35 | 35 | |
36 | - public function __construct(IJobList $jobList) { |
|
37 | - $this->jobList = $jobList; |
|
38 | - } |
|
36 | + public function __construct(IJobList $jobList) { |
|
37 | + $this->jobList = $jobList; |
|
38 | + } |
|
39 | 39 | |
40 | - public function getName(): string { |
|
41 | - return 'Add preview background cleanup job'; |
|
42 | - } |
|
40 | + public function getName(): string { |
|
41 | + return 'Add preview background cleanup job'; |
|
42 | + } |
|
43 | 43 | |
44 | - public function run(IOutput $output) { |
|
45 | - $this->jobList->add(BackgroundCleanupJob::class); |
|
46 | - } |
|
44 | + public function run(IOutput $output) { |
|
45 | + $this->jobList->add(BackgroundCleanupJob::class); |
|
46 | + } |
|
47 | 47 | |
48 | 48 | } |
@@ -36,39 +36,39 @@ |
||
36 | 36 | * Class that will watch filesystem activity and remove previews as needed. |
37 | 37 | */ |
38 | 38 | class Watcher { |
39 | - /** @var IAppData */ |
|
40 | - private $appData; |
|
39 | + /** @var IAppData */ |
|
40 | + private $appData; |
|
41 | 41 | |
42 | - /** |
|
43 | - * Watcher constructor. |
|
44 | - * |
|
45 | - * @param IAppData $appData |
|
46 | - */ |
|
47 | - public function __construct(IAppData $appData) { |
|
48 | - $this->appData = $appData; |
|
49 | - } |
|
42 | + /** |
|
43 | + * Watcher constructor. |
|
44 | + * |
|
45 | + * @param IAppData $appData |
|
46 | + */ |
|
47 | + public function __construct(IAppData $appData) { |
|
48 | + $this->appData = $appData; |
|
49 | + } |
|
50 | 50 | |
51 | - public function postWrite(Node $node) { |
|
52 | - $this->deleteNode($node); |
|
53 | - } |
|
51 | + public function postWrite(Node $node) { |
|
52 | + $this->deleteNode($node); |
|
53 | + } |
|
54 | 54 | |
55 | - protected function deleteNode(Node $node) { |
|
56 | - // We only handle files |
|
57 | - if ($node instanceof Folder) { |
|
58 | - return; |
|
59 | - } |
|
55 | + protected function deleteNode(Node $node) { |
|
56 | + // We only handle files |
|
57 | + if ($node instanceof Folder) { |
|
58 | + return; |
|
59 | + } |
|
60 | 60 | |
61 | - try { |
|
62 | - $folder = $this->appData->getFolder((string)$node->getId()); |
|
63 | - $folder->delete(); |
|
64 | - } catch (NotFoundException $e) { |
|
65 | - //Nothing to do |
|
66 | - } |
|
67 | - } |
|
61 | + try { |
|
62 | + $folder = $this->appData->getFolder((string)$node->getId()); |
|
63 | + $folder->delete(); |
|
64 | + } catch (NotFoundException $e) { |
|
65 | + //Nothing to do |
|
66 | + } |
|
67 | + } |
|
68 | 68 | |
69 | - public function versionRollback(array $data) { |
|
70 | - if (isset($data['node'])) { |
|
71 | - $this->deleteNode($data['node']); |
|
72 | - } |
|
73 | - } |
|
69 | + public function versionRollback(array $data) { |
|
70 | + if (isset($data['node'])) { |
|
71 | + $this->deleteNode($data['node']); |
|
72 | + } |
|
73 | + } |
|
74 | 74 | } |