| @@ -85,6 +85,9 @@ | ||
| 85 | 85 | return $stacks; | 
| 86 | 86 | } | 
| 87 | 87 | |
| 88 | + /** | |
| 89 | + * @param integer $order | |
| 90 | + */ | |
| 88 | 91 |  	public function create($title, $boardId, $order) { | 
| 89 | 92 | $this->permissionService->checkPermission(null, $boardId, Acl::PERMISSION_MANAGE); | 
| 90 | 93 |  		if($this->boardService->isArchived(null, $boardId)) { | 
| @@ -27,9 +27,7 @@ | ||
| 27 | 27 | use OCA\Deck\Db\CardMapper; | 
| 28 | 28 | use OCA\Deck\Db\LabelMapper; | 
| 29 | 29 | use OCA\Deck\Db\AssignedUsersMapper; | 
| 30 | - | |
| 31 | 30 | use OCA\Deck\Db\Stack; | 
| 32 | - | |
| 33 | 31 | use OCA\Deck\Db\StackMapper; | 
| 34 | 32 | use OCA\Deck\StatusException; | 
| 35 | 33 | |
| @@ -50,6 +50,9 @@ | ||
| 50 | 50 | return $card; | 
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | + /** | |
| 54 | + * @param integer $order | |
| 55 | + */ | |
| 53 | 56 |  	public function create($title, $stackId, $type, $order, $owner) { | 
| 54 | 57 | $this->permissionService->checkPermission($this->stackMapper, $stackId, Acl::PERMISSION_EDIT); | 
| 55 | 58 |  		if($this->boardService->isArchived($this->stackMapper, $stackId)) { | 
| @@ -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 | */ | 
| @@ -29,7 +29,6 @@ | ||
| 29 | 29 | use OCP\AppFramework\App; | 
| 30 | 30 | use OCA\Deck\Middleware\SharingMiddleware; | 
| 31 | 31 | use OCP\IGroup; | 
| 32 | - | |
| 33 | 32 | use OCP\IUser; | 
| 34 | 33 | use OCP\IUserManager; | 
| 35 | 34 | use OCP\IURLGenerator; | 
| @@ -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) { | 
| @@ -32,7 +32,7 @@ discard block | ||
| 32 | 32 | |
| 33 | 33 | /** | 
| 34 | 34 | * Mark a property as relation so it will not get updated using Mapper::update | 
| 35 | - * @param $property string Name of the property | |
| 35 | + * @param string $property string Name of the property | |
| 36 | 36 | */ | 
| 37 | 37 |  	public function addRelation($property) { | 
| 38 | 38 |  		if (!in_array($property, $this->_relations, true)) { | 
| @@ -42,7 +42,7 @@ discard block | ||
| 42 | 42 | |
| 43 | 43 | /** | 
| 44 | 44 | * Mark a property as resolvable via resolveRelation() | 
| 45 | - * @param $property string Name of the property | |
| 45 | + * @param string $property string Name of the property | |
| 46 | 46 | */ | 
| 47 | 47 |  	public function addResolvable($property) { | 
| 48 | 48 | $this->_resolvedProperties[$property] = null; | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 | * Send notifications that a board was shared with a user/group | 
| 99 | 99 | * | 
| 100 | 100 | * @param $boardId | 
| 101 | - * @param $acl | |
| 101 | + * @param Acl $acl | |
| 102 | 102 | * @throws \InvalidArgumentException | 
| 103 | 103 | */ | 
| 104 | 104 |  	public function sendBoardShared($boardId, $acl) { | 
| @@ -128,6 +128,9 @@ discard block | ||
| 128 | 128 | return $this->boards[$boardId]; | 
| 129 | 129 | } | 
| 130 | 130 | |
| 131 | + /** | |
| 132 | + * @param Board $board | |
| 133 | + */ | |
| 131 | 134 |  	private function generateBoardShared($board, $userId) { | 
| 132 | 135 | $notification = $this->notificationManager->createNotification(); | 
| 133 | 136 | $notification | 
| @@ -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()); |