@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | /** |
| 174 | 174 | */ |
| 175 | 175 | protected function registerCommentsEventHandler(): void { |
| 176 | - $this->server->getCommentsManager()->registerEventHandler(function () { |
|
| 176 | + $this->server->getCommentsManager()->registerEventHandler(function() { |
|
| 177 | 177 | return $this->getContainer()->query(CommentEventHandler::class); |
| 178 | 178 | }); |
| 179 | 179 | } |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | $resourceManager->registerResourceProvider(ResourceProvider::class); |
| 200 | 200 | $resourceManager->registerResourceProvider(ResourceProviderCard::class); |
| 201 | 201 | |
| 202 | - $this->server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', static function () { |
|
| 202 | + $this->server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', static function() { |
|
| 203 | 203 | Util::addScript('deck', 'collections'); |
| 204 | 204 | }); |
| 205 | 205 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | private $config; |
| 40 | 40 | private $l10n; |
| 41 | 41 | |
| 42 | - public function __construct( |
|
| 42 | + public function __construct( |
|
| 43 | 43 | IL10N $l10n, |
| 44 | 44 | BoardMapper $boardMapper, |
| 45 | 45 | BoardService $boardService, |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $this->config = $config; |
| 55 | 55 | $this->boardMapper = $boardMapper; |
| 56 | 56 | $this->l10n = $l10n; |
| 57 | - } |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Return true if this is the first time a user is acessing their instance with deck enabled |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | return false; |
| 79 | - } |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * @param $title |
@@ -103,9 +103,9 @@ discard block |
||
| 103 | 103 | throw new BadRequestException('color must be provided'); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - $defaultBoard = $this->boardService->create($title, $userId, $color); |
|
| 107 | - $defaultStacks = []; |
|
| 108 | - $defaultCards = []; |
|
| 106 | + $defaultBoard = $this->boardService->create($title, $userId, $color); |
|
| 107 | + $defaultStacks = []; |
|
| 108 | + $defaultCards = []; |
|
| 109 | 109 | |
| 110 | 110 | $boardId = $defaultBoard->getId(); |
| 111 | 111 | |
@@ -118,5 +118,5 @@ discard block |
||
| 118 | 118 | $defaultCards[] = $this->cardService->create($this->l10n->t('Example Task 1'), $defaultStacks[2]->getId(), 'text', 0, $userId); |
| 119 | 119 | |
| 120 | 120 | return $defaultBoard; |
| 121 | - } |
|
| 121 | + } |
|
| 122 | 122 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | use OCA\Deck\AppInfo\Application; |
| 25 | 25 | use OCP\AppFramework\QueryException; |
| 26 | 26 | |
| 27 | -if ((@include_once __DIR__ . '/../vendor/autoload.php')=== false) { |
|
| 27 | +if ((@include_once __DIR__ . '/../vendor/autoload.php') === false) { |
|
| 28 | 28 | throw new Exception('Cannot include autoload. Did you run install dependencies using composer?'); |
| 29 | 29 | } |
| 30 | 30 | |