Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sten authored and github-actions[bot] committed Sep 30, 2022
1 parent 547f42d commit 7e50395
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ protected function getChoiceMapping(string|int $choiceId, string|int $questionId
$answerMapping = $questionMapping['answer_mapping'];
$mappingService = new SurveyMappingService();

if($questionMapping['question_id'] !== $questionId && isset($questionMapping['subquestion_mapping'])) {
if ($questionMapping['question_id'] !== $questionId && isset($questionMapping['subquestion_mapping'])) {
$subquestionMapping = $mappingService->getSubquestionMapping($questionId, $questionMapping);
if(isset($subquestionMapping['answer_mapping'])){
if (isset($subquestionMapping['answer_mapping'])) {
$answerMapping = $subquestionMapping['answer_mapping'];
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Statikbe\Surveyhero\Exceptions\AnswerNotImportedException;
use Statikbe\Surveyhero\Exceptions\AnswerNotMappedException;
use Statikbe\Surveyhero\Exceptions\QuestionNotImportedException;
use Statikbe\Surveyhero\Services\SurveyMappingService;
use Statikbe\Surveyhero\SurveyheroRegistrar;

abstract class AbstractQuestionResponseCreator implements QuestionResponseCreator
Expand Down
5 changes: 3 additions & 2 deletions src/Services/SurveyMappingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ public function getQuestionMapping(array $surveyQuestionMapping, int|string $que

/**
* Returns the subquestion mapping for questions with subquestions.
* @param string|int $questionId The subquestion ID.
* @param array $surveyQuestionMapping The question mapping. It needs to have a subquestion_mapping key.
*
* @param string|int $questionId The subquestion ID.
* @param array $surveyQuestionMapping The question mapping. It needs to have a subquestion_mapping key.
* @return array
*/
public function getSubquestionMapping(string|int $questionId, array $surveyQuestionMapping): array
Expand Down

0 comments on commit 7e50395

Please sign in to comment.