Skip to content

Commit 3adb419

Browse files
dependabot[bot]Chartman123
authored andcommitted
Chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixer
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.2 to 1.4.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](nextcloud/coding-standard@v1.3.2...v1.4.0) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-version: 1.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 39ae1cf commit 3adb419

26 files changed

Lines changed: 103 additions & 94 deletions

lib/Activity/ActivityManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use OCP\Share\IShare;
1717

1818
class ActivityManager {
19-
19+
2020
public function __construct(
2121
protected string $appName,
2222
private ?string $userId,

lib/Controller/ApiController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ public function updateForm(int $formId, array $keyValuePairs): DataResponse {
310310

311311
// Don't allow to change params id, hash, ownerId, created, lastUpdated, fileId
312312
if (
313-
key_exists('id', $keyValuePairs) || key_exists('hash', $keyValuePairs) ||
314-
key_exists('ownerId', $keyValuePairs) || key_exists('created', $keyValuePairs) ||
315-
isset($keyValuePairs['fileId']) || key_exists('lastUpdated', $keyValuePairs)
313+
key_exists('id', $keyValuePairs) || key_exists('hash', $keyValuePairs)
314+
|| key_exists('ownerId', $keyValuePairs) || key_exists('created', $keyValuePairs)
315+
|| isset($keyValuePairs['fileId']) || key_exists('lastUpdated', $keyValuePairs)
316316
) {
317317
$this->logger->info('Not allowed to update id, hash, ownerId, created, fileId or lastUpdated');
318318
throw new OCSForbiddenException('Not allowed to update id, hash, ownerId, created, fileId or lastUpdated');

lib/Db/FormMapper.php

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

37-
37+
3838
/**
3939
* @param Entity $entity
4040
* @psalm-param Form $entity

lib/FormsMigrator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public function export(IUser $user, IExportDestination $exportDestination, Outpu
9494
// Mark userIds with instance.
9595
foreach ($formData['submissions'] as $sKey => $submission) {
9696
// Anonymous submission or already migrated, just keep it.
97-
if (substr($submission['userId'], 0, 10) === 'anon-user-' ||
98-
substr($submission['userId'], 0, 8) === 'unknown~') {
97+
if (substr($submission['userId'], 0, 10) === 'anon-user-'
98+
|| substr($submission['userId'], 0, 8) === 'unknown~') {
9999
continue;
100100
}
101101

@@ -148,7 +148,7 @@ public function import(IUser $user, IImportSource $importSource, OutputInterface
148148
$form->setSubmitMultiple($formData['submitMultiple']);
149149
$form->setAllowEditSubmissions($formData['allowEditSubmissions']);
150150
$form->setShowExpiration($formData['showExpiration']);
151-
151+
152152
$this->formMapper->insert($form);
153153

154154
$questionIdMap = [];

lib/Migration/Version020300Date20210406114130.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4646

4747
return $schema;
4848
}
49-
49+
5050
return null;
5151
}
5252

lib/Migration/Version020300Date20210406133704.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class Version020300Date20210406133704 extends SimpleMigrationStep {
2424
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
2525
/** @var ISchemaWrapper $schema */
2626
$schema = $schemaClosure();
27-
27+
2828
$table = $schema->getTable('forms_v2_questions');
29-
29+
3030
if ($table->hasColumn('mandatory') && $table->hasColumn('is_required')) {
3131
$table->dropColumn('mandatory');
32-
32+
3333
return $schema;
3434
}
3535

lib/Migration/Version030000Date20220414203511.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
3434

3535
return $schema;
3636
}
37-
37+
3838
return null;
3939
}
4040
}

lib/Migration/Version030000Date20220705192811.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4545

4646
return $schema;
4747
}
48-
48+
4949
return null;
5050
}
5151

lib/Migration/Version030000Date20220707130109.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
2525
$schema = $schemaClosure();
2626

2727
$table = $schema->getTable('forms_v2_forms');
28-
28+
2929
if ($table->hasColumn('submit_once') && $table->hasColumn('submit_multiple')) {
3030
$table->dropColumn('submit_once');
3131
return $schema;

lib/Migration/Version030000Date20220831195000.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
3232

3333
return $schema;
3434
}
35-
35+
3636
return null;
3737
}
3838
}

0 commit comments

Comments
 (0)