Skip to content

Commit 3cd67e4

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

53 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\Exceptions\UnknownActivityException;
@@ -79,16 +78,12 @@ public function getSubjectString(IL10N $l10n, string $subject): string {
7978
switch ($subject) {
8079
case ActivityConstants::SUBJECT_NEWSHARE:
8180
return $l10n->t('{user} has shared the form {formTitle} with you');
82-
8381
case ActivityConstants::SUBJECT_NEWGROUPSHARE:
8482
return $l10n->t('{user} has shared the form {formTitle} with group {group}');
85-
8683
case ActivityConstants::SUBJECT_NEWCIRCLESHARE:
8784
return $l10n->t('{user} has shared the form {formTitle} with team {circle}');
88-
8985
case ActivityConstants::SUBJECT_NEWSUBMISSION:
9086
return $l10n->t('Your form {formTitle} was answered by {user}');
91-
9287
default:
9388
$this->logger->warning('Some unknown activity has been found: ' . $subject);
9489
throw new UnknownActivityException();
@@ -269,10 +264,8 @@ public function getEventIcon(string $subject): string {
269264
case ActivityConstants::SUBJECT_NEWSHARE:
270265
case ActivityConstants::SUBJECT_NEWGROUPSHARE:
271266
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/shared.svg'));
272-
273267
case ActivityConstants::SUBJECT_NEWSUBMISSION:
274268
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/add.svg'));
275-
276269
default:
277270
return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('forms', 'forms-dark.svg'));
278271
}

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/Constants.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class Constants {
4141
self::CONFIG_KEY_CONFIRMATIONEMAILRATELIMIT => 'int',
4242
];
4343

44-
4544
/**
4645
* Maximum String lengths, the database is set to store.
4746
*/

lib/Controller/ApiController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
use OCA\Forms\Service\ConfirmationEmailService;
2929
use OCA\Forms\Service\FormsService;
3030
use OCA\Forms\Service\SubmissionService;
31-
3231
use OCP\AppFramework\Db\DoesNotExistException;
3332
use OCP\AppFramework\Db\IMapperException;
3433
use OCP\AppFramework\Http;
@@ -53,7 +52,6 @@
5352
use OCP\IUser;
5453
use OCP\IUserManager;
5554
use OCP\IUserSession;
56-
5755
use Psr\Log\LoggerInterface;
5856

5957
/**
@@ -719,7 +717,6 @@ public function deleteQuestion(int $formId, int $questionId): DataResponse {
719717
'questionId' => $questionId,
720718
]);
721719

722-
723720
$form = $this->formsService->getFormIfAllowed($formId, Constants::PERMISSION_EDIT);
724721
$this->formsService->obtainFormLock($form);
725722

@@ -1245,7 +1242,6 @@ public function getSubmissions(int $formId, ?string $query = null, ?int $limit =
12451242
$questions[$question['id']] = $question;
12461243
}
12471244

1248-
12491245
// Append Display Names
12501246
$submissions = array_map(function (array $submission) use ($questions) {
12511247
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\AppFramework\Services\IAppConfig;
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
@@ -36,7 +36,6 @@ public function __construct(
3636
parent::__construct($db, 'forms_v2_forms', Form::class);
3737
}
3838

39-
4039
/**
4140
* @param Entity $entity
4241
* @psalm-param Form $entity

0 commit comments

Comments
 (0)