Skip to content

Commit b4aedaa

Browse files
authored
Merge pull request #2776 from nextcloud/dependabot/composer/vendor-bin/cs-fixer/stable5/nextcloud/coding-standard-1.4.0
Chore(deps): Bump nextcloud/coding-standard from 1.3.2 to 1.4.0 in /vendor-bin/cs-fixer
2 parents 73cac44 + dbd7135 commit b4aedaa

26 files changed

Lines changed: 86 additions & 77 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
@@ -297,9 +297,9 @@ public function updateForm(int $formId, array $keyValuePairs): DataResponse {
297297

298298
// Don't allow to change params id, hash, ownerId, created, lastUpdated, fileId
299299
if (
300-
key_exists('id', $keyValuePairs) || key_exists('hash', $keyValuePairs) ||
301-
key_exists('ownerId', $keyValuePairs) || key_exists('created', $keyValuePairs) ||
302-
isset($keyValuePairs['fileId']) || key_exists('lastUpdated', $keyValuePairs)
300+
key_exists('id', $keyValuePairs) || key_exists('hash', $keyValuePairs)
301+
|| key_exists('ownerId', $keyValuePairs) || key_exists('created', $keyValuePairs)
302+
|| isset($keyValuePairs['fileId']) || key_exists('lastUpdated', $keyValuePairs)
303303
) {
304304
$this->logger->info('Not allowed to update id, hash, ownerId, created, fileId or lastUpdated');
305305
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

@@ -147,7 +147,7 @@ public function import(IUser $user, IImportSource $importSource, OutputInterface
147147
$form->setIsAnonymous($formData['isAnonymous']);
148148
$form->setSubmitMultiple($formData['submitMultiple']);
149149
$form->setShowExpiration($formData['showExpiration']);
150-
150+
151151
$this->formMapper->insert($form);
152152

153153
$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)