Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-09-01 01:10:40 +0300
committerdartcafe <github@dartcafe.de>2020-09-01 01:10:40 +0300
commit089fd0be214b7decf7cb0602832845580a29c8f8 (patch)
tree4f76189a73a7ddb56cc4df96a63bf4ad48bc708b /lib/Controller
parent8106e1b488c2243746ec5d39700bbbab1f7a250a (diff)
parentd1ebca4820e3454e11d5e1f89ece417a00069c4b (diff)
Merge branch 'dev-1.5' of http://github.com/nextcloud/polls into dev-1.5
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/CommentApiController.php4
-rw-r--r--lib/Controller/OptionApiController.php4
-rw-r--r--lib/Controller/ShareController.php2
-rw-r--r--lib/Controller/SystemController.php24
4 files changed, 17 insertions, 17 deletions
diff --git a/lib/Controller/CommentApiController.php b/lib/Controller/CommentApiController.php
index 16d3b66a..e9b8c310 100644
--- a/lib/Controller/CommentApiController.php
+++ b/lib/Controller/CommentApiController.php
@@ -57,8 +57,8 @@ class CommentApiController extends ApiController {
parent::__construct($appName,
$request,
'POST, GET, DELETE',
- 'Authorization, Content-Type, Accept',
- 1728000);
+ 'Authorization, Content-Type, Accept',
+ 1728000);
$this->commentService = $commentService;
}
diff --git a/lib/Controller/OptionApiController.php b/lib/Controller/OptionApiController.php
index 5c3e6f3c..5183f9fe 100644
--- a/lib/Controller/OptionApiController.php
+++ b/lib/Controller/OptionApiController.php
@@ -55,8 +55,8 @@ class OptionApiController extends ApiController {
parent::__construct($appName,
$request,
'POST, PUT, GET, DELETE',
- 'Authorization, Content-Type, Accept',
- 1728000);
+ 'Authorization, Content-Type, Accept',
+ 1728000);
$this->optionService = $optionService;
}
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php
index a009150e..39cb7a4d 100644
--- a/lib/Controller/ShareController.php
+++ b/lib/Controller/ShareController.php
@@ -201,7 +201,7 @@ class ShareController extends Controller {
try {
$share = $this->shareService->get($token);
foreach ($this->systemService->getContactsGroupMembers($share->getUserId()) as $member) {
- $shares[] = $this->shareService->add($share->getpollId(), 'contact', $member['user'], $member['emailAddress']) ;
+ $shares[] = $this->shareService->add($share->getpollId(), 'contact', $member['user'], $member['emailAddress']);
}
return new DataResponse(['shares' => $shares], Http::STATUS_OK);
diff --git a/lib/Controller/SystemController.php b/lib/Controller/SystemController.php
index 45e5afba..53f5c8f1 100644
--- a/lib/Controller/SystemController.php
+++ b/lib/Controller/SystemController.php
@@ -53,23 +53,23 @@ class SystemController extends Controller {
}
/**
- * Get a list of users
- * @NoAdminRequired
- * @param string $query
- * @param array $skipUsers - usernames to skip in return array
- * @return DataResponse
- */
+ * Get a list of users
+ * @NoAdminRequired
+ * @param string $query
+ * @param array $skipUsers - usernames to skip in return array
+ * @return DataResponse
+ */
public function getSiteUsers($query = '', $skipUsers = array()) {
return new DataResponse(['users' => $this->systemService->getSiteUsers($query, $skipUsers)], Http::STATUS_OK);
}
/**
- * Get a list of user groups
- * @NoAdminRequired
- * @param string $query
- * @param array $skipGroups - group names to skip in return array
- * @return DataResponse
- */
+ * Get a list of user groups
+ * @NoAdminRequired
+ * @param string $query
+ * @param array $skipGroups - group names to skip in return array
+ * @return DataResponse
+ */
public function getSiteGroups($query = '', $skipGroups = array()) {
return new DataResponse(['groups' => $this->systemService->getSiteGroups($query, $skipGroups)], Http::STATUS_OK);
}