@@ -26,10 +26,8 @@ |
||
| 26 | 26 | use OCA\Deck\Db\Acl; |
| 27 | 27 | use OCA\Deck\Db\AclMapper; |
| 28 | 28 | use OCA\Deck\Db\BoardMapper; |
| 29 | - |
|
| 30 | 29 | use OCA\Deck\Db\IPermissionMapper; |
| 31 | 30 | use OCA\Deck\NoPermissionException; |
| 32 | - |
|
| 33 | 31 | use OCP\AppFramework\Db\DoesNotExistException; |
| 34 | 32 | use OCP\IGroupManager; |
| 35 | 33 | use OCP\ILogger; |
@@ -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()); |