Minor - format code + fix lang variables

pull/3924/head
Julio Montoya 4 years ago
parent 0c44981baa
commit eb892b534d
  1. 17
      public/main/inc/lib/exercise.lib.php
  2. 5
      src/LtiBundle/Controller/CourseController.php

@ -5225,19 +5225,14 @@ EOT;
); );
} }
/** public static function getNotificationSettings(): array
* @return array
*/
public static function getNotificationSettings()
{ {
$emailAlerts = [ return [
2 => get_lang('SendEmailToTrainerWhenStudentStartQuiz'), 2 => get_lang('Paranoid: E-mail teacher when a student starts an exercise'),
1 => get_lang('SendEmailToTrainerWhenStudentEndQuiz'), // default 1 => get_lang('Aware: E-mail teacher when a student ends an exercise'), // default
3 => get_lang('SendEmailToTrainerWhenStudentEndQuizOnlyIfOpenQuestion'), 3 => get_lang('Relaxed open: E-mail teacher when a student ends an exercise, only if an open question is answered'),
4 => get_lang('SendEmailToTrainerWhenStudentEndQuizOnlyIfOralQuestion'), 4 => get_lang('Relaxed audio: E-mail teacher when a student ends an exercise, only if an oral question is answered'),
]; ];
return $emailAlerts;
} }
/** /**

@ -126,11 +126,6 @@ class CourseController extends ToolBaseController
/** /**
* @Route("/launch/{id}", name="chamilo_lti_launch", requirements={"id"="\d+"}) * @Route("/launch/{id}", name="chamilo_lti_launch", requirements={"id"="\d+"})
*
* @param int $id
* @param Utils $ltiUtil
*
* @return Response
*/ */
public function launchAction(int $id, Utils $ltiUtil): Response public function launchAction(int $id, Utils $ltiUtil): Response
{ {

Loading…
Cancel
Save