@@ -161,7 +161,7 @@ discard block  | 
                                                    ||
| 161 | 161 | }  | 
                                                        
| 162 | 162 | |
| 163 | 163 | /**  | 
                                                        
| 164 | - * @return array  | 
                                                        |
| 164 | + * @return integer  | 
                                                        |
| 165 | 165 | */  | 
                                                        
| 166 | 166 |  	private function getBoardPrerequisites() { | 
                                                        
| 167 | 167 | $groups = $this->groupManager->getUserGroupIds(  | 
                                                        
@@ -535,6 +535,9 @@ discard block  | 
                                                    ||
| 535 | 535 | return $this->aclMapper->delete($acl);  | 
                                                        
| 536 | 536 | }  | 
                                                        
| 537 | 537 | |
| 538 | + /**  | 
                                                        |
| 539 | + * @param Board $board  | 
                                                        |
| 540 | + */  | 
                                                        |
| 538 | 541 |  	private function enrichWithStacks($board, $since = -1) { | 
                                                        
| 539 | 542 | $stacks = $this->stackMapper->findAll($board->getId(), null, null, $since);  | 
                                                        
| 540 | 543 | |
@@ -545,6 +548,9 @@ discard block  | 
                                                    ||
| 545 | 548 | $board->setStacks($stacks);  | 
                                                        
| 546 | 549 | }  | 
                                                        
| 547 | 550 | |
| 551 | + /**  | 
                                                        |
| 552 | + * @param Board $board  | 
                                                        |
| 553 | + */  | 
                                                        |
| 548 | 554 |  	private function enrichWithLabels($board, $since = -1) { | 
                                                        
| 549 | 555 | $labels = $this->labelMapper->findAll($board->getId(), null, null, $since);  | 
                                                        
| 550 | 556 | |
@@ -555,6 +561,9 @@ discard block  | 
                                                    ||
| 555 | 561 | $board->setLabels($labels);  | 
                                                        
| 556 | 562 | }  | 
                                                        
| 557 | 563 | |
| 564 | + /**  | 
                                                        |
| 565 | + * @param Board $board  | 
                                                        |
| 566 | + */  | 
                                                        |
| 558 | 567 |  	private function enrichWithUsers($board, $since = -1) { | 
                                                        
| 559 | 568 | $boardUsers = $this->permissionService->findUsers($board->getId());  | 
                                                        
| 560 | 569 |  		if(\count($boardUsers) === 0) { | 
                                                        
@@ -96,7 +96,7 @@ discard block  | 
                                                    ||
| 96 | 96 |  	public function findAll($since = 0, $details = null) { | 
                                                        
| 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);  | 
                                                        |
| 99 | + $groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'], null, null, $since);  | 
                                                        |
| 100 | 100 | $complete = array_merge($userBoards, $groupBoards);  | 
                                                        
| 101 | 101 | $result = [];  | 
                                                        
| 102 | 102 | /** @var Board $item */  | 
                                                        
@@ -136,7 +136,7 @@ discard block  | 
                                                    ||
| 136 | 136 | */  | 
                                                        
| 137 | 137 |  	public function find($boardId) { | 
                                                        
| 138 | 138 | |
| 139 | -		if ( is_numeric($boardId) === false ) { | 
                                                        |
| 139 | +		if (is_numeric($boardId) === false) { | 
                                                        |
| 140 | 140 |  			throw new BadRequestException('board id must be a number'); | 
                                                        
| 141 | 141 | }  | 
                                                        
| 142 | 142 | |
@@ -184,7 +184,7 @@ discard block  | 
                                                    ||
| 184 | 184 | */  | 
                                                        
| 185 | 185 |  	public function isArchived($mapper, $id) { | 
                                                        
| 186 | 186 | |
| 187 | -		if (is_numeric($id) === false)  { | 
                                                        |
| 187 | +		if (is_numeric($id) === false) { | 
                                                        |
| 188 | 188 |  			throw new BadRequestException('id must be a number'); | 
                                                        
| 189 | 189 | }  | 
                                                        
| 190 | 190 | |
@@ -218,7 +218,7 @@ discard block  | 
                                                    ||
| 218 | 218 |  			throw new BadRequestException('mapper must be provided'); | 
                                                        
| 219 | 219 | }  | 
                                                        
| 220 | 220 | |
| 221 | -		if (is_numeric($id) === false)  { | 
                                                        |
| 221 | +		if (is_numeric($id) === false) { | 
                                                        |
| 222 | 222 |  			throw new BadRequestException('id must be a number'); | 
                                                        
| 223 | 223 | }  | 
                                                        
| 224 | 224 | |
@@ -356,7 +356,7 @@ discard block  | 
                                                    ||
| 356 | 356 | * @throws BadRequestException  | 
                                                        
| 357 | 357 | */  | 
                                                        
| 358 | 358 |  	public function deleteForce($id) { | 
                                                        
| 359 | -		if (is_numeric($id) === false)  { | 
                                                        |
| 359 | +		if (is_numeric($id) === false) { | 
                                                        |
| 360 | 360 |  			throw new BadRequestException('id must be a number'); | 
                                                        
| 361 | 361 | }  | 
                                                        
| 362 | 362 | |
@@ -390,7 +390,7 @@ discard block  | 
                                                    ||
| 390 | 390 |  			throw new BadRequestException('color must be provided'); | 
                                                        
| 391 | 391 | }  | 
                                                        
| 392 | 392 | |
| 393 | -		if ( is_bool($archived) === false ) { | 
                                                        |
| 393 | +		if (is_bool($archived) === false) { | 
                                                        |
| 394 | 394 |  			throw new BadRequestException('archived must be a boolean'); | 
                                                        
| 395 | 395 | }  | 
                                                        
| 396 | 396 | |
@@ -538,7 +538,7 @@ discard block  | 
                                                    ||
| 538 | 538 |  	private function enrichWithStacks($board, $since = -1) { | 
                                                        
| 539 | 539 | $stacks = $this->stackMapper->findAll($board->getId(), null, null, $since);  | 
                                                        
| 540 | 540 | |
| 541 | -		if(\count($stacks) === 0) { | 
                                                        |
| 541 | +		if (\count($stacks) === 0) { | 
                                                        |
| 542 | 542 | return;  | 
                                                        
| 543 | 543 | }  | 
                                                        
| 544 | 544 | |
@@ -548,7 +548,7 @@ discard block  | 
                                                    ||
| 548 | 548 |  	private function enrichWithLabels($board, $since = -1) { | 
                                                        
| 549 | 549 | $labels = $this->labelMapper->findAll($board->getId(), null, null, $since);  | 
                                                        
| 550 | 550 | |
| 551 | -		if(\count($labels) === 0) { | 
                                                        |
| 551 | +		if (\count($labels) === 0) { | 
                                                        |
| 552 | 552 | return;  | 
                                                        
| 553 | 553 | }  | 
                                                        
| 554 | 554 | |
@@ -557,7 +557,7 @@ discard block  | 
                                                    ||
| 557 | 557 | |
| 558 | 558 |  	private function enrichWithUsers($board, $since = -1) { | 
                                                        
| 559 | 559 | $boardUsers = $this->permissionService->findUsers($board->getId());  | 
                                                        
| 560 | -		if(\count($boardUsers) === 0) { | 
                                                        |
| 560 | +		if (\count($boardUsers) === 0) { | 
                                                        |
| 561 | 561 | return;  | 
                                                        
| 562 | 562 | }  | 
                                                        
| 563 | 563 | $board->setUsers(array_values($boardUsers));  |