From f7c8ab4de6139ca23b9a3f141131b1a3985b5ed7 Mon Sep 17 00:00:00 2001 From: iIronside Date: Mon, 15 Nov 2021 17:15:59 +0300 Subject: [PATCH] add scoring questions with the type: istina-loz --- common/helpers/ScoreCalculatorHelper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/helpers/ScoreCalculatorHelper.php b/common/helpers/ScoreCalculatorHelper.php index e69ec98..ad62260 100644 --- a/common/helpers/ScoreCalculatorHelper.php +++ b/common/helpers/ScoreCalculatorHelper.php @@ -64,6 +64,9 @@ class ScoreCalculatorHelper case '3': // multi answer $score += $response_question['question']['score'] / self::correctAnswersNum($response_question['question']['id']); break; + case '4': // istina-loz + $score += $response_question['question']['score']; + break; } } }