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
path: root/lib
diff options
context:
space:
mode:
authorScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2020-09-01 00:57:18 +0300
committerScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2020-09-01 00:57:18 +0300
commitcbff07d378739013e1f897e7abe21b97035b81c6 (patch)
tree834e87fbb44b71fafa410ed631db3eca7089bb6a /lib
parent70e7da4fc07b0f6cc2b3e074949eaa6ff51226b3 (diff)
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'lib')
-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
-rw-r--r--lib/Service/CalendarService.php8
-rw-r--r--lib/Service/MailService.php2
-rw-r--r--lib/Service/OptionService.php2
-rw-r--r--lib/Service/PollService.php4
-rw-r--r--lib/Service/SystemService.php26
9 files changed, 38 insertions, 38 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);
}
diff --git a/lib/Service/CalendarService.php b/lib/Service/CalendarService.php
index f16a3f7e..f9bd0892 100644
--- a/lib/Service/CalendarService.php
+++ b/lib/Service/CalendarService.php
@@ -51,7 +51,7 @@ class CalendarService {
$events = [];
foreach ($this->calendars as $calendar) {
- $foundEvents = $calendar->search('' ,['SUMMARY'], ['timerange' => ['start' => $from, 'end' => $to]]);
+ $foundEvents = $calendar->search('', ['SUMMARY'], ['timerange' => ['start' => $from, 'end' => $to]]);
foreach ($foundEvents as $event) {
array_push($events, [
'relatedFrom' => $from->getTimestamp(),
@@ -62,11 +62,11 @@ class CalendarService {
'permissions' => $calendar->getPermissions(),
'eventId' => $event['id'],
'UID' => $event['objects'][0]['UID'][0],
- 'summary' => isset($event['objects'][0]['SUMMARY'][0])? $event['objects'][0]['SUMMARY'][0] : '',
- 'description' => isset($event['objects'][0]['DESCRIPTION'][0])? $event['objects'][0]['DESCRIPTION'][0] : '',
+ 'summary' => isset($event['objects'][0]['SUMMARY'][0]) ? $event['objects'][0]['SUMMARY'][0] : '',
+ 'description' => isset($event['objects'][0]['DESCRIPTION'][0]) ? $event['objects'][0]['DESCRIPTION'][0] : '',
'location' => isset($event['objects'][0]['LOCATION'][0]) ? $event['objects'][0]['LOCATION'][0] : '',
'eventFrom' => isset($event['objects'][0]['DTSTART'][0]) ? $event['objects'][0]['DTSTART'][0]->getTimestamp() : 0,
- 'eventTo' => isset($event['objects'][0]['DTEND'][0] ) ? $event['objects'][0]['DTEND'][0]->getTimestamp() : 0,
+ 'eventTo' => isset($event['objects'][0]['DTEND'][0]) ? $event['objects'][0]['DTEND'][0]->getTimestamp() : 0,
'calDav' => $event
]);
}
diff --git a/lib/Service/MailService.php b/lib/Service/MailService.php
index 73ccbcfd..a4451355 100644
--- a/lib/Service/MailService.php
+++ b/lib/Service/MailService.php
@@ -264,7 +264,7 @@ class MailService {
$groupMembers = array_keys($this->groupManager->displayNamesInGroup($share->getUserId()));
foreach ($groupMembers as $member) {
- if ($skipUser === $member || !$this->userManager->get($member)->isEnabled() ) {
+ if ($skipUser === $member || !$this->userManager->get($member)->isEnabled()) {
continue;
}
diff --git a/lib/Service/OptionService.php b/lib/Service/OptionService.php
index 4f9be435..90014612 100644
--- a/lib/Service/OptionService.php
+++ b/lib/Service/OptionService.php
@@ -242,7 +242,7 @@ class OptionService {
$baseDate->setTimestamp($origin->getTimestamp());
- for ($i=0; $i < $amount; $i++) {
+ for ($i = 0; $i < $amount; $i++) {
$this->option = new Option();
$this->option->setPollId($origin->getPollId());
diff --git a/lib/Service/PollService.php b/lib/Service/PollService.php
index b9fdbdef..23e63835 100644
--- a/lib/Service/PollService.php
+++ b/lib/Service/PollService.php
@@ -67,8 +67,8 @@ class PollService {
* PollController constructor.
* @param PollMapper $pollMapper
* @param Poll $poll
- * @param VoteMapper $voteMapper
- * @param Vote $vote
+ * @param VoteMapper $voteMapper
+ * @param Vote $vote
* @param LogService $logService
* @param MailService $mailService
* @param Acl $acl
diff --git a/lib/Service/SystemService.php b/lib/Service/SystemService.php
index 6f49bbcc..eb47cad6 100644
--- a/lib/Service/SystemService.php
+++ b/lib/Service/SystemService.php
@@ -82,12 +82,12 @@ class SystemService {
/**
- * Get a list of users
- * @NoAdminRequired
- * @param string $query
- * @param array $skip - usernames to skip in return array
- * @return Array
- */
+ * Get a list of users
+ * @NoAdminRequired
+ * @param string $query
+ * @param array $skip - usernames to skip in return array
+ * @return Array
+ */
public function getSiteUsers($query = '', $skip = array()) {
$users = array();
foreach ($this->userManager->searchDisplayName($query) as $user) {
@@ -112,12 +112,12 @@ class SystemService {
}
/**
- * Get a list of user groups
- * @NoAdminRequired
- * @param string $query
- * @param array $skip - group names to skip in return array
- * @return Array
- */
+ * Get a list of user groups
+ * @NoAdminRequired
+ * @param string $query
+ * @param array $skip - group names to skip in return array
+ * @return Array
+ */
public function getSiteGroups($query = '', $skip = array()) {
$groups = array();
foreach ($this->groupManager->search($query) as $group) {
@@ -252,7 +252,7 @@ class SystemService {
if (strpos($contactGroup, $query) === 0 && !in_array($contactGroup, $foundContacts)) {
$foundContacts[] = $contactGroup;
$contactGroups[] = [
- 'id' => 'contactgroup_' + $contactGroup,
+ 'id' => 'contactgroup_' +$contactGroup,
'user' => $contactGroup,
'displayName' => $contactGroup,
'organisation' => '',