@@ -53,8 +53,8 @@ |
||
| 53 | 53 | parent::__construct($appName, |
| 54 | 54 | $request, |
| 55 | 55 | 'POST, GET, DELETE', |
| 56 | - 'Authorization, Content-Type, Accept', |
|
| 57 | - 1728000); |
|
| 56 | + 'Authorization, Content-Type, Accept', |
|
| 57 | + 1728000); |
|
| 58 | 58 | $this->commentService = $commentService; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | parent::__construct($appName, |
| 56 | 56 | $request, |
| 57 | 57 | 'POST, PUT, GET, DELETE', |
| 58 | - 'Authorization, Content-Type, Accept', |
|
| 59 | - 1728000); |
|
| 58 | + 'Authorization, Content-Type, Accept', |
|
| 59 | + 1728000); |
|
| 60 | 60 | $this->optionService = $optionService; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -67,8 +67,8 @@ |
||
| 67 | 67 | * PollController constructor. |
| 68 | 68 | * @param PollMapper $pollMapper |
| 69 | 69 | * @param Poll $poll |
| 70 | - * @param VoteMapper $voteMapper |
|
| 71 | - * @param Vote $vote |
|
| 70 | + * @param VoteMapper $voteMapper |
|
| 71 | + * @param Vote $vote |
|
| 72 | 72 | * @param LogService $logService |
| 73 | 73 | * @param MailService $mailService |
| 74 | 74 | * @param Acl $acl |
@@ -82,12 +82,12 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | - * Get a list of users |
|
| 86 | - * @NoAdminRequired |
|
| 87 | - * @param string $query |
|
| 88 | - * @param array $skip - usernames to skip in return array |
|
| 89 | - * @return Array |
|
| 90 | - */ |
|
| 85 | + * Get a list of users |
|
| 86 | + * @NoAdminRequired |
|
| 87 | + * @param string $query |
|
| 88 | + * @param array $skip - usernames to skip in return array |
|
| 89 | + * @return Array |
|
| 90 | + */ |
|
| 91 | 91 | public function getSiteUsers($query = '', $skip = array()) { |
| 92 | 92 | $users = array(); |
| 93 | 93 | foreach ($this->userManager->searchDisplayName($query) as $user) { |
@@ -112,12 +112,12 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * Get a list of user groups |
|
| 116 | - * @NoAdminRequired |
|
| 117 | - * @param string $query |
|
| 118 | - * @param array $skip - group names to skip in return array |
|
| 119 | - * @return Array |
|
| 120 | - */ |
|
| 115 | + * Get a list of user groups |
|
| 116 | + * @NoAdminRequired |
|
| 117 | + * @param string $query |
|
| 118 | + * @param array $skip - group names to skip in return array |
|
| 119 | + * @return Array |
|
| 120 | + */ |
|
| 121 | 121 | public function getSiteGroups($query = '', $skip = array()) { |
| 122 | 122 | $groups = array(); |
| 123 | 123 | foreach ($this->groupManager->search($query) as $group) { |
@@ -53,23 +53,23 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * Get a list of users |
|
| 57 | - * @NoAdminRequired |
|
| 58 | - * @param string $query |
|
| 59 | - * @param array $skipUsers - usernames to skip in return array |
|
| 60 | - * @return DataResponse |
|
| 61 | - */ |
|
| 56 | + * Get a list of users |
|
| 57 | + * @NoAdminRequired |
|
| 58 | + * @param string $query |
|
| 59 | + * @param array $skipUsers - usernames to skip in return array |
|
| 60 | + * @return DataResponse |
|
| 61 | + */ |
|
| 62 | 62 | public function getSiteUsers($query = '', $skipUsers = array()) { |
| 63 | 63 | return new DataResponse(['users' => $this->systemService->getSiteUsers($query, $skipUsers)], Http::STATUS_OK); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * Get a list of user groups |
|
| 68 | - * @NoAdminRequired |
|
| 69 | - * @param string $query |
|
| 70 | - * @param array $skipGroups - group names to skip in return array |
|
| 71 | - * @return DataResponse |
|
| 72 | - */ |
|
| 67 | + * Get a list of user groups |
|
| 68 | + * @NoAdminRequired |
|
| 69 | + * @param string $query |
|
| 70 | + * @param array $skipGroups - group names to skip in return array |
|
| 71 | + * @return DataResponse |
|
| 72 | + */ |
|
| 73 | 73 | public function getSiteGroups($query = '', $skipGroups = array()) { |
| 74 | 74 | return new DataResponse(['groups' => $this->systemService->getSiteGroups($query, $skipGroups)], Http::STATUS_OK); |
| 75 | 75 | } |