public/main/exercise/overview.php
Variable "extra_params" is not in valid camel caps format Open
Open
$extra_params = '';
- Exclude checks
Variable "extra_params" is not in valid camel caps format Open
Open
api_get_cidreq().'&exerciseId='.$objExercise->id.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id.'&learnpath_item_view_id='.$learnpathItemViewId.$extra_params;
- Exclude checks
Variable "visible_return" is not in valid camel caps format Open
Open
if (false == $visible_return['value']) {
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
if (0 == $attempt_result['attempt_revised']) {
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
Open
$objExercise->results_disabled,
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
'learnpath_id' => $learnpath_id,
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id = isset($_REQUEST['learnpath_id']) ? (int) $_REQUEST['learnpath_id'] : null;
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
if (0 != $objExercise->expired_time && !empty($clock_expired_time)) {
- 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
$time_left = api_strtotime($clock_expired_time, 'UTC') - time();
- Exclude checks
Variable "extra_params" is not in valid camel caps format Open
Open
$extra_params = '&preview=1';
- Exclude checks
Variable "visible_return" is not in valid camel caps format Open
Open
$message = $visible_return['message'];
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "url_suffix" is not in valid camel caps format Open
Open
$attempt_url .= $url_suffix;
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
foreach ($header_names as $item) {
- Exclude checks
Variable "my_attempt_array" is not in valid camel caps format Open
Open
if (!empty($my_attempt_array)) {
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
Open
$current_course_tool = TOOL_QUIZ;
- 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 "time_control" is not in valid camel caps format Open
Open
if ($time_control && !empty($clock_expired_time) || isset($exercise_stat_info['exe_id'])) {
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "attempt_url" is not in valid camel caps format Open
Open
$attempt_url .= http_build_query(['id' => $attempt_result['exe_id']]);
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP'), get_lang('Score')];
- Exclude checks
Variable "my_attempt_array" is not in valid camel caps format Open
Open
foreach ($my_attempt_array as $data) {
- Exclude checks
Variable "table_content" is not in valid camel caps format Open
Open
$table_content,
- Exclude checks
Variable "time_left" is not in valid camel caps format Open
Open
$htmlHeadXtra[] = $objExercise->showTimeControlJS($time_left);
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit) {
- 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 "results_disabled" is not in valid camel caps format Open
Open
$objExercise->results_disabled,
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$score = ExerciseLib::show_score($attempt_result['score'], $attempt_result['max_score']);
- Exclude checks
Variable "attempt_url" is not in valid camel caps format Open
Open
$attempt_url .= api_get_cidreq().'&show_headers=1&';
- Exclude checks
Variable "btn_class" is not in valid camel caps format Open
Open
'class' => $btn_class.'btn btn--plain',
- Exclude checks
Variable "attempt_message" is not in valid camel caps format Open
Open
$attempt_message = Display::return_message($attempt_message, 'error');
- Exclude checks
Variable "visible_return" is not in valid camel caps format Open
Open
if (true == $visible_return['value']) {
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
$clock_expired_time = ExerciseLib::get_session_time_control_key($objExercise->id, $learnpath_id, $learnpath_item_id);
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$clock_expired_time = ExerciseLib::get_session_time_control_key($objExercise->id, $learnpath_id, $learnpath_item_id);
- Exclude checks
Variable "visible_return" is not in valid camel caps format Open
Open
$visible_return = $objExercise->is_visible(
- Exclude checks
Variable "url_suffix" is not in valid camel caps format Open
Open
$url_suffix = '';
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
])
- Exclude checks
Variable "teacher_revised" is not in valid camel caps format Open
Open
$attempt_link .= PHP_EOL.$teacher_revised;
- Exclude checks
Variable "exercise_url_button" is not in valid camel caps format Open
Open
if (!empty($exercise_url_button) && !$isLimitReached) {
- Exclude checks
Variable "exercise_id" is not in valid camel caps format Open
Open
'exerciseId' => $exercise_id,
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "exercise_id" is not in valid camel caps format Open
Open
$exercise_id = isset($_REQUEST['exerciseId']) ? (int) $_REQUEST['exerciseId'] : 0;
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
$is_allowed_to_edit = api_is_allowed_to_edit(null, true);
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
'quiz_check_request_button',
- Exclude checks
Variable "attempt_link" is not in valid camel caps format Open
Open
$attempt_link = '';
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
Open
RESULT_DISABLE_DONT_SHOW_SCORE_ONLY_IF_USER_FINISHES_ATTEMPTS_SHOW_ALWAYS_FEEDBACK == $objExercise->results_disabled
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
if (!$objExercise->hasResultsAccess($attempt_result)) {
- Exclude checks
Variable "exercise_url_button" is not in valid camel caps format Open
Open
$exercise_url_button = Display::return_message(get_lang('The portal do not allowed to start new test for the moment, please come back later.'));
- Exclude checks
Variable "exercise_url_button" is not in valid camel caps format Open
Open
$exercise_url_button,
- Exclude checks
Variable "exercise_id" is not in valid camel caps format Open
Open
'tool_id' => $exercise_id,
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
$learnpath_item_id,
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
api_get_cidreq().'&exerciseId='.$objExercise->id.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id.'&learnpath_item_view_id='.$learnpathItemViewId.$extra_params;
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
if ($time_control) {
- Exclude checks
Variable "exercise_url_button" is not in valid camel caps format Open
Open
$exercise_url_button = Display::url(
- Exclude checks
Variable "exercise_url" is not in valid camel caps format Open
Open
$exercise_url,
- Exclude checks
Variable "attempt_url" is not in valid camel caps format Open
Open
$attempt_url,
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
Open
RESULT_DISABLE_DONT_SHOW_SCORE_ONLY_IF_USER_FINISHES_ATTEMPTS_SHOW_ALWAYS_FEEDBACK != $objExercise->results_disabled
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP'), get_lang('Details')];
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP'), get_lang('Score')];
- Exclude checks
Variable "attempt_message" is not in valid camel caps format Open
Open
$attempt_message = Display::return_message($attempt_message, 'error');
- Exclude checks
Variable "expired_time" is not in valid camel caps format Open
Open
if (0 != $objExercise->expired_time && !empty($clock_expired_time)) {
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if ($disable && empty($exercise_stat_info)) {
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
api_get_cidreq().'&exerciseId='.$objExercise->id.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id.'&learnpath_item_view_id='.$learnpathItemViewId.$extra_params;
- Exclude checks
Variable "exercise_url_button" is not in valid camel caps format Open
Open
$exercise_url_button = null;
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$attempt_url .= http_build_query(['id' => $attempt_result['exe_id']]);
- Exclude checks
Variable "attempt_link" is not in valid camel caps format Open
Open
$attempt_link = Display::url(
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [
- Exclude checks
Variable "exercise_id" is not in valid camel caps format Open
Open
if ($plugin->blockFinalExercise(api_get_user_id(), $exercise_id, $courseId, $sessionId)) {
- Exclude checks
Variable "attempt_url" is not in valid camel caps format Open
Open
$attempt_url = api_get_path(WEB_CODE_PATH).'exercise/result.php?';
- Exclude checks
Variable "attempt_link" is not in valid camel caps format Open
Open
$attempt_link = '';
- Exclude checks
Variable "attempt_link" is not in valid camel caps format Open
Open
$row['attempt_link'] = $attempt_link;
- Exclude checks
Variable "my_attempt_array" is not in valid camel caps format Open
Open
$my_attempt_array[] = $row;
- Exclude checks
Variable "table_content" is not in valid camel caps format Open
Open
$table_content = $table->toHtml();
- Exclude checks
Variable "exercise_id" is not in valid camel caps format Open
Open
$result = $objExercise->read($exercise_id, true);
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$clock_expired_time = ExerciseLib::get_session_time_control_key($objExercise->id, $learnpath_id, $learnpath_item_id);
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if ($time_control && !empty($clock_expired_time) || isset($exercise_stat_info['exe_id'])) {
- Exclude checks
Variable "exercise_stat_info" is not in valid camel caps format Open
Open
if (isset($exercise_stat_info['exe_id'])) {
- Exclude checks
Variable "exercise_url_button" is not in valid camel caps format Open
Open
$exercise_url_button = null;
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$attempt_result['exe_user_id'],
- Exclude checks
Variable "attempt_url" is not in valid camel caps format Open
Open
$attempt_url .= $url_suffix;
- Exclude checks
Variable "teacher_revised" is not in valid camel caps format Open
Open
$teacher_revised = Display::label(get_lang('Validated'), 'success');
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
Open
RESULT_DISABLE_SHOW_SCORE_ONLY == $objExercise->results_disabled &&
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
Open
switch ($objExercise->results_disabled) {
- Exclude checks
Variable "attempt_message" is not in valid camel caps format Open
Open
$attempt_message = get_lang('Attempts').' '.$counter.' / '.$selectAttempts;
- Exclude checks
Variable "attempt_message" is not in valid camel caps format Open
Open
$attempt_message = Display::return_message($attempt_message, 'info');
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
$time_control = false;
- Exclude checks
Variable "time_control" is not in valid camel caps format Open
Open
$time_control = true;
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
[
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$attempt_result['score'],
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
'date' => api_convert_and_format_date($attempt_result['start_date'], DATE_TIME_FORMAT_LONG),
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [
- 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'] : null;
- Exclude checks
Variable "exercise_url" is not in valid camel caps format Open
Open
$exercise_url = api_get_path(WEB_CODE_PATH).'exercise/exercise_submit.php?'.
- Exclude checks
Variable "results_disabled" is not in valid camel caps format Open
Open
$objExercise->results_disabled,
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [
- Exclude checks
Variable "attempt_message" is not in valid camel caps format Open
Open
$message .= $attempt_message;
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit) {
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$attempt_result['max_score'],
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
'userIp' => $attempt_result['user_ip'],
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP')];
- Exclude checks
Variable "attempt_message" is not in valid camel caps format Open
Open
$attempt_message = Display::return_message($attempt_message, 'info');
- Exclude checks
Variable "clock_expired_time" is not in valid camel caps format Open
Open
if ($time_control && !empty($clock_expired_time) || isset($exercise_stat_info['exe_id'])) {
- Exclude checks
Variable "learnpath_id" is not in valid camel caps format Open
Open
$learnpath_id,
- Exclude checks
Variable "my_attempt_array" is not in valid camel caps format Open
Open
$my_attempt_array = [];
- Exclude checks
Variable "btn_class" is not in valid camel caps format Open
Open
$btn_class = ' ';
- Exclude checks
Variable "attempt_link" is not in valid camel caps format Open
Open
$attempt_link .= PHP_EOL.$teacher_revised;
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [];
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
Open
$header_names = [
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
Display::getMdiIcon('loading', 'animate-spin hidden').' '.get_lang('TestYourBrowser'),
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
).PHP_EOL.'<strong id="quiz-check-request-text"></strong>';
- Exclude checks
Variable "table_content" is not in valid camel caps format Open
Open
$table_content = '';
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
foreach ($attempts as $attempt_result) {
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$score = ExerciseLib::show_score($attempt_result['score'], $attempt_result['max_score']);
- Exclude checks
Variable "teacher_revised" is not in valid camel caps format Open
Open
$teacher_revised = Display::label(get_lang('Not validated'), 'info');
- Exclude checks
Variable "learnpath_item_id" is not in valid camel caps format Open
Open
'learnpath_item_id' => $learnpath_item_id,
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
])
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
])
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
Display::getMdiIcon('loading', 'animate-spin hidden').' '.get_lang('TestYourBrowser'),
- Exclude checks
Multi-line function call not indented correctly; expected 4 spaces but found 8 Open
Open
).PHP_EOL.'<strong id="quiz-check-request-text"></strong>';
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
[
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 12 Open
Open
'quiz_check_request_button',
- Exclude checks