@@ -104,8 +104,8 @@ discard block |
||
104 | 104 | public function findAll($since = -1, $details = null) { |
105 | 105 | $userInfo = $this->getBoardPrerequisites(); |
106 | 106 | $userBoards = $this->boardMapper->findAllByUser($userInfo['user'], null, null, $since); |
107 | - $groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'],null, null, $since); |
|
108 | - $circleBoards = $this->boardMapper->findAllByCircles($userInfo['user'], null, null, $since); |
|
107 | + $groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'], null, null, $since); |
|
108 | + $circleBoards = $this->boardMapper->findAllByCircles($userInfo['user'], null, null, $since); |
|
109 | 109 | $complete = array_merge($userBoards, $groupBoards, $circleBoards); |
110 | 110 | $result = []; |
111 | 111 | /** @var Board $item */ |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public function find($boardId) { |
147 | 147 | |
148 | - if ( is_numeric($boardId) === false ) { |
|
148 | + if (is_numeric($boardId) === false) { |
|
149 | 149 | throw new BadRequestException('board id must be a number'); |
150 | 150 | } |
151 | 151 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | */ |
194 | 194 | public function isArchived($mapper, $id) { |
195 | 195 | |
196 | - if (is_numeric($id) === false) { |
|
196 | + if (is_numeric($id) === false) { |
|
197 | 197 | throw new BadRequestException('id must be a number'); |
198 | 198 | } |
199 | 199 | |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | throw new BadRequestException('mapper must be provided'); |
228 | 228 | } |
229 | 229 | |
230 | - if (is_numeric($id) === false) { |
|
230 | + if (is_numeric($id) === false) { |
|
231 | 231 | throw new BadRequestException('id must be a number'); |
232 | 232 | } |
233 | 233 | |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | * @throws BadRequestException |
383 | 383 | */ |
384 | 384 | public function deleteForce($id) { |
385 | - if (is_numeric($id) === false) { |
|
385 | + if (is_numeric($id) === false) { |
|
386 | 386 | throw new BadRequestException('id must be a number'); |
387 | 387 | } |
388 | 388 | |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | throw new BadRequestException('color must be provided'); |
423 | 423 | } |
424 | 424 | |
425 | - if ( is_bool($archived) === false ) { |
|
425 | + if (is_bool($archived) === false) { |
|
426 | 426 | throw new BadRequestException('archived must be a boolean'); |
427 | 427 | } |
428 | 428 | |
@@ -608,7 +608,7 @@ discard block |
||
608 | 608 | private function enrichWithStacks($board, $since = -1) { |
609 | 609 | $stacks = $this->stackMapper->findAll($board->getId(), null, null, $since); |
610 | 610 | |
611 | - if(\count($stacks) === 0) { |
|
611 | + if (\count($stacks) === 0) { |
|
612 | 612 | return; |
613 | 613 | } |
614 | 614 | |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | private function enrichWithLabels($board, $since = -1) { |
619 | 619 | $labels = $this->labelMapper->findAll($board->getId(), null, null, $since); |
620 | 620 | |
621 | - if(\count($labels) === 0) { |
|
621 | + if (\count($labels) === 0) { |
|
622 | 622 | return; |
623 | 623 | } |
624 | 624 | |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | |
628 | 628 | private function enrichWithUsers($board, $since = -1) { |
629 | 629 | $boardUsers = $this->permissionService->findUsers($board->getId()); |
630 | - if(\count($boardUsers) === 0) { |
|
630 | + if (\count($boardUsers) === 0) { |
|
631 | 631 | return; |
632 | 632 | } |
633 | 633 | $board->setUsers(array_values($boardUsers)); |