@@ -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 |
@@ -23,15 +23,11 @@ |
||
| 23 | 23 | |
| 24 | 24 | namespace OCA\Deck\Service; |
| 25 | 25 | |
| 26 | -use OC\Security\CSP\ContentSecurityPolicyManager; |
|
| 27 | 26 | use OCA\Deck\Db\Attachment; |
| 28 | 27 | use OCA\Deck\StatusException; |
| 29 | 28 | use OCP\AppFramework\Http\ContentSecurityPolicy; |
| 30 | -use OCP\AppFramework\Http\EmptyContentSecurityPolicy; |
|
| 31 | 29 | use OCP\AppFramework\Http\FileDisplayResponse; |
| 32 | 30 | use OCP\AppFramework\Http\StreamResponse; |
| 33 | -use OCP\Files\Cache\IScanner; |
|
| 34 | -use OCP\Files\Folder; |
|
| 35 | 31 | use OCP\Files\IAppData; |
| 36 | 32 | use OCP\Files\IRootFolder; |
| 37 | 33 | use OCP\Files\NotFoundException; |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | 143 | * @param $boardId |
| 144 | - * @return bool |
|
| 144 | + * @return boolean|null |
|
| 145 | 145 | */ |
| 146 | 146 | public function userIsBoardOwner($boardId) { |
| 147 | 147 | try { |
@@ -136,6 +136,9 @@ |
||
| 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) { |
@@ -94,6 +94,9 @@ |
||
| 94 | 94 | $this->cardMapper->markNotified($card); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | + /** |
|
| 98 | + * @param \OCA\Deck\Db\Card $card |
|
| 99 | + */ |
|
| 97 | 100 | public function sendCardAssigned($card, $userId) { |
| 98 | 101 | $boardId = $this->cardMapper->findBoardId($card->getId()); |
| 99 | 102 | $board = $this->getBoard($boardId); |
@@ -25,10 +25,8 @@ |
||
| 25 | 25 | namespace OCA\Deck\Controller; |
| 26 | 26 | |
| 27 | 27 | use OCP\AppFramework\ApiController; |
| 28 | -use OCP\AppFramework\Http; |
|
| 29 | 28 | use OCP\AppFramework\Http\DataResponse; |
| 30 | 29 | use OCP\IRequest; |
| 31 | - |
|
| 32 | 30 | use OCA\Deck\Service\BoardService; |
| 33 | 31 | |
| 34 | 32 | /** |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | namespace OCA\Deck\Controller; |
| 25 | 25 | |
| 26 | 26 | use OCP\AppFramework\ApiController; |
| 27 | - use OCP\AppFramework\Http; |
|
| 28 | 27 | use OCP\AppFramework\Http\DataResponse; |
| 29 | 28 | use OCP\IRequest; |
| 30 | 29 | use OCA\Deck\Service\CardService; |
@@ -173,6 +173,9 @@ |
||
| 173 | 173 | return ($board->getOwner() === $userId); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $id |
|
| 178 | + */ |
|
| 176 | 179 | public function findBoardId($id) { |
| 177 | 180 | return $id; |
| 178 | 181 | } |