@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * DeckProvider constructor. |
| 78 | 78 | * |
| 79 | 79 | * @param IL10N $l10n |
| 80 | - * @param IUrlGenerator $urlGenerator |
|
| 80 | + * @param IURLGenerator $urlGenerator |
|
| 81 | 81 | * @param FullTextSearchService $fullTextSearchService |
| 82 | 82 | */ |
| 83 | 83 | public function __construct( |
@@ -44,7 +44,6 @@ |
||
| 44 | 44 | use OCP\FullTextSearch\Model\ISearchResult; |
| 45 | 45 | use OCP\FullTextSearch\Model\ISearchTemplate; |
| 46 | 46 | use OCP\IL10N; |
| 47 | -use OCP\IURLGenerator; |
|
| 48 | 47 | |
| 49 | 48 | |
| 50 | 49 | /** |
@@ -33,7 +33,6 @@ |
||
| 33 | 33 | use OCA\Deck\Notification\Notifier; |
| 34 | 34 | use OCA\Deck\Service\FullTextSearchService; |
| 35 | 35 | use OCP\AppFramework\App; |
| 36 | -use OCA\Deck\Middleware\SharingMiddleware; |
|
| 37 | 36 | use OCP\Collaboration\Resources\IManager; |
| 38 | 37 | use OCP\Comments\CommentsEntityEvent; |
| 39 | 38 | use OCP\IGroup; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
| 173 | - * @return array |
|
| 173 | + * @return integer |
|
| 174 | 174 | */ |
| 175 | 175 | private function getBoardPrerequisites() { |
| 176 | 176 | $groups = $this->groupManager->getUserGroupIds( |
@@ -605,6 +605,9 @@ discard block |
||
| 605 | 605 | return $delete; |
| 606 | 606 | } |
| 607 | 607 | |
| 608 | + /** |
|
| 609 | + * @param Board $board |
|
| 610 | + */ |
|
| 608 | 611 | private function enrichWithStacks($board, $since = -1) { |
| 609 | 612 | $stacks = $this->stackMapper->findAll($board->getId(), null, null, $since); |
| 610 | 613 | |
@@ -615,6 +618,9 @@ discard block |
||
| 615 | 618 | $board->setStacks($stacks); |
| 616 | 619 | } |
| 617 | 620 | |
| 621 | + /** |
|
| 622 | + * @param Board $board |
|
| 623 | + */ |
|
| 618 | 624 | private function enrichWithLabels($board, $since = -1) { |
| 619 | 625 | $labels = $this->labelMapper->findAll($board->getId(), null, null, $since); |
| 620 | 626 | |
@@ -625,6 +631,9 @@ discard block |
||
| 625 | 631 | $board->setLabels($labels); |
| 626 | 632 | } |
| 627 | 633 | |
| 634 | + /** |
|
| 635 | + * @param Board $board |
|
| 636 | + */ |
|
| 628 | 637 | private function enrichWithUsers($board, $since = -1) { |
| 629 | 638 | $boardUsers = $this->permissionService->findUsers($board->getId()); |
| 630 | 639 | if(\count($boardUsers) === 0) { |