| @@ -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 | 
| @@ -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) { | 
| @@ -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 | 
| @@ -189,6 +189,9 @@ discard block | ||
| 189 | 189 | return $event; | 
| 190 | 190 | } | 
| 191 | 191 | |
| 192 | + /** | |
| 193 | + * @param string $paramName | |
| 194 | + */ | |
| 192 | 195 |  	private function parseParamForBoard($paramName, $subjectParams, $params) { | 
| 193 | 196 |  		if (array_key_exists($paramName, $subjectParams)) { | 
| 194 | 197 | $params[$paramName] = [ | 
| @@ -200,6 +203,10 @@ discard block | ||
| 200 | 203 | } | 
| 201 | 204 | return $params; | 
| 202 | 205 | } | 
| 206 | + | |
| 207 | + /** | |
| 208 | + * @param string $paramName | |
| 209 | + */ | |
| 203 | 210 |  	private function parseParamForStack($paramName, $subjectParams, $params) { | 
| 204 | 211 |  		if (array_key_exists($paramName, $subjectParams)) { | 
| 205 | 212 | $params[$paramName] = [ | 
| @@ -211,6 +218,9 @@ discard block | ||
| 211 | 218 | return $params; | 
| 212 | 219 | } | 
| 213 | 220 | |
| 221 | + /** | |
| 222 | + * @param string $paramName | |
| 223 | + */ | |
| 214 | 224 |  	private function parseParamForAttachment($paramName, $subjectParams, $params) { | 
| 215 | 225 |  		if (array_key_exists($paramName, $subjectParams)) { | 
| 216 | 226 | $params[$paramName] = [ | 
| @@ -285,6 +295,7 @@ discard block | ||
| 285 | 295 | * | 
| 286 | 296 | * @param $subjectParams | 
| 287 | 297 | * @param $params | 
| 298 | + * @param IEvent $event | |
| 288 | 299 | * @return mixed | 
| 289 | 300 | */ | 
| 290 | 301 |  	private function parseParamForChanges($subjectParams, $params, $event) { | 
| @@ -312,6 +323,9 @@ discard block | ||
| 312 | 323 | return $params; | 
| 313 | 324 | } | 
| 314 | 325 | |
| 326 | + /** | |
| 327 | + * @param string $endpoint | |
| 328 | + */ | |
| 315 | 329 |  	public function deckUrl($endpoint) { | 
| 316 | 330 |  		return $this->urlGenerator->linkToRouteAbsolute('deck.page.index') . '#!' . $endpoint; | 
| 317 | 331 | } | 
| @@ -95,6 +95,9 @@ discard block | ||
| 95 | 95 | $this->cardMapper->markNotified($card); | 
| 96 | 96 | } | 
| 97 | 97 | |
| 98 | + /** | |
| 99 | + * @param \OCA\Deck\Db\Card $card | |
| 100 | + */ | |
| 98 | 101 |  	public function markDuedateAsRead($card) { | 
| 99 | 102 | $notification = $this->notificationManager->createNotification(); | 
| 100 | 103 | $notification | 
| @@ -104,6 +107,9 @@ discard block | ||
| 104 | 107 | $this->notificationManager->markProcessed($notification); | 
| 105 | 108 | } | 
| 106 | 109 | |
| 110 | + /** | |
| 111 | + * @param \OCA\Deck\Db\Card $card | |
| 112 | + */ | |
| 107 | 113 |  	public function sendCardAssigned($card, $userId) { | 
| 108 | 114 | $boardId = $this->cardMapper->findBoardId($card->getId()); | 
| 109 | 115 | $board = $this->getBoard($boardId); | 
| @@ -77,7 +77,7 @@ | ||
| 77 | 77 | * DeckProvider constructor. | 
| 78 | 78 | * | 
| 79 | 79 | * @param IL10N $l10n | 
| 80 | - * @param IUrlGenerator $urlGenerator | |
| 80 | + * @param IURLGenerator $urlGenerator | |
| 81 | 81 | * @param FullTextSearchService $fullTextSearchService | 
| 82 | 82 | */ | 
| 83 | 83 | public function __construct( |