Minor - format code

pull/3312/head
Julio Montoya 6 years ago
parent 87da354fe9
commit 184fdb9783
  1. 8
      main/exercise/exercise.class.php
  2. 7
      main/inc/lib/exercise.lib.php

@ -5970,22 +5970,22 @@ class Exercise
return false;
break;
case 1: // End
if ($type == 'end') {
if ($type === 'end') {
$sendEnd = true;
}
break;
case 2: // start
if ($type == 'start') {
if ($type === 'start') {
$sendStart = true;
}
break;
case 3: // end + open
if ($type == 'end') {
if ($type === 'end') {
$sendEndOpenQuestion = true;
}
break;
case 4: // end + oral
if ($type == 'end') {
if ($type === 'end') {
$sendEndOralQuestion = true;
}
break;

@ -4377,6 +4377,7 @@ EOT;
$remainingMessage = ''
) {
$origin = api_get_origin();
$courseId = api_get_course_int_id();
$courseCode = api_get_course_id();
$sessionId = api_get_session_id();
@ -4477,7 +4478,7 @@ EOT;
$attempts = Event::getExerciseResultsByUser(
api_get_user_id(),
$objExercise->id,
api_get_course_int_id(),
$courseId,
$sessionId,
$exercise_stat_info['orig_lp_id'],
$exercise_stat_info['orig_lp_item_id'],
@ -4878,8 +4879,8 @@ EOT;
echo self::displayResultsInRanking(
$objExercise->iId,
api_get_user_id(),
api_get_course_int_id(),
api_get_session_id()
$courseId,
$sessionId
);
}

Loading…
Cancel
Save