@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use OCA\Deck\Notification\Notifier; |
| 33 | 33 | use OCP\AppFramework\App; |
| 34 | 34 | use OCA\Deck\Middleware\SharingMiddleware; |
| 35 | -use OCP\AppFramework\Http\TemplateResponse; |
|
| 36 | 35 | use OCP\Collaboration\Resources\IManager; |
| 37 | 36 | use OCP\Comments\CommentsEntityEvent; |
| 38 | 37 | use OCP\IGroup; |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | protected function registerCommentsEventHandler() { |
| 150 | - $this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function () { |
|
| 150 | + $this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function() { |
|
| 151 | 151 | return $this->getContainer()->query(CommentEventHandler::class); |
| 152 | 152 | }); |
| 153 | 153 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | /** @var IManager $resourceManager */ |
| 160 | 160 | $resourceManager = $this->getContainer()->query(IManager::class); |
| 161 | 161 | $resourceManager->registerResourceProvider(ResourceProvider::class); |
| 162 | - \OC::$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () { |
|
| 162 | + \OC::$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function() { |
|
| 163 | 163 | \OCP\Util::addScript('deck', 'build/collections'); |
| 164 | 164 | }); |
| 165 | 165 | } |
@@ -55,7 +55,6 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * Get the type of a resource |
| 57 | 57 | * |
| 58 | - * @param IResource $resource |
|
| 59 | 58 | * @return string |
| 60 | 59 | * @since 15.0.0 |
| 61 | 60 | */ |
@@ -25,7 +25,6 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | use OCA\Deck\Db\Acl; |
| 28 | -use OCA\Deck\Db\Board; |
|
| 29 | 28 | use OCA\Deck\Db\BoardMapper; |
| 30 | 29 | use OCA\Deck\Service\PermissionService; |
| 31 | 30 | use OCP\AppFramework\Db\DoesNotExistException; |
@@ -34,7 +33,6 @@ discard block |
||
| 34 | 33 | use OCP\Collaboration\Resources\IManager; |
| 35 | 34 | use OCP\Collaboration\Resources\IProvider; |
| 36 | 35 | use OCP\Collaboration\Resources\IResource; |
| 37 | -use OCP\Collaboration\Resources\ResourceException; |
|
| 38 | 36 | use OCP\IUser; |
| 39 | 37 | |
| 40 | 38 | class ResourceProvider implements IProvider { |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | } catch (QueryException $e) { |
| 125 | 125 | } |
| 126 | 126 | if ($boardId !== null) { |
| 127 | - $resource = $resourceManager->getResourceForUser(self::RESOURCE_TYPE, (string)$boardId, null); |
|
| 127 | + $resource = $resourceManager->getResourceForUser(self::RESOURCE_TYPE, (string) $boardId, null); |
|
| 128 | 128 | $resourceManager->invalidateAccessCacheForResource($resource); |
| 129 | 129 | } else { |
| 130 | 130 | $resourceManager->invalidateAccessCacheForProvider($this); |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | 159 | * @param $boardId |
| 160 | - * @return bool |
|
| 160 | + * @return boolean|null |
|
| 161 | 161 | */ |
| 162 | 162 | public function userIsBoardOwner($boardId, $userId = null) { |
| 163 | 163 | if ($userId === null) { |