@@ -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); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @throws \OCP\AppFramework\QueryException |
156 | 156 | */ |
157 | 157 | protected function registerCommentsEventHandler() { |
158 | - $this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function () { |
|
158 | + $this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function() { |
|
159 | 159 | return $this->getContainer()->query(CommentEventHandler::class); |
160 | 160 | }); |
161 | 161 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | /** @var IManager $resourceManager */ |
176 | 176 | $resourceManager = $this->getContainer()->query(IManager::class); |
177 | 177 | $resourceManager->registerResourceProvider(\OCA\Deck\Collaboration\Resources\ResourceProvider::class); |
178 | - \OC::$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () { |
|
178 | + \OC::$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function() { |
|
179 | 179 | \OCP\Util::addScript('deck', 'build/collections'); |
180 | 180 | }); |
181 | 181 | } |