@@ -40,7 +40,7 @@ public function importSurveyResponses(SurveyContract $survey): ResponseImportInf
40
40
{
41
41
$ surveyCollectorIds = $ this ->surveyMappingService ->getSurveyCollectors ($ survey );
42
42
$ surveyQuestionMapping = $ this ->surveyMappingService ->getSurveyQuestionMapping ($ survey );
43
- $ responseImportInfo = new ResponseImportInfo () ;
43
+ $ responseImportInfo = new ResponseImportInfo ;
44
44
45
45
try {
46
46
DB ::beginTransaction ();
@@ -78,7 +78,7 @@ public function importSurveyResponses(SurveyContract $survey): ResponseImportInf
78
78
*/
79
79
public function importSurveyResponse ($ responseId , SurveyContract $ survey , ?array $ surveyQuestionMapping = null ): ?ResponseImportInfo
80
80
{
81
- $ importInfo = new ResponseImportInfo () ;
81
+ $ importInfo = new ResponseImportInfo ;
82
82
83
83
if (! $ surveyQuestionMapping ) {
84
84
$ surveyQuestionMapping = $ this ->surveyMappingService ->getSurveyQuestionMapping ($ survey );
@@ -187,10 +187,10 @@ public function deleteSurveyResponse($surveyId, $responseId)
187
187
private function getQuestionResponseCreator (string $ surveyheroFieldType ): ?QuestionResponseCreator
188
188
{
189
189
return match ($ surveyheroFieldType ) {
190
- TextResponseCreator::TYPE => new TextResponseCreator () ,
191
- NumberResponseCreator::TYPE => new NumberResponseCreator () ,
192
- ChoicesResponseCreator::TYPE => new ChoicesResponseCreator () ,
193
- ChoiceTableResponseCreator::TYPE => new ChoiceTableResponseCreator () ,
190
+ TextResponseCreator::TYPE => new TextResponseCreator ,
191
+ NumberResponseCreator::TYPE => new NumberResponseCreator ,
192
+ ChoicesResponseCreator::TYPE => new ChoicesResponseCreator ,
193
+ ChoiceTableResponseCreator::TYPE => new ChoiceTableResponseCreator ,
194
194
default => null ,
195
195
};
196
196
}
0 commit comments