| @@ -96,8 +96,8 @@ discard block | ||
| 96 | 96 |  	public function findAll($since = 0) { | 
| 97 | 97 | $userInfo = $this->getBoardPrerequisites(); | 
| 98 | 98 | $userBoards = $this->boardMapper->findAllByUser($userInfo['user'], null, null, $since); | 
| 99 | - $groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'],null, null, $since); | |
| 100 | - $circleBoards = $this->boardMapper->findAllByCircles($userInfo['user'], null, null, $since); | |
| 99 | + $groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'], null, null, $since); | |
| 100 | + $circleBoards = $this->boardMapper->findAllByCircles($userInfo['user'], null, null, $since); | |
| 101 | 101 | $complete = array_merge($userBoards, $groupBoards, $circleBoards); | 
| 102 | 102 | $result = []; | 
| 103 | 103 | /** @var Board $item */ | 
| @@ -133,7 +133,7 @@ discard block | ||
| 133 | 133 | */ | 
| 134 | 134 |  	public function find($boardId) { | 
| 135 | 135 | |
| 136 | -		if ( is_numeric($boardId) === false ) { | |
| 136 | +		if (is_numeric($boardId) === false) { | |
| 137 | 137 |  			throw new BadRequestException('board id must be a number'); | 
| 138 | 138 | } | 
| 139 | 139 | |
| @@ -182,7 +182,7 @@ discard block | ||
| 182 | 182 | */ | 
| 183 | 183 |  	public function isArchived($mapper, $id) { | 
| 184 | 184 | |
| 185 | -		if (is_numeric($id) === false)  { | |
| 185 | +		if (is_numeric($id) === false) { | |
| 186 | 186 |  			throw new BadRequestException('id must be a number'); | 
| 187 | 187 | } | 
| 188 | 188 | |
| @@ -216,7 +216,7 @@ discard block | ||
| 216 | 216 |  			throw new BadRequestException('mapper must be provided'); | 
| 217 | 217 | } | 
| 218 | 218 | |
| 219 | -		if (is_numeric($id) === false)  { | |
| 219 | +		if (is_numeric($id) === false) { | |
| 220 | 220 |  			throw new BadRequestException('id must be a number'); | 
| 221 | 221 | } | 
| 222 | 222 | |
| @@ -354,7 +354,7 @@ discard block | ||
| 354 | 354 | * @throws BadRequestException | 
| 355 | 355 | */ | 
| 356 | 356 |  	public function deleteForce($id) { | 
| 357 | -		if (is_numeric($id) === false)  { | |
| 357 | +		if (is_numeric($id) === false) { | |
| 358 | 358 |  			throw new BadRequestException('id must be a number'); | 
| 359 | 359 | } | 
| 360 | 360 | |
| @@ -388,7 +388,7 @@ discard block | ||
| 388 | 388 |  			throw new BadRequestException('color must be provided'); | 
| 389 | 389 | } | 
| 390 | 390 | |
| 391 | -		if ( is_bool($archived) === false ) { | |
| 391 | +		if (is_bool($archived) === false) { | |
| 392 | 392 |  			throw new BadRequestException('archived must be a boolean'); | 
| 393 | 393 | } | 
| 394 | 394 | |
| @@ -536,7 +536,7 @@ discard block | ||
| 536 | 536 |  	private function enrichWithStacks($board, $since = -1) { | 
| 537 | 537 | $stacks = $this->stackMapper->findAll($board->getId(), null, null, $since); | 
| 538 | 538 | |
| 539 | -		if(\count($stacks) === 0) { | |
| 539 | +		if (\count($stacks) === 0) { | |
| 540 | 540 | return; | 
| 541 | 541 | } | 
| 542 | 542 | |
| @@ -33,7 +33,6 @@ | ||
| 33 | 33 | use OCP\AppFramework\Db\DoesNotExistException; | 
| 34 | 34 | use OCP\AppFramework\Db\Entity; | 
| 35 | 35 | use OCP\AppFramework\Db\MultipleObjectsReturnedException; | 
| 36 | -use OCP\AppFramework\QueryException; | |
| 37 | 36 | use OCP\IConfig; | 
| 38 | 37 | use OCP\IGroupManager; | 
| 39 | 38 | use OCP\ILogger; | 
| @@ -24,7 +24,6 @@ | ||
| 24 | 24 | namespace OCA\Deck\Db; | 
| 25 | 25 | |
| 26 | 26 | use OCP\AppFramework\Db\DoesNotExistException; | 
| 27 | -use OCP\AppFramework\QueryException; | |
| 28 | 27 | use OCP\IDBConnection; | 
| 29 | 28 | use OCP\IUserManager; | 
| 30 | 29 | use OCP\IGroupManager; |