Skip to content

Commit dbf4038

Browse files
committed
adapt new CS rules
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 63471e4 commit dbf4038

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/Controller/ShareApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function updateShare(int $formId, int $shareId, array $keyValuePairs): Da
235235
$this->logger->debug('This form is archived and can not be modified');
236236
throw new OCSForbiddenException('This form is archived and can not be modified');
237237
}
238-
238+
239239
try {
240240
$formShare = $this->shareMapper->findById($shareId);
241241
} catch (IMapperException $e) {

tests/Unit/Controller/ApiControllerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function testGetSubmissions(array $submissions, array $questions, array $
276276
->method('getFormIfAllowed')
277277
->with(1, Constants::PERMISSION_RESULTS)
278278
->willReturn($form);
279-
279+
280280
$this->submissionService->expects($this->once())
281281
->method('getSubmissions')
282282
->with(1)
@@ -1000,7 +1000,7 @@ public function testGetSubmission_notFound() {
10001000
->method('getFormIfAllowed')
10011001
->with(1, Constants::PERMISSION_RESULTS)
10021002
->willReturn($form);
1003-
1003+
10041004
$this->submissionService->expects($this->once()) // Changed from submissionMapper
10051005
->method('getSubmission')
10061006
->with(42)
@@ -1029,7 +1029,7 @@ public function testGetSubmission_success() {
10291029
->method('getFormIfAllowed')
10301030
->with(1, Constants::PERMISSION_RESULTS)
10311031
->willReturn($form);
1032-
1032+
10331033
$this->submissionService->expects($this->once()) // Changed from submissionMapper
10341034
->method('getSubmission')
10351035
->with(42)
@@ -1229,7 +1229,7 @@ public function testUpdateSubmission_invalidAnswers() {
12291229
->method('loadFormForSubmission')
12301230
->with(1)
12311231
->willReturn($form);
1232-
1232+
12331233
$this->formsService->expects($this->once())
12341234
->method('getQuestions')
12351235
->with($formId)
@@ -1297,7 +1297,7 @@ public function testUpdateSubmission_mismatchedFormId() {
12971297
->method('loadFormForSubmission')
12981298
->with(1)
12991299
->willReturn($form);
1300-
1300+
13011301
$this->formsService->expects($this->once())
13021302
->method('getQuestions')
13031303
->with($formId)

tests/Unit/Controller/ShareApiControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ public function testUpdateShare(array $share, string $formOwner, array $keyValue
799799
$shareEntity->setShareType($share['shareType']);
800800
$shareEntity->setShareWith($share['shareWith']);
801801
$shareEntity->setPermissions($share['permissions']);
802-
802+
803803
if ($exception !== NoSuchFormException::class) {
804804
$this->shareMapper->expects($this->once())
805805
->method('findById')

0 commit comments

Comments
 (0)