public/main/exercise/exercise_submit.php
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = $currentQuestionFromUrl = isset($_REQUEST['num']) ? (int) $_REQUEST['num'] : null;
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
Session::write('duration_time_previous', [$current_expired_time_key => $current_timestamp]);
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
[$current_expired_time_key => $durationTime[$current_expired_time_key]]
- Exclude checks
Variable "exercise_title" is not in valid camel caps format Open
Open
sprintf(get_lang('You cannot take test <b>%s</b> because you have already reached the maximum of %s attempts.'), $exercise_title, $objExercise->selectAttempts()),
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$extraParams = "&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id";
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id = isset($_REQUEST['learnpath_item_id']) ? (int) $_REQUEST['learnpath_item_id'] : 0;
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
'action' => $learnpath_id,
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
Session::write('duration_time_previous', [$current_expired_time_key => $current_timestamp]);
- Exclude checks
Variable "question_info" is not in valid camel caps format Open
Open
$question_info->question,
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
echo $attempt_html;
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$clock_expired_time = api_get_utc_datetime($expected_time, false, true);
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
Open
$current_course_tool = TOOL_QUIZ;
- Exclude checks
Variable "expired_time" is not in valid camel caps format Open
Open
$total_seconds = $objExercise->expired_time * 60;
- Exclude checks
Variable "show_clock" is not in valid camel caps format Open
Open
$show_clock = true;
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
(int) $learnpath_item_view_id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (!empty($exercise_stat_info)) {
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= $messageReachedMax;
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
error_log('5.1. $current_timestamp '.$current_timestamp);
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
Session::write('duration_time', [$current_expired_time_key => $current_timestamp]);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "question_data" is not in valid camel caps format Open
Open
foreach ($questions as $question_data) {
- Exclude checks
Variable "question_data" is not in valid camel caps format Open
Open
$question_id = $question_data['question_id'];
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
$current_timestamp = time();
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
$time_control = false;
- Exclude checks
Variable "last_attempt_info" is not in valid camel caps format Open
Open
get_lang('Date').': '.api_get_local_time($last_attempt_info['exe_date']),
- Exclude checks
Variable "total_weight" is not in valid camel caps format Open
Open
$total_weight = 0;
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
if ($time_control) {
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
error_log('5.3. $expected_time '.$clock_expired_time);
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id = isset($_REQUEST['learnpath_id']) ? (int) $_REQUEST['learnpath_id'] : 0;
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
$remind_question_id = isset($_REQUEST['remind_question_id']) ? (int) $_REQUEST['remind_question_id'] : 0;
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$extraParams = "&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id";
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
[$current_expired_time_key => $durationTime[$current_expired_time_key]]
- Exclude checks
Variable "last_attempt_info" is not in valid camel caps format Open
Open
$last_attempt_info = $exercise_stat_info[$max_exe_id];
- Exclude checks
Variable "last_attempt_info" is not in valid camel caps format Open
Open
$last_attempt_info['max_score']
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= $messageReachedMax;
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (empty($exercise_stat_info)) {
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
$learnpath_item_view_id = isset($_REQUEST['learnpath_item_view_id']) ? (int) $_REQUEST['learnpath_item_view_id'] : 0;
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html = '';
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
(int) $learnpath_id,
- Exclude checks
Variable "max_exe_id" is not in valid camel caps format Open
Open
$max_exe_id = max(array_keys($exercise_stat_info));
- Exclude checks
Variable "last_attempt_info" is not in valid camel caps format Open
Open
foreach ($last_attempt_info['question_list'] as $questions) {
- Exclude checks
Variable "question_info" is not in valid camel caps format Open
Open
$question_info = Question::read($question_id);
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= $messageReachedMax;
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
if (-1 == $remind_question_id) {
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
$current_expired_time_key = ExerciseLib::get_time_control_key(
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = api_get_user_id();
- Exclude checks
Variable "attempt_count" is not in valid camel caps format Open
Open
$attempt_count = Event::get_attempt_count(
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
Open
if (0 == $objExercise->results_disabled && !in_array($origin, ['learnpath', 'embeddable'])) {
- Exclude checks
Variable "exercise_attempt_table" is not in valid camel caps format Open
Open
$exercise_attempt_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);
- Exclude checks
Variable "is_allowedToEdit" is not in valid camel caps format Open
Open
(!$objExercise->selectStatus() && !$is_allowedToEdit && !in_array($origin, ['learnpath', 'embeddable']))
- Exclude checks
Variable "show_clock" is not in valid camel caps format Open
Open
$show_clock = false;
- Exclude checks
Variable "max_exe_id" is not in valid camel caps format Open
Open
$last_attempt_info = $exercise_stat_info[$max_exe_id];
- Exclude checks
Variable "question_id" is not in valid camel caps format Open
Open
$question_id = $question_data['question_id'];
- Exclude checks
Variable "question_id" is not in valid camel caps format Open
Open
foreach ($questionListUncompressed as $question_id) {
- Exclude checks
Variable "random_answers" is not in valid camel caps format Open
Open
$template->assign('shuffle_answers', $objExercise->random_answers);
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= Display::div(
- Exclude checks
Variable "last_attempt_info" is not in valid camel caps format Open
Open
$last_attempt_info['score'],
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
$learnpath_item_view_id
- Exclude checks
Variable "is_allowedToEdit" is not in valid camel caps format Open
Open
$is_allowedToEdit = api_is_allowed_to_edit(null, true);
- Exclude checks
Variable "exercise_sound" is not in valid camel caps format Open
Open
$exercise_sound = $objExercise->getSound();
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id
- Exclude checks
Variable "last_attempt_info" is not in valid camel caps format Open
Open
if (!empty($last_attempt_info['question_list'])) {
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= Display::div(
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$clock_expired_time = null;
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
'action_details' => $learnpath_id,
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= $messageReachedMax;
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$exercise_stat_info = $objExercise->get_stat_track_exercise_info(
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
Session::write('duration_time', [$current_expired_time_key => $current_timestamp]);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
(int) $learnpath_item_id,
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$exercise_stat_info = Event::getExerciseResultsByUser(
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$last_attempt_info = $exercise_stat_info[$max_exe_id];
- Exclude checks
Variable "question_id" is not in valid camel caps format Open
Open
$question_info = Question::read($question_id);
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= Display::div(
- Exclude checks
Variable "question_id" is not in valid camel caps format Open
Open
$objQuestionTmp = Question::read($question_id);
- Exclude checks
Variable "expected_time" is not in valid camel caps format Open
Open
$clock_expired_time = api_get_utc_datetime($expected_time, false, true);
- Exclude checks
Variable "exercise_title" is not in valid camel caps format Open
Open
$exercise_title = $objExercise->selectTitle();
- Exclude checks
Variable "review_answers" is not in valid camel caps format Open
Open
if ($objExercise->review_answers) {
- Exclude checks
Variable "attempt_count" is not in valid camel caps format Open
Open
if ($attempt_count >= $objExercise->selectAttempts()) {
- Exclude checks
Variable "attempt_html" is not in valid camel caps format Open
Open
$attempt_html .= Display::div(
- Exclude checks
Variable "expected_time" is not in valid camel caps format Open
Open
$expected_time = $current_timestamp + $total_seconds;
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
$extraParams = "&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id";
- Exclude checks
Variable "expired_time" is not in valid camel caps format Open
Open
if (0 != $objExercise->expired_time) {
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
$time_control = true;
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
if (!empty($durationTime) && isset($durationTime[$current_expired_time_key])) {
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
if ($time_control) {
- Exclude checks
Variable "total_seconds" is not in valid camel caps format Open
Open
$total_seconds = $objExercise->expired_time * 60;
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$max_exe_id = max(array_keys($exercise_stat_info));
- Exclude checks
Variable "question_data" is not in valid camel caps format Open
Open
$marks = $question_data['marks'];
- Exclude checks
Variable "total_weight" is not in valid camel caps format Open
Open
$total_weight += (float) $objQuestionTmp->weighting;
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
$expected_time = $current_timestamp + $total_seconds;
- Exclude checks
Variable "total_seconds" is not in valid camel caps format Open
Open
$expected_time = $current_timestamp + $total_seconds;
- Exclude checks
Variable "expected_time" is not in valid camel caps format Open
Open
error_log('5.2. $expected_time '.$expected_time);
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
if (!isset($_SESSION['expired_time'][$current_expired_time_key])) {
- Exclude checks
Variable "new_expired_time_in_seconds" is not in valid camel caps format Open
Open
$expected_time = $current_timestamp + $new_expired_time_in_seconds;
- Exclude checks
Variable "expected_time" is not in valid camel caps format Open
Open
error_log('7.8. $expected_time1: '.$expected_time);
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
$clock_expired_time = $_SESSION['expired_time'][$current_expired_time_key];
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$nro_question = $current_question; // - 1;
- Exclude checks
Variable "attempt_count" is not in valid camel caps format Open
Open
$attempt_count = Event::get_attempt_count(
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
(int) $learnpath_item_view_id
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$exe_id = $objExercise->save_stat_track_exercise_info(
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
$learnpath_item_view_id,
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$saveDurationUrl = api_get_path(WEB_AJAX_PATH).'exercise.ajax.php?a=update_duration&exe_id='.$exe_id.'&'.api_get_cidreq();
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$params = "exe_id=$exe_id&exerciseId=$exerciseId&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id&".api_get_cidreq().'&reminder='.$reminder;
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
$_SESSION['expired_time'][$current_expired_time_key]
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
(int) $learnpath_item_view_id
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "question_count" is not in valid camel caps format Open
Open
if (0 != $question_count) {
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
$_SESSION['expired_time'][$current_expired_time_key] = $clock_expired_time;
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$_SESSION['expired_time'][$current_expired_time_key] = $clock_expired_time;
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
$learnpath_item_view_id
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$time_left = api_strtotime($clock_expired_time, 'UTC') - time();
- Exclude checks
Variable "review_answers" is not in valid camel caps format Open
Open
if ($objExercise->review_answers && isset($_GET['category_id'])) {
- Exclude checks
Variable "nro_question" is not in valid camel caps format Open
Open
$nro_question = $current_question; // - 1;
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$exe_id,
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$exe_id
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
isset($exercise_stat_info) &&
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (!empty($exercise_stat_info['questions_to_check'])) {
- Exclude checks
Variable "expired_time_of_this_attempt" is not in valid camel caps format Open
Open
$expired_time_of_this_attempt = $exercise_stat_info['expired_time_control'];
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$diff = $current_timestamp - api_strtotime($exercise_stat_info['start_date'], 'UTC');
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
$last_attempt_date = api_get_utc_datetime(
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
$new_expired_time_in_seconds = api_strtotime($expired_time_of_this_attempt, 'UTC') - api_strtotime($last_attempt_date, 'UTC');
- Exclude checks
Variable "question_count" is not in valid camel caps format Open
Open
if ($current_question > $question_count) {
- Exclude checks
Variable "hotspot_id" is not in valid camel caps format Open
Open
$hotspot_id = (int) $_REQUEST['hidden_hotspot_id'];
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if (null === $current_question) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = $objExercise->getPositionInCompressedQuestionList($latestQuestionId);
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
(int) $learnpath_item_id,
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if ($current_question == $i) {
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
'5.4. Setting the $_SESSION[expired_time]: '.$_SESSION['expired_time'][$current_expired_time_key]
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$exe_id = $exercise_stat_info['exe_id'];
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
!empty($exercise_stat_info['data_tracking'])
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$expired_time_of_this_attempt = $exercise_stat_info['expired_time_control'];
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
$last_attempt_date = Event::getLastAttemptDateOfExercise($exercise_stat_info['exe_id']);
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
$expected_time = $current_timestamp + $new_expired_time_in_seconds;
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
$_SESSION['expired_time'][$current_expired_time_key] = $clock_expired_time;
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$_SESSION['expired_time'][$current_expired_time_key] = $clock_expired_time;
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
if ($time_control) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if ((int) $current_question + 1 === count($questionList)) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$params.'&num='.$current_question.'&category_id='.$isLastQuestionInCategory;
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
(int) $learnpath_item_id,
- Exclude checks
Variable "show_quiz_edition" is not in valid camel caps format Open
Open
$show_quiz_edition = $objExercise->added_in_lp();
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
$params = "exe_id=$exe_id&exerciseId=$exerciseId&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id&".api_get_cidreq().'&reminder='.$reminder;
- Exclude checks
Variable "expected_time" is not in valid camel caps format Open
Open
$clock_expired_time = api_get_utc_datetime($expected_time);
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if ($objExercise->isRandom() && !empty($exercise_stat_info['data_tracking'])) {
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
if (!empty($currentAttempt) && isset($currentAttempt[$exe_id]) &&
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$answeredQuestions = array_keys($currentAttempt[$exe_id]['question_list']);
- Exclude checks
Variable "question_count" is not in valid camel caps format Open
Open
$question_count = 0;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id, $objExercise, $exe_id
- Exclude checks
Variable "total_weight" is not in valid camel caps format Open
Open
$total_weight
- Exclude checks
Variable "expired_time_of_this_attempt" is not in valid camel caps format Open
Open
error_log('7.5 $expired_time_of_this_attempt: '.$expired_time_of_this_attempt);
- Exclude checks
Variable "review_answers" is not in valid camel caps format Open
Open
if (false === $objExercise->review_answers) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if ($current_question > $question_count) {
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = 1;
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id="
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
"exercise/exercise_submit.php?$params&num=$nextQuestion&remind_question_id=$remind_question_id";
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$resolvedQuestions = Event::getAllExerciseEventByExeId($exe_id);
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
Session::write('exe_id', $exe_id);
- Exclude checks
Variable "expected_time" is not in valid camel caps format Open
Open
$expected_time = $current_timestamp + $new_expired_time_in_seconds;
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$questionList = explode(',', $exercise_stat_info['data_tracking']);
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
isset($currentAttempt[$exe_id]['question_list'])
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (isset($exercise_stat_info['blocked_categories']) && !empty($exercise_stat_info['blocked_categories'])) {
- Exclude checks
Variable "hotspot_id" is not in valid camel caps format Open
Open
$choice = [$hotspot_id => ''];
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "show_quiz_edition" is not in valid camel caps format Open
Open
if (false == $show_quiz_edition) {
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$clock_expired_time,
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
ExerciseLib::create_chat_exercise_session($exe_id);
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
if (empty($last_attempt_date)) {
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$blockedCategories = explode(',', $exercise_stat_info['blocked_categories']);
- Exclude checks
Variable "question_count" is not in valid camel caps format Open
Open
$question_count = count($questionList);
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
(int) $learnpath_id,
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question > $question_count
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$exe_id = $exercise_stat_info['exe_id'];
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$questionList = explode(',', $exercise_stat_info['data_tracking']);
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
$last_attempt_date = api_get_utc_datetime(api_strtotime($last_attempt_date, 'UTC') + $diff);
- Exclude checks
Variable "exercise_attempt_table" is not in valid camel caps format Open
Open
$sql = "UPDATE $exercise_attempt_table SET
- Exclude checks
Variable "time_left" is not in valid camel caps format Open
Open
$time_left = api_strtotime($clock_expired_time, 'UTC') - time();
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if (ALL_ON_ONE_PAGE == $objExercise->type || $current_question >= $question_count) {
- Exclude checks
Variable "attempt_count" is not in valid camel caps format Open
Open
if ($attempt_count >= $objExercise->selectAttempts()) {
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question++;
- Exclude checks
Variable "exercise_title" is not in valid camel caps format Open
Open
sprintf(get_lang('You cannot take test <b>%s</b> because you have already reached the maximum of %s attempts.'), $exercise_title, $objExercise->selectAttempts()),
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
.$learnpath_item_id
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$attemptQuestionList = explode(',', $exercise_stat_info['data_tracking']);
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
if ($time_control) {
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (!empty($exercise_stat_info)) {
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
if (false == $time_control) {
- Exclude checks
Variable "exercise_title" is not in valid camel caps format Open
Open
sprintf(get_lang('You cannot take test <b>%s</b> because you have already reached the maximum of %s attempts.'), $exercise_title, $objExercise->selectAttempts()),
- Exclude checks
Variable "attempt_count" is not in valid camel caps format Open
Open
if ($attempt_count >= $objExercise->selectAttempts()) {
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$myRemindList = $exercise_stat_info['questions_to_check'];
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
api_strtotime($exercise_stat_info['start_date'], 'UTC') + $diff
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
error_log('7.6. $last_attempt_date: '.$last_attempt_date);
- Exclude checks
Variable "new_expired_time_in_seconds" is not in valid camel caps format Open
Open
error_log('7.7. $new_expired_time_in_seconds: '.$new_expired_time_in_seconds);
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
error_log('7.9. $clock_expired_time: '.$clock_expired_time);
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
if (isset($exe_id)) {
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$latestQuestionId = Event::getLatestQuestionIdFromAttempt($exe_id);
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id="
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$exercise_stat_info = $objExercise->get_stat_track_exercise_info(
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
$diff = $current_timestamp - api_strtotime($last_attempt_date, 'UTC');
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
$last_attempt_date = api_get_utc_datetime(api_strtotime($last_attempt_date, 'UTC') + $diff);
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$clock_expired_time = api_get_utc_datetime($expected_time);
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = $count;
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$params = "exe_id=$exe_id&exerciseId=$exerciseId&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id&".api_get_cidreq().'&reminder='.$reminder;
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$last_attempt_date = Event::getLastAttemptDateOfExercise($exercise_stat_info['exe_id']);
- Exclude checks
Variable "current_timestamp" is not in valid camel caps format Open
Open
$diff = $current_timestamp - api_strtotime($exercise_stat_info['start_date'], 'UTC');
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
$diff = $current_timestamp - api_strtotime($last_attempt_date, 'UTC');
- Exclude checks
Variable "last_attempt_date" is not in valid camel caps format Open
Open
tms = '".$last_attempt_date."' ";
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$clock_expired_time = $_SESSION['expired_time'][$current_expired_time_key];
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (isset($exercise_stat_info['blocked_categories']) && !empty($exercise_stat_info['blocked_categories'])) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if ((int) $current_question === $count) {
- Exclude checks
Variable "question_count" is not in valid camel caps format Open
Open
if (ALL_ON_ONE_PAGE == $objExercise->type || $current_question >= $question_count) {
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
header('Location: exercise_result.php?'.api_get_cidreq()."&exe_id=$exe_id&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id");
- Exclude checks
Variable "attempt_count" is not in valid camel caps format Open
Open
$attempt_count = Event::get_attempt_count(
- Exclude checks
Variable "review_answers" is not in valid camel caps format Open
Open
if ($objExercise->review_answers) {
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$user_id, $objExercise, $exe_id
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
."&learnpath_item_view_id=$learnpath_item_view_id"
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$checkAnswersUrl = api_get_path(WEB_AJAX_PATH).'exercise.ajax.php?a=check_answers&exe_id='.$exe_id.'&'.api_get_cidreq();
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
!empty($exercise_stat_info['data_tracking'])
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
error_log('7.2. $current_expired_time_key '.$current_expired_time_key);
- Exclude checks
Variable "current_expired_time_key" is not in valid camel caps format Open
Open
error_log('7.11. Setting the $_SESSION[expired_time]: '.$_SESSION['expired_time'][$current_expired_time_key]);
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$currentAttempt = Event::get_exercise_results_by_attempt($exe_id, 'incomplete');
- Exclude checks
Variable "propagate_neg" is not in valid camel caps format Open
Open
$objExercise->propagate_neg,
- Exclude checks
Variable "question_count" is not in valid camel caps format Open
Open
$current_question > $question_count
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
(int) $learnpath_id,
- Exclude checks
Variable "media_is_activated" is not in valid camel caps format Open
Open
$media_is_activated = $objExercise->mediaIsActivated();
- Exclude checks
Variable "media_is_activated" is not in valid camel caps format Open
Open
if (false == $media_is_activated &&
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$params = "exe_id=$exe_id&exerciseId=$exerciseId&learnpath_id=$learnpath_id&learnpath_item_id=$learnpath_item_id&learnpath_item_view_id=$learnpath_item_view_id&".api_get_cidreq().'&reminder='.$reminder;
- Exclude checks
Variable "new_expired_time_in_seconds" is not in valid camel caps format Open
Open
$new_expired_time_in_seconds = api_strtotime($expired_time_of_this_attempt, 'UTC') - api_strtotime($last_attempt_date, 'UTC');
- Exclude checks
Variable "expired_time_of_this_attempt" is not in valid camel caps format Open
Open
$new_expired_time_in_seconds = api_strtotime($expired_time_of_this_attempt, 'UTC') - api_strtotime($last_attempt_date, 'UTC');
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
exe_id = '".$exercise_stat_info['exe_id']."' AND
- Exclude checks
Variable "time_left" is not in valid camel caps format Open
Open
$htmlHeadXtra[] = $objExercise->showTimeControlJS($time_left);
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = 0;
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$timeSpent = Event::getAttemptQuestionDuration($exe_id, $objQuestionTmp->iid);
- Exclude checks
Variable "script_php" is not in valid camel caps format Open
Open
window.location = "'.$script_php.'?'.$params.'";
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
<input type="hidden" name="learnpath_item_view_id" value="'.$learnpath_item_view_id.'" />';
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (isset($exercise_stat_info['questions_to_check']) &&
- Exclude checks
Variable "remind_list" is not in valid camel caps format Open
Open
$remind_list = explode(',', $exercise_stat_info['questions_to_check']);
- Exclude checks
Variable "user_choice" is not in valid camel caps format Open
Open
$user_choice,
- Exclude checks
Variable "exercise_end_time" is not in valid camel caps format Open
Open
$exercise_end_time = api_strtotime($objExercise->end_time, 'UTC');
- Exclude checks
Variable "permission_to_start" is not in valid camel caps format Open
Open
$message_warning = $permission_to_start ? get_lang('Time limit reached') : get_lang('The test did not start yet');
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
url = "exercise_submit.php?'.$params.'&num='.$current_question.'&remind_question_id='.$remind_question_id.'&reminder=2";
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if ($current_question != $i) {
- Exclude checks
Variable "is_visible_return" is not in valid camel caps format Open
Open
$is_visible_return = $objExercise->is_visible(
- Exclude checks
Variable "end_time" is not in valid camel caps format Open
Open
$limit_time_exists = !empty($objExercise->start_time) || !empty($objExercise->end_time) ? true : false;
- Exclude checks
Variable "exercise_start_time" is not in valid camel caps format Open
Open
$exercise_start_time = api_strtotime($objExercise->start_time, 'UTC');
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
if ($remind_question_id == $data_tracking[$i]) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = $i + 1; // last question
- Exclude checks
Variable "remind_list" is not in valid camel caps format Open
Open
$remind_list = [];
- Exclude checks
Variable "time_now" is not in valid camel caps format Open
Open
$permission_to_start = (($time_now - $exercise_start_time) > 0) ? true : false;
- Exclude checks
Variable "data_tracking" is not in valid camel caps format Open
Open
$data_tracking = $exercise_stat_info['data_tracking'];
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
$remind_question_id = $myRemindList[$j + 1];
- Exclude checks
Variable "script_php" is not in valid camel caps format Open
Open
$script_php = 'exercise_result.php';
- Exclude checks
Variable "user_choice" is not in valid camel caps format Open
Open
$user_choice = null;
- Exclude checks
Variable "is_remind_on" is not in valid camel caps format Open
Open
$is_remind_on = false;
- Exclude checks
Variable "remind_highlight" is not in valid camel caps format Open
Open
$remind_highlight = ' remind_highlight ';
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 16 Open
Open
$myRemindList,
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question
- Exclude checks
Variable "is_visible_return" is not in valid camel caps format Open
Open
echo $is_visible_return['message'];
- Exclude checks
Variable "start_time" is not in valid camel caps format Open
Open
$exercise_start_time = api_strtotime($objExercise->start_time, 'UTC');
- Exclude checks
Variable "exercise_end_time" is not in valid camel caps format Open
Open
$exercise_timeover = $time_now - $exercise_end_time > 0 ? true : false;
- Exclude checks
Variable "exercise_title" is not in valid camel caps format Open
Open
$exercise_title,
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = $i + 1; // last question
- Exclude checks
Variable "data_tracking" is not in valid camel caps format Open
Open
if ($myRemindList[$j] == $data_tracking[$i]) {
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
$remind_question_id = $myRemindList[$j + 1];
- Exclude checks
Variable "number_of_hotspot_questions" is not in valid camel caps format Open
Open
$number_of_hotspot_questions = 0;
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
'&remind_question_id='.$remind_question_id.'&reminder=2";
- Exclude checks
Variable "attempt_list" is not in valid camel caps format Open
Open
if (isset($attempt_list[$questionId])) {
- Exclude checks
Variable "is_remind_on" is not in valid camel caps format Open
Open
$is_remind_on = true;
- Exclude checks
Variable "remind_question" is not in valid camel caps format Open
Open
$remind_question = true;
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "is_visible_return" is not in valid camel caps format Open
Open
if (false == $is_visible_return['value']) {
- Exclude checks
Variable "end_time" is not in valid camel caps format Open
Open
$exercise_end_time = api_strtotime($objExercise->end_time, 'UTC');
- Exclude checks
Variable "time_now" is not in valid camel caps format Open
Open
$exercise_timeover = $time_now - $exercise_end_time > 0 ? true : false;
- Exclude checks
Variable "permission_to_start" is not in valid camel caps format Open
Open
if (!$permission_to_start || $exercise_timeover) {
- Exclude checks
Variable "data_tracking" is not in valid camel caps format Open
Open
$data_tracking = explode(',', $data_tracking);
- Exclude checks
Variable "data_tracking" is not in valid camel caps format Open
Open
for ($i = 0; $i < count($data_tracking); $i++) {
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
if (!empty($remind_question_id)) {
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
$remind_question_id = -1;
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
url = "exercise_submit.php?'.$params.'&num='.$current_question.'&remind_question_id='.$remind_question_id.'";
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
url = "exercise_question_reminder.php?'.$params.'&num='.($current_question - 1).'&category_id='.$isLastQuestionInCategory.'";
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "review_answers" is not in valid camel caps format Open
Open
if ($objExercise->review_answers) {
- Exclude checks
Variable "remind_question_div" is not in valid camel caps format Open
Open
$remind_question_div = Display::tag(
- Exclude checks
Variable "message_warning" is not in valid camel caps format Open
Open
$message_warning,
- Exclude checks
Variable "exercise_sound" is not in valid camel caps format Open
Open
href="../document/download.php?doc_url=%2Faudio%2F'.Security::remove_XSS($exercise_sound).'"
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
url = "exercise_reminder.php?'.$params.'&num='.$current_question.'";
- Exclude checks
Variable "remind_highlight" is not in valid camel caps format Open
Open
$remind_highlight = 'no_remind_highlight';
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
url = "exercise_reminder.php?'.$params.'&num='.$current_question.'";
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
url = "exercise_submit.php?'.$params.'&num='.$current_question.
- Exclude checks
Variable "attempt_list" is not in valid camel caps format Open
Open
$attempt_list = [];
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 16 Open
Open
$showPreviousButton
- Exclude checks
Variable "limit_time_exists" is not in valid camel caps format Open
Open
$limit_time_exists = !empty($objExercise->start_time) || !empty($objExercise->end_time) ? true : false;
- Exclude checks
Variable "exercise_timeover" is not in valid camel caps format Open
Open
if (!$permission_to_start || $exercise_timeover) {
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
if ($time_control) {
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
if ($remind_question_id == $myRemindList[$j]) {
- Exclude checks
Variable "attempt_list" is not in valid camel caps format Open
Open
if (isset($attempt_list[$questionId])) {
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "remind_highlight" is not in valid camel caps format Open
Open
$remind_highlight = '';
- Exclude checks
Variable "remind_question_div" is not in valid camel caps format Open
Open
$remind_question_div,
- Exclude checks
Variable "limit_time_exists" is not in valid camel caps format Open
Open
if ($limit_time_exists) {
- Exclude checks
Variable "exercise_start_time" is not in valid camel caps format Open
Open
$permission_to_start = (($time_now - $exercise_start_time) > 0) ? true : false;
- Exclude checks
Variable "review_answers" is not in valid camel caps format Open
Open
if ($objExercise->review_answers) {
- Exclude checks
Variable "exercise_sound" is not in valid camel caps format Open
Open
if (!empty($exercise_sound)) {
- Exclude checks
Variable "number_of_hotspot_questions" is not in valid camel caps format Open
Open
$number_of_hotspot_questions++;
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
'&remind_question_id='.$remind_question_id.'";
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
<input type="hidden" name="learnpath_item_id" value="'.$learnpath_item_id.'" />
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$remind_list = explode(',', $exercise_stat_info['questions_to_check']);
- Exclude checks
Variable "user_choice" is not in valid camel caps format Open
Open
$user_choice = $correctAnswers[$questionId];
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "permission_to_start" is not in valid camel caps format Open
Open
$permission_to_start = true;
- Exclude checks
Variable "message_warning" is not in valid camel caps format Open
Open
$message_warning = $permission_to_start ? get_lang('Time limit reachedAdmin') : get_lang('The trainer did not allow the test to start yet');
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = $i + 1;
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = $i + 1; // last question
- Exclude checks
Variable "number_of_hotspot_questions" is not in valid camel caps format Open
Open
$number_of_hotspot_questions++;
- Exclude checks
Variable "script_php" is not in valid camel caps format Open
Open
window.location = "'.$script_php.'?'.$params.'";
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
if (isset($exe_id)) {
- Exclude checks
Variable "user_choice" is not in valid camel caps format Open
Open
$user_choice = $attempt_list[$questionId];
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id
- Exclude checks
Variable "remind_highlight" is not in valid camel caps format Open
Open
echo '<div id="question_div_'.$questionId.'" class="main-question '.$remind_highlight.'" >';
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question,
- Exclude checks
Variable "exercise_timeover" is not in valid camel caps format Open
Open
$exercise_timeover = false;
- Exclude checks
Variable "exercise_timeover" is not in valid camel caps format Open
Open
$exercise_timeover = $time_now - $exercise_end_time > 0 ? true : false;
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
$data_tracking = $exercise_stat_info['data_tracking'];
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
$current_question = 1; //set by default the 1st question
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
url = "exercise_submit.php?'.$params.'&num='.$current_question.
- Exclude checks
Variable "start_time" is not in valid camel caps format Open
Open
$limit_time_exists = !empty($objExercise->start_time) || !empty($objExercise->end_time) ? true : false;
- Exclude checks
Variable "start_time" is not in valid camel caps format Open
Open
if (!empty($objExercise->start_time)) {
- Exclude checks
Variable "permission_to_start" is not in valid camel caps format Open
Open
$permission_to_start = (($time_now - $exercise_start_time) > 0) ? true : false;
- Exclude checks
Variable "message_warning" is not in valid camel caps format Open
Open
$message_warning = $permission_to_start ? get_lang('Time limit reached') : get_lang('The test did not start yet');
- Exclude checks
Variable "permission_to_start" is not in valid camel caps format Open
Open
$message_warning = $permission_to_start ? get_lang('Time limit reachedAdmin') : get_lang('The trainer did not allow the test to start yet');
- Exclude checks
Variable "message_warning" is not in valid camel caps format Open
Open
$message_warning,
- Exclude checks
Variable "exercise_title" is not in valid camel caps format Open
Open
$exercise_title,
- Exclude checks
Variable "data_tracking" is not in valid camel caps format Open
Open
$data_tracking = explode(',', $data_tracking);
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
url = "exercise_submit.php?'.$params.'&num='.$current_question.'&remind_question_id='.$remind_question_id.'&reminder=2";
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
<input type="hidden" name="exe_id" value="'.$exe_id.'" />
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
<input type="hidden" name="learnpath_id" value="'.$learnpath_id.'" />
- Exclude checks
Variable "exe_id" is not in valid camel caps format Open
Open
$attempt_list = Event::getAllExerciseEventByExeId($exe_id);
- Exclude checks
Variable "attempt_list" is not in valid camel caps format Open
Open
$user_choice = $attempt_list[$questionId];
- Exclude checks
Variable "learnpath_item_view_id" is not in valid camel caps format Open
Open
$learnpath_item_view_id
- Exclude checks
Variable "time_now" is not in valid camel caps format Open
Open
$time_now = time();
- Exclude checks
Variable "end_time" is not in valid camel caps format Open
Open
if (!empty($objExercise->end_time)) {
- Exclude checks
Variable "data_tracking" is not in valid camel caps format Open
Open
if ($remind_question_id == $data_tracking[$i]) {
- Exclude checks
Variable "remind_question_id" is not in valid camel caps format Open
Open
$remind_question_id = -1;
- Exclude checks
Variable "script_php" is not in valid camel caps format Open
Open
$script_php = 'exercise_reminder.php';
- Exclude checks
Variable "attempt_list" is not in valid camel caps format Open
Open
$attempt_list = Event::getAllExerciseEventByExeId($exe_id);
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
!empty($exercise_stat_info['questions_to_check'])
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "review_answers" is not in valid camel caps format Open
Open
if ($objExercise->review_answers) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
url = "exercise_submit.php?'.$params.'&num='.$current_question.'&remind_question_id='.$remind_question_id.'";
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
<input type="hidden" name="num" value="'.$current_question.'" id="num_current_id" />
- Exclude checks
Variable "remind_list" is not in valid camel caps format Open
Open
if (in_array($questionId, $remind_list)) {
- Exclude checks
Variable "current_question" is not in valid camel caps format Open
Open
if ($current_question != $i) {
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$user_id, $objExercise, $exe_id
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$user_id, $objExercise, $exe_id
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
header('Location: exercise_result.php?'
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
}
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 16 Open
Open
$showPreviousButton
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
if (!in_array($origin, ['learnpath', 'embeddable'])) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
if (ONE_PER_PAGE == $objExercise->type) {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 16 Open
Open
$myRemindList,
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 0 Open
Open
Display::display_footer();
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
foreach ($questionList as $questionId) {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 20 Open
Open
if (HOT_SPOT == $objQuestionTmp->selectType() ||
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 20 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
if (!empty($questionList)) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
echo '</div>'; //End glossary div
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
if ($current_question != $i) {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
if (!empty($exercise_sound)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
if (HOT_SPOT == $objQuestionTmp->selectType() ||
- Exclude checks