@@ -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 |
@@ -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) { |
@@ -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 | } |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | return $this->findEntity($sql, [$id]); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $sql |
|
| 50 | + */ |
|
| 48 | 51 | protected function execute($sql, array $params = [], $limit = null, $offset = null) { |
| 49 | 52 | return parent::execute($sql, $params, $limit, $offset); |
| 50 | 53 | } |
@@ -66,6 +66,9 @@ discard block |
||
| 66 | 66 | return $result; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param integer $labelId |
|
| 71 | + */ |
|
| 69 | 72 | public function deleteLabelAssignments($labelId) { |
| 70 | 73 | $sql = 'DELETE FROM `*PREFIX*deck_assigned_labels` WHERE label_id = ?'; |
| 71 | 74 | $stmt = $this->db->prepare($sql); |
@@ -73,6 +76,9 @@ discard block |
||
| 73 | 76 | $stmt->execute(); |
| 74 | 77 | } |
| 75 | 78 | |
| 79 | + /** |
|
| 80 | + * @param integer $cardId |
|
| 81 | + */ |
|
| 76 | 82 | public function deleteLabelAssignmentsForCard($cardId) { |
| 77 | 83 | $sql = 'DELETE FROM `*PREFIX*deck_assigned_labels` WHERE card_id = ?'; |
| 78 | 84 | $stmt = $this->db->prepare($sql); |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @param $subjectIdentifier |
|
| 127 | + * @param string $subjectIdentifier |
|
| 128 | 128 | * @param array $subjectParams |
| 129 | 129 | * @param bool $ownActivity |
| 130 | 130 | * @return string |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | - * @return array |
|
| 150 | + * @return integer |
|
| 151 | 151 | */ |
| 152 | 152 | private function getBoardPrerequisites() { |
| 153 | 153 | $groups = $this->groupManager->getUserGroupIds( |