Skip to content

Commit ffd3b56

Browse files
committed
Revert "cs-fix"
This reverts commit 130cefc. Signed-off-by: dartcafe <github@dartcafe.de>
1 parent 130cefc commit ffd3b56

56 files changed

Lines changed: 72 additions & 6 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/Activity/PollChanges.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* SPDX-FileCopyrightText: 2021 Nextcloud contributors
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
8-
98
namespace OCA\Polls\Activity;
109

1110
use OCA\Polls\AppInfo\Application;

lib/Controller/BaseApiV2OCSController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* SPDX-FileCopyrightText: 2024 Nextcloud contributors
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
8-
98
namespace OCA\Polls\Controller;
109

1110
use Closure;
@@ -46,8 +45,10 @@ public function __construct(
4645
protected function response(Closure $callback, int $successStatus = Http::STATUS_OK): DataResponse {
4746
try {
4847
return new DataResponse($callback(), $successStatus);
48+
4949
} catch (DoesNotExistException $e) {
5050
throw new OCSNotFoundException($e->getMessage());
51+
5152
} catch (Exception $e) {
5253
throw match ($e->getStatus()) {
5354
Http::STATUS_NOT_MODIFIED => new OCSException($e->getMessage(), Http::STATUS_NOT_MODIFIED),

lib/Controller/PublicController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public function getSession(): JSONResponse {
121121
});
122122
}
123123

124+
124125
/**
125126
* Watch poll for updates
126127
* @param string $mode the mode of watching, e.g. 'longPolling'
@@ -447,6 +448,7 @@ public function setDisplayName(string $token, string $displayName): JSONResponse
447448
]);
448449
}
449450

451+
450452
/**
451453
* Set EmailAddress
452454
* @param string $token Share token

lib/Cron/JanitorCron.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ protected function run($argument) {
102102
$this->logger->info('JanitorCron: ' . $message);
103103
}
104104

105+
105106
// archive polls after defined days after closing date
106107
$autoArchiveOffset = $this->appSettings->getAutoArchiveOffsetDays();
107108

lib/Cron/UserDeletedJob.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use OCA\Polls\Db\LogMapper;
1414
use OCA\Polls\Db\OptionMapper;
1515
use OCA\Polls\Db\PollMapper;
16+
1617
use OCA\Polls\Db\PreferencesMapper;
1718
use OCA\Polls\Db\Share;
1819
use OCA\Polls\Db\ShareMapper;

lib/Db/CommentMapper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public function purgeDeletedComments(int $offset): int {
9494
$query->setMaxResults(999);
9595

9696
return $query->executeStatement();
97+
9798
}
9899

99100
/**

lib/Db/Log.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace OCA\Polls\Db;
1010

1111
use JsonSerializable;
12+
1213
use OCP\AppFramework\Db\Entity;
1314

1415
/**

lib/Db/OptionMapper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function getMinDate(int $pollId): int|false {
134134
return $qb->executeQuery()->fetchOne();
135135
}
136136

137+
137138
/**
138139
* Get the maximum date of all options in a poll
139140
*
@@ -206,13 +207,15 @@ protected function buildQuery(bool $hideResults = false): IQueryBuilder {
206207
->groupBy(self::TABLE . '.id')
207208
->orderBy('order', 'ASC');
208209

210+
209211
$this->joinVotesCount($qb, self::TABLE, hideResults: $hideResults);
210212
$this->joinPollForLimits($qb, self::TABLE);
211213
$this->joinCurrentUserVote($qb, self::TABLE, $currentUserId);
212214
$this->joinCurrentUserVoteCount($qb, self::TABLE, $currentUserId);
213215
$this->joinAnon($qb, self::TABLE);
214216
$this->joinShareRole($qb, self::TABLE, $currentUserId);
215217

218+
216219
return $qb;
217220
}
218221

lib/Db/Poll.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ private function getMaxDate(): int {
611611
return $this->maxDate;
612612
}
613613

614+
614615
private function setMiscSettingsArray(array $value): void {
615616
$this->setMiscSettings(json_encode($value));
616617
}
@@ -925,6 +926,7 @@ public function getIsPollOwner(): bool {
925926
return ($this->getUserRole() === Poll::ROLE_OWNER);
926927
}
927928

929+
928930
/**
929931
* Permission checks
930932
*/
@@ -1042,4 +1044,5 @@ private function getAllowShowResults(): bool {
10421044
return $this->getShowResults() === Poll::SHOW_RESULTS_ALWAYS;
10431045
}
10441046

1047+
10451048
}

lib/Db/PollGroupMapper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public function add(PollGroup $pollGroup): PollGroup {
9898
$pollGroup->setCreated(time());
9999
$pollGroup->setOwner($this->userSession->getCurrentUserId());
100100
return $this->insert($pollGroup);
101+
101102
}
102103

103104
/**

0 commit comments

Comments
 (0)