Skip to content

Commit

Permalink
fix typos in php code from merge
Browse files Browse the repository at this point in the history
Signed-off-by: Timotheus Pokorra <[email protected]>
  • Loading branch information
tpokorra committed Oct 23, 2023
1 parent 8c4b1c0 commit b163c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ private function storeAnswersForQuestion($submissionId, array $question, array $
$this->answerMapper->update($answerEntity);
} else {
if ($answerText === "") {
continue;
return;
}

$answerEntity = new Answer();
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/FormsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getForm(Form $form): array {
$result['questions'] = $this->getQuestions($form->getId());

// add previous submission if there is one by this user for this form
if ($this->currentUser->getUID() && form->getAllowEdit()) {
if ($this->currentUser->getUID() && $form->getAllowEdit()) {
$submissionEntity = null;
try {
$submissionEntity = $this->submissionMapper->findByFormAndUser($id, $this->currentUser->getUID());

Check failure on line 186 in lib/Service/FormsService.php

View workflow job for this annotation

GitHub Actions / Nextcloud

UndefinedVariable

lib/Service/FormsService.php:186:68: UndefinedVariable: Cannot find referenced variable $id (see https://psalm.dev/024)
Expand Down

0 comments on commit b163c92

Please sign in to comment.