@@ -89,7 +89,7 @@ |
||
89 | 89 | /** |
90 | 90 | * Get current user permissions for a board |
91 | 91 | * |
92 | - * @param Board|Entity $board |
|
92 | + * @param Board $board |
|
93 | 93 | * @return array|bool |
94 | 94 | * @internal param $boardId |
95 | 95 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @param $id |
95 | - * @return RelationalEntity if not found |
|
95 | + * @return Entity if not found |
|
96 | 96 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException |
97 | 97 | * @throws \OCP\AppFramework\Db\DoesNotExistException |
98 | 98 | */ |
@@ -136,6 +136,9 @@ discard block |
||
136 | 136 | return parent::delete($entity); |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param integer $stackId |
|
141 | + */ |
|
139 | 142 | public function deleteByStack($stackId) { |
140 | 143 | $cards = $this->findAllByStack($stackId); |
141 | 144 | foreach ($cards as $card) { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * Check if user exists before assigning it to a card |
64 | 64 | * |
65 | 65 | * @param Entity $entity |
66 | - * @return null|Entity |
|
66 | + * @return AssignedUsers|null |
|
67 | 67 | */ |
68 | 68 | public function insert(Entity $entity) { |
69 | 69 | $user = $this->userManager->get($entity->getParticipant()); |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * @param $cardId |
164 | 164 | * @param $attachmentId |
165 | 165 | * @param $request |
166 | - * @return mixed |
|
166 | + * @return \OCP\AppFramework\Db\Entity |
|
167 | 167 | * @throws \OCA\Deck\NoPermissionException |
168 | 168 | * @throws \OCP\AppFramework\Db\DoesNotExistException |
169 | 169 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException |
@@ -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,9 +54,9 @@ discard block |
||
54 | 54 | $this->config = $config; |
55 | 55 | $this->boardMapper = $boardMapper; |
56 | 56 | $this->l10n = $l10n; |
57 | - } |
|
57 | + } |
|
58 | 58 | |
59 | - public function checkFirstRun($userId, $appName) { |
|
59 | + public function checkFirstRun($userId, $appName) { |
|
60 | 60 | $firstRun = $this->config->getUserValue($userId, $appName, 'firstRun', 'yes'); |
61 | 61 | $userBoards = $this->boardMapper->findAllByUser($userId); |
62 | 62 | |
@@ -66,12 +66,12 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | return false; |
69 | - } |
|
69 | + } |
|
70 | 70 | |
71 | - public function createDefaultBoard($title, $userId, $color) { |
|
72 | - $defaultBoard = $this->boardService->create($title, $userId, $color); |
|
73 | - $defaultStacks = []; |
|
74 | - $defaultCards = []; |
|
71 | + public function createDefaultBoard($title, $userId, $color) { |
|
72 | + $defaultBoard = $this->boardService->create($title, $userId, $color); |
|
73 | + $defaultStacks = []; |
|
74 | + $defaultCards = []; |
|
75 | 75 | |
76 | 76 | $boardId = $defaultBoard->getId(); |
77 | 77 | |
@@ -84,5 +84,5 @@ discard block |
||
84 | 84 | $defaultCards[] = $this->cardService->create($this->l10n->t('Example Task 1'), $defaultStacks[2]->getId(), 'text', 0, $userId); |
85 | 85 | |
86 | 86 | return $defaultBoard; |
87 | - } |
|
87 | + } |
|
88 | 88 | } |
89 | 89 | \ No newline at end of file |