Skip to content

Commit 5636432

Browse files
committed
run cs:fix
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent b6e2f34 commit 5636432

52 files changed

Lines changed: 36 additions & 63 deletions

File tree

Some content is hidden

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

lib/Activity/ActivityManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace OCA\Forms\Activity;
99

1010
use OCA\Forms\Db\Form;
11-
1211
use OCA\Forms\Service\CirclesService;
1312
use OCP\Activity\IManager;
1413
use OCP\IGroupManager;

lib/Activity/Provider.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace OCA\Forms\Activity;
99

1010
use Exception;
11-
1211
use OCA\Forms\Db\FormMapper;
1312
use OCA\Forms\Service\CirclesService;
1413
use OCP\Activity\IEvent;
@@ -78,16 +77,12 @@ public function getSubjectString(IL10N $l10n, string $subject): string {
7877
switch ($subject) {
7978
case ActivityConstants::SUBJECT_NEWSHARE:
8079
return $l10n->t('{user} has shared the form {formTitle} with you');
81-
8280
case ActivityConstants::SUBJECT_NEWGROUPSHARE:
8381
return $l10n->t('{user} has shared the form {formTitle} with group {group}');
84-
8582
case ActivityConstants::SUBJECT_NEWCIRCLESHARE:
8683
return $l10n->t('{user} has shared the form {formTitle} with team {circle}');
87-
8884
case ActivityConstants::SUBJECT_NEWSUBMISSION:
8985
return $l10n->t('Your form {formTitle} was answered by {user}');
90-
9186
default:
9287
$this->logger->warning('Some unknown activity has been found: ' . $subject);
9388
throw new \InvalidArgumentException();
@@ -268,10 +263,8 @@ public function getEventIcon(string $subject): string {
268263
case ActivityConstants::SUBJECT_NEWSHARE:
269264
case ActivityConstants::SUBJECT_NEWGROUPSHARE:
270265
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/shared.svg'));
271-
272266
case ActivityConstants::SUBJECT_NEWSUBMISSION:
273267
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/add.svg'));
274-
275268
default:
276269
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('forms', 'forms-dark.svg'));
277270
}

lib/BackgroundJob/SyncSubmissionsWithLinkedFileJob.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
use OCA\Forms\Db\FormMapper;
1111
use OCA\Forms\Service\FormsService;
1212
use OCA\Forms\Service\SubmissionService;
13-
1413
use OCP\AppFramework\Utility\ITimeFactory;
1514
use OCP\BackgroundJob\IJobList;
1615
use OCP\BackgroundJob\QueuedJob;
1716
use OCP\Files\NotFoundException;
1817
use OCP\IUserManager;
1918
use OCP\IUserSession;
20-
2119
use Psr\Log\LoggerInterface;
2220
use Throwable;
2321

lib/BackgroundJob/UserDeletedJob.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use OCA\Forms\Db\FormMapper;
1111
use OCP\AppFramework\Utility\ITimeFactory;
1212
use OCP\BackgroundJob\QueuedJob;
13-
1413
use Psr\Log\LoggerInterface;
1514

1615
class UserDeletedJob extends QueuedJob {

lib/Controller/ApiController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use OCA\Forms\Service\ConfigService;
2828
use OCA\Forms\Service\FormsService;
2929
use OCA\Forms\Service\SubmissionService;
30-
3130
use OCP\AppFramework\Db\DoesNotExistException;
3231
use OCP\AppFramework\Db\IMapperException;
3332
use OCP\AppFramework\Http;
@@ -52,7 +51,6 @@
5251
use OCP\IUser;
5352
use OCP\IUserManager;
5453
use OCP\IUserSession;
55-
5654
use Psr\Log\LoggerInterface;
5755

5856
/**
@@ -685,7 +683,6 @@ public function deleteQuestion(int $formId, int $questionId): DataResponse {
685683
'questionId' => $questionId,
686684
]);
687685

688-
689686
$form = $this->formsService->getFormIfAllowed($formId, Constants::PERMISSION_EDIT);
690687
$this->formsService->obtainFormLock($form);
691688

@@ -1203,7 +1200,6 @@ public function getSubmissions(int $formId, ?string $query = null, ?int $limit =
12031200
$questions[$question['id']] = $question;
12041201
}
12051202

1206-
12071203
// Append Display Names
12081204
$submissions = array_map(function (array $submission) use ($questions) {
12091205
if (!empty($submission['answers'])) {

lib/Controller/ConfigController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use OCP\AppFramework\Http\DataResponse;
1818
use OCP\IConfig;
1919
use OCP\IRequest;
20-
2120
use Psr\Log\LoggerInterface;
2221

2322
#[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]

lib/Controller/PageController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use OCA\Forms\Db\SubmissionMapper;
1515
use OCA\Forms\Service\ConfigService;
1616
use OCA\Forms\Service\FormsService;
17-
1817
use OCP\Accounts\IAccountManager;
1918
use OCP\AppFramework\Controller;
2019
use OCP\AppFramework\Db\DoesNotExistException;

lib/Controller/ShareApiController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use OCA\Forms\Service\CirclesService;
1919
use OCA\Forms\Service\ConfigService;
2020
use OCA\Forms\Service\FormsService;
21-
2221
use OCP\AppFramework\Db\DoesNotExistException;
2322
use OCP\AppFramework\Db\IMapperException;
2423
use OCP\AppFramework\Http;

lib/Db/FormMapper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct(
3434
parent::__construct($db, 'forms_v2_forms', Form::class);
3535
}
3636

37-
3837
/**
3938
* @param Entity $entity
4039
* @psalm-param Form $entity

lib/Exception/NoSuchFormException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
77
* SPDX-License-Identifier: AGPL-3.0-or-later
88
*/
9+
910
namespace OCA\Forms\Exception;
1011

1112
use OCP\AppFramework\Http;

0 commit comments

Comments
 (0)