@@ -45,6 +45,9 @@ |
||
| 45 | 45 | return $this->cardMapper->find($cardId); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param integer $order |
|
| 50 | + */ |
|
| 48 | 51 | public function create($title, $stackId, $type, $order, $owner) { |
| 49 | 52 | $this->permissionService->checkPermission($this->stackMapper, $stackId, Acl::PERMISSION_EDIT); |
| 50 | 53 | $card = new Card(); |
@@ -101,8 +101,9 @@ |
||
| 101 | 101 | $card->setLastModified(time()); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - if ($i === $order) |
|
| 105 | - $i++; |
|
| 104 | + if ($i === $order) { |
|
| 105 | + $i++; |
|
| 106 | + } |
|
| 106 | 107 | |
| 107 | 108 | if ($card->id !== $id) { |
| 108 | 109 | $card->setOrder($i++); |
@@ -67,8 +67,9 @@ |
||
| 67 | 67 | } |
| 68 | 68 | $limit = 10; |
| 69 | 69 | foreach ($this->userManager->searchDisplayName($search, $limit, $offset) as $idx => $user) { |
| 70 | - if ($user->getUID() === $this->userId) |
|
| 71 | - continue; |
|
| 70 | + if ($user->getUID() === $this->userId) { |
|
| 71 | + continue; |
|
| 72 | + } |
|
| 72 | 73 | $acl = new Acl(); |
| 73 | 74 | $acl->setType('user'); |
| 74 | 75 | $acl->setParticipant($user->getUID()); |