$user_questionnaire_uuid]); if(empty($userQuestionnaireModel)) { throw new NotFoundHttpException('The questionnaire with this uuid does not exist'); } ScoreCalculatorService::rateResponses($userQuestionnaireModel); ScoreCalculatorService::calculateScore($userQuestionnaireModel); return $userQuestionnaireModel; } }