@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * @throws \OCP\AppFramework\QueryException |
168 | 168 | */ |
169 | 169 | protected function registerCommentsEventHandler() { |
170 | - $this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function () { |
|
170 | + $this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function() { |
|
171 | 171 | return $this->getContainer()->query(CommentEventHandler::class); |
172 | 172 | }); |
173 | 173 | } |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $resourceManager->registerResourceProvider(\OCA\Deck\Collaboration\Resources\ResourceProvider::class); |
197 | 197 | $resourceManager->registerResourceProvider(\OCA\Deck\Collaboration\Resources\ResourceProviderCard::class); |
198 | 198 | |
199 | - \OC::$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () { |
|
199 | + \OC::$server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function() { |
|
200 | 200 | \OCP\Util::addScript('deck', 'collections'); |
201 | 201 | }); |
202 | 202 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * @return array |
56 | 56 | */ |
57 | 57 | public function reorder($cardId, $stackId, $order) { |
58 | - return $this->cardService->reorder((int)$cardId, (int)$stackId, (int)$order); |
|
58 | + return $this->cardService->reorder((int) $cardId, (int) $stackId, (int) $order); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * @return array |
89 | 89 | */ |
90 | 90 | public function reorder($stackId, $order) { |
91 | - return $this->stackService->reorder((int)$stackId, (int)$order); |
|
91 | + return $this->stackService->reorder((int) $stackId, (int) $order); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -151,7 +151,7 @@ |
||
151 | 151 | } catch (QueryException $e) { |
152 | 152 | } |
153 | 153 | if ($cardId !== null) { |
154 | - $resource = $resourceManager->getResourceForUser(self::RESOURCE_TYPE, (string)$cardId, null); |
|
154 | + $resource = $resourceManager->getResourceForUser(self::RESOURCE_TYPE, (string) $cardId, null); |
|
155 | 155 | $resourceManager->invalidateAccessCacheForResource($resource); |
156 | 156 | } else { |
157 | 157 | $resourceManager->invalidateAccessCacheForProvider($this); |