chamilo/chamilo-lms

View on GitHub
public/main/tracking/question_course_report.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "temp_course_list" is not in valid camel caps format
Open

    $temp_course_list = CourseManager::get_courses_list();

Variable "session_id" is not in valid camel caps format
Open

    $temp_course_list = SessionManager::get_course_list_by_session_id($session_id);

Variable "temp_course_item" is not in valid camel caps format
Open

    $course_item = api_get_course_info($temp_course_item['code']);

Variable "course_code" is not in valid camel caps format
Open

$course_info = api_get_course_info($course_code);

Variable "my_exercise" is not in valid camel caps format
Open

            $my_exercise->read($exercise['path']);

Variable "question_id" is not in valid camel caps format
Open

                    $main_question_list[$question_id]->results = 0;

Variable "html_result" is not in valid camel caps format
Open

            $html_result .= get_lang('Untitled').' '.get_lang('Question').' #'.$question->id;

Variable "html_result" is not in valid camel caps format
Open

            $html_result .= $question->question;

Variable "course_select_list" is not in valid camel caps format
Open

$course_select_list[0] = get_lang('none');

Variable "session_id" is not in valid camel caps format
Open

$session_id = isset($_REQUEST['session_id']) ? intval($_REQUEST['session_id']) : null;

Variable "lp_id" is not in valid camel caps format
Open

    foreach ($lp_list as $lp_id => $lp) {

Variable "main_question_list" is not in valid camel caps format
Open

                    $main_question_list[$question_id]->results = 0;

Variable "html_result" is not in valid camel caps format
Open

    $html_result .= '<tr><th>'.get_lang('Question').

Variable "question_title" is not in valid camel caps format
Open

        if (empty($question_title)) {

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= $question->quantity;

Variable "temp_course_list" is not in valid camel caps format
Open

    $temp_course_list = SessionManager::get_course_list_by_session_id($session_id);

Variable "sesion_item" is not in valid camel caps format
Open

foreach ($session_list as $sesion_item) {

Variable "course_info" is not in valid camel caps format
Open

$course_info = api_get_course_info($course_code);

Variable "lp_id" is not in valid camel caps format
Open

        $exercise_list = Event::get_all_exercises_from_lp($lp_id);

Variable "course_info" is not in valid camel caps format
Open

                $course_info['real_id'],

Variable "session_id" is not in valid camel caps format
Open

                $session_id

Variable "question_list" is not in valid camel caps format
Open

            foreach ($question_list as $question_id) {

Variable "my_question_stat" is not in valid camel caps format
Open

                            if ($question_id == $my_question_stat['question_id']) {

Variable "quantity_exercises" is not in valid camel caps format
Open

                if (!empty($quantity_exercises)) {

Variable "html_result" is not in valid camel caps format
Open

    $html_result .= '<table  class="table table-hover table-striped data_table">';

Variable "session_id" is not in valid camel caps format
Open

if (empty($session_id)) {

Variable "my_session_list" is not in valid camel caps format
Open

$my_session_list[0] = get_lang('none');

Variable "my_exercise" is not in valid camel caps format
Open

            $my_exercise = new Exercise($course_info['real_id']);

Variable "question_data" is not in valid camel caps format
Open

                $question_data = Question::read($question_id);

Variable "quantity_exercises" is not in valid camel caps format
Open

                $quantity_exercises = 0;

Variable "quantity_exercises" is not in valid camel caps format
Open

                    $main_question_list[$question_id]->results = ($question_result / ($quantity_exercises));

Variable "main_question_list" is not in valid camel caps format
Open

if (!empty($main_question_list) && is_array($main_question_list)) {

Variable "course_list" is not in valid camel caps format
Open

$course_list = $course_select_list = [];

Variable "my_session_list" is not in valid camel caps format
Open

    $my_session_list,

Variable "course_code" is not in valid camel caps format
Open

    $course_code = $_REQUEST['course_code'];

Variable "question_result" is not in valid camel caps format
Open

                $question_result = 0;

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= "<tr class='$s_css_class'>

Variable "temp_course_list" is not in valid camel caps format
Open

foreach ($temp_course_list as $temp_course_item) {

Variable "temp_course_item" is not in valid camel caps format
Open

    $course_select_list[$temp_course_item['code']] = $course_item['title'];

Variable "session_list" is not in valid camel caps format
Open

$session_list = SessionManager::get_sessions_list([], ['title']);

Variable "sesion_item" is not in valid camel caps format
Open

    $my_session_list[$sesion_item['id']] = $sesion_item['title'];

Variable "course_code" is not in valid camel caps format
Open

    $course_code = 0;

Variable "course_info" is not in valid camel caps format
Open

if (!empty($course_info)) {

Variable "lp_list" is not in valid camel caps format
Open

    $lp_list = $list->get_flat_list();

Variable "question_id" is not in valid camel caps format
Open

                $question_data = Question::read($question_id);

Variable "course_code" is not in valid camel caps format
Open

    if (empty($course_code)) {

Variable "s_css_class" is not in valid camel caps format
Open

            $s_css_class = 'row_odd';

Variable "this_section" is not in valid camel caps format
Open

$this_section = 'session_my_space';

Variable "temp_course_item" is not in valid camel caps format
Open

foreach ($temp_course_list as $temp_course_item) {

Variable "course_select_list" is not in valid camel caps format
Open

    $course_select_list[$temp_course_item['code']] = $course_item['title'];

Variable "my_session_list" is not in valid camel caps format
Open

$my_session_list = [];

Variable "sesion_item" is not in valid camel caps format
Open

    $my_session_list[$sesion_item['id']] = $sesion_item['title'];

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= "<td>";

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= round($question->results, 2).' / '.$question->weighting;

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= "</td>";

Variable "question_result" is not in valid camel caps format
Open

                                $question_result = $question_result + $my_question_stat['marks'];

Variable "main_question_list" is not in valid camel caps format
Open

                    $main_question_list[$question_id]->results = ($question_result / ($quantity_exercises));

Variable "question_id" is not in valid camel caps format
Open

                $main_question_list[$question_id]->quantity = $quantity_exercises;

Variable "main_question_list" is not in valid camel caps format
Open

if (!empty($main_question_list) && is_array($main_question_list)) {

Variable "html_result" is not in valid camel caps format
Open

    $html_result .= '<th>'.$course_info['visual_code'].' '.get_lang('Average score').Display::getMdiIcon(ActionIcon::INFORMATION, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('All learners attempts are considered')).' </th>';

Variable "html_result" is not in valid camel caps format
Open

    echo $html_result;

Variable "export_to_xls" is not in valid camel caps format
Open

    $export_to_xls = true;

Variable "course_select_list" is not in valid camel caps format
Open

$course_list = $course_select_list = [];

Variable "question_data" is not in valid camel caps format
Open

                $main_question_list[$question_id] = $question_data;

Variable "quantity_exercises" is not in valid camel caps format
Open

                                $quantity_exercises++;

Variable "html_result" is not in valid camel caps format
Open

    $html_result .= '<th>'.get_lang('Quantity').'</th>';

Variable "total_student" is not in valid camel caps format
Open

        $total_student = 0;

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= "</td>";

Variable "html_result" is not in valid camel caps format
Open

    $html_result .= "</tr>";

Variable "course_code" is not in valid camel caps format
Open

$form->setDefaults(['course_code' => (string) $course_code]);

Variable "course_info" is not in valid camel caps format
Open

    $list = new LearnpathList('', $course_info);

Variable "exercise_list" is not in valid camel caps format
Open

        foreach ($exercise_list as $exercise) {

Variable "exercise_stats" is not in valid camel caps format
Open

                foreach ($exercise_stats as $stats) {

Variable "course_average" is not in valid camel caps format
Open

$course_average = [];

Variable "s_css_class" is not in valid camel caps format
Open

        $html_result .= "<tr class='$s_css_class'>

Variable "html_result" is not in valid camel caps format
Open

    $html_result .= '</table>';

Variable "course_code" is not in valid camel caps format
Open

    if (!empty($course_code)) {

Variable "course_item" is not in valid camel caps format
Open

    $course_item = api_get_course_info($temp_course_item['code']);

Variable "my_session_list" is not in valid camel caps format
Open

    $my_session_list[$sesion_item['id']] = $sesion_item['title'];

Variable "export_to_xls" is not in valid camel caps format
Open

$export_to_xls = false;

Variable "main_question_list" is not in valid camel caps format
Open

    $main_question_list = [];

Variable "course_select_list" is not in valid camel caps format
Open

    $course_select_list

Variable "question_list" is not in valid camel caps format
Open

            $question_list = $my_exercise->selectQuestionList();

Variable "lp_list" is not in valid camel caps format
Open

    foreach ($lp_list as $lp_id => $lp) {

Variable "course_info" is not in valid camel caps format
Open

            $my_exercise = new Exercise($course_info['real_id']);

Variable "my_exercise" is not in valid camel caps format
Open

            $question_list = $my_exercise->selectQuestionList();

Variable "exercise_stats" is not in valid camel caps format
Open

            $exercise_stats = Event::get_all_exercise_event_from_lp(

Variable "my_question_stat" is not in valid camel caps format
Open

                        foreach ($stats['question_list'] as $my_question_stat) {

Variable "question_id" is not in valid camel caps format
Open

            foreach ($question_list as $question_id) {

Variable "question_id" is not in valid camel caps format
Open

                            if ($question_id == $my_question_stat['question_id']) {

Variable "question_id" is not in valid camel caps format
Open

                    $main_question_list[$question_id]->results = ($question_result / ($quantity_exercises));

Variable "question_id" is not in valid camel caps format
Open

                $main_question_list[$question_id] = $question_data;

Variable "course_info" is not in valid camel caps format
Open

    $html_result .= '<th>'.$course_info['visual_code'].' '.get_lang('Average score').Display::getMdiIcon(ActionIcon::INFORMATION, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('All learners attempts are considered')).' </th>';

Variable "question_result" is not in valid camel caps format
Open

                                $question_result = $question_result + $my_question_stat['marks'];

Variable "s_css_class" is not in valid camel caps format
Open

        $s_css_class = 'row_even';

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= "<td>";

Variable "session_list" is not in valid camel caps format
Open

foreach ($session_list as $sesion_item) {

Variable "exercise_list" is not in valid camel caps format
Open

        $exercise_list = Event::get_all_exercises_from_lp($lp_id);

Variable "export_to_xls" is not in valid camel caps format
Open

if (!$export_to_xls) {

Variable "export_to_xls" is not in valid camel caps format
Open

if (!$export_to_xls) {

Variable "question_title" is not in valid camel caps format
Open

        $question_title = trim($question->question);

Variable "html_result" is not in valid camel caps format
Open

$html_result = '';

Variable "course_code" is not in valid camel caps format
Open

    $course_code = '';

Variable "course_code" is not in valid camel caps format
Open

if (empty($course_code)) {

Variable "question_result" is not in valid camel caps format
Open

                    $main_question_list[$question_id]->results = ($question_result / ($quantity_exercises));

Variable "quantity_exercises" is not in valid camel caps format
Open

                $main_question_list[$question_id]->quantity = $quantity_exercises;

Variable "course_item" is not in valid camel caps format
Open

    $course_select_list[$temp_course_item['code']] = $course_item['title'];

Variable "main_question_list" is not in valid camel caps format
Open

                $main_question_list[$question_id] = $question_data;

Variable "my_question_stat" is not in valid camel caps format
Open

                                $question_result = $question_result + $my_question_stat['marks'];

Variable "main_question_list" is not in valid camel caps format
Open

                $main_question_list[$question_id]->quantity = $quantity_exercises;

Variable "main_question_list" is not in valid camel caps format
Open

    foreach ($main_question_list as $question) {

Variable "html_result" is not in valid camel caps format
Open

        $html_result .= "</td>";

There are no issues that match your filters.

Category
Status