chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

if (0 == count($session_list)) {

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

foreach ($course_list as $current_course) {

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

                $attempt_result[$stats['exe_user_id']]['attempts']++;

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

$total_average_score = 0;

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

        $s_css_class = 'row_even';

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

if (!$is_allowedToTrack) {

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

foreach ($session_list as $sesion_item) {

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

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

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

    $main_result[$current_course['code']] = $attempt_result;

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

    $html_result .= '<th>'.get_lang('Last connexion date').'</th></tr>';

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

            if (isset($main_result[$current_course['code']][$user['user_id']])) {

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

                $user_info_stat = $main_result[$current_course['code']][$user['user_id']];

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

    $session_id = intval($_REQUEST['session_id']);

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

$main_result = [];

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

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

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

    $main_result[$current_course['code']] = $attempt_result;

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

$html_result = '';

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

    $filter_score = 70;

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

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

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

    $attempt_result = [];

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

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

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

                $session_id

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

    $export_to_xls = true;

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

if (!$export_to_xls) {

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

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

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

if (empty($session_id)) {

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

    $_course = $course_info;

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

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

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

    $html_result .= '<th>'.get_lang('Average score').' %</th>';

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

        $html_result .= $user['firstname'].' '.$user['lastname'];

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

    $session_id = key($my_session_list);

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

    $course_info = api_get_course_info($current_course['code']);

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

            foreach ($exercise_stats as $stats) {

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

                $user_info_stat = $main_result[$current_course['code']][$user['user_id']];

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

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

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

    $course_info = api_get_course_info($current_course['code']);

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

            $exercise_stats = Event::get_all_exercise_event_from_lp(

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

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

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

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

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

    foreach ($course_list as $item) {

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

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

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

$this_section = 'session_my_space';

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

foreach ($session_list as $sesion_item) {

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

    $filter_score = intval($_REQUEST['score']);

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

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

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

    $main_result[$current_course['code']] = $attempt_result;

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

            if (isset($main_result[$current_course['code']][$user['user_id']])) {

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

foreach ($course_list as $current_course) {

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

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

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

                $course_info['real_id'],

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

            $html_result .= "<td>";

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

                $user_info_stat = $main_result[$current_course['code']][$user['user_id']];

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

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

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

$form->addSelect('session_id', get_lang('Course sessions'), $my_session_list);

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

    $session_id = 0;

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

    $session_id = key($my_session_list);

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

$course_average = $course_average_counter = [];

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

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

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

$is_allowedToTrack = Tracking::isAllowToTrack($session_id);

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

$my_session_list = [];

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

$users = SessionManager::get_users_by_session($session_id);

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

                $attempt_result[$stats['exe_user_id']]['result'] += $stats['score'] / $stats['max_score'];

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

        $total_student = 0;

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

        $total_result_by_user = 0;

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

        foreach ($course_list as $current_course) {

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

$is_allowedToTrack = Tracking::isAllowToTrack($session_id);

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_info" is not in valid camel caps format
Open

    $_course = $course_info;

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

    $lp_list = $list->get_flat_list();

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

        $html_result .= "</td>";

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

        foreach ($course_list as $current_course) {

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

            $total_course = 0;

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 "session_id" is not in valid camel caps format
Open

    $session_id = 1;

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

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

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

if (empty($session_id)) {

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

$course_average = $course_average_counter = [];

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

$total_average_score_count = 0;

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

            $s_css_class = 'row_odd';

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

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

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

        foreach ($exercise_list as $exercise) {

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

        $html_result .= '<th>'.$item['title'].'<br /> '.get_lang('Average score').' %</th>';

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

                    $course_average[$current_course['code']] += $total_course;

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

            $html_result .= $result;

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

        $html_result .= "<td>$total_student</td><td>$string_date</td></tr>";

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

        $total_average = $total_average + $average_per_course;

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

    $html_result .= "<td>-</td>";

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

                    if (!isset($course_average[$current_course['code']])) {

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

                        $course_average[$current_course['code']] = 0;

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

                    $course_average[$current_course['code']] += $total_course;

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

        $html_result .= "<td>$total_student</td><td>$string_date</td></tr>";

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

    $total_average = 0;

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

                $course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,

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

            $average_per_course = 0;

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

        $total_average = round($total_average_score / ($total_average_score_count * 100) * 100, 2);

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

        $total_average = $total_average + $average_per_course;

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

    $html_result .= '<td>'.$total_average.'</td>';

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

    $html_result .= '<td>'.$total_average.'</td>';

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

                    $total_result_by_user += $result;

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

            $total_student = '-';

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

                $course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,

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

                    $course_average_counter[$current_course['code']]++;

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

if (!$export_to_xls) {

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

                if (!empty($user_info_stat['result']) && !empty($user_info_stat['attempts'])) {

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

                        $user_info_stat['result'] / $user_info_stat['attempts'] * 100,

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

                    if (!isset($course_average[$current_course['code']])) {

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

        $string_date = Tracking::get_last_connection_date($user['user_id'], true);

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

                $course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,

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

        $html_result .= "<td>$average_per_course</td>";

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

                    $result = $result.' ('.$user_info_stat['attempts'].' '.get_lang('Attempts').')';

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

    $html_result .= "<tr><th>".get_lang('Average score')."</th>";

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

        if (!empty($average_per_course)) {

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

                $course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,

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

        $total_average = '-';

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

                    if (!isset($course_average_counter[$current_course['code']])) {

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

    foreach ($course_list as $course_item) {

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

            $average_per_course = round(

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

    $html_result .= '</table>';

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

                    $course_average[$current_course['code']] += $total_course;

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

                        $course_average_counter[$current_course['code']] = 0;

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

            $total_student = $total_result_by_user / $counter;

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

        if (!empty($course_average_counter[$course_item['code']])) {

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

                    $course_average_counter[$current_course['code']]++;

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

        $html_result .= "<td>$average_per_course</td>";

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

    $html_result .= "</tr>";

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

                        $course_average_counter[$current_course['code']] = 0;

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

            $total_student = $total_result_by_user / $counter;

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

            $total_average_score_count++;

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

        $total_average = $total_average + $average_per_course;

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

    echo $html_result;

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

                if (!empty($user_info_stat['result']) && !empty($user_info_stat['attempts'])) {

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

                        $user_info_stat['result'] / $user_info_stat['attempts'] * 100,

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

        $html_result .= "<td>$total_student</td><td>$string_date</td></tr>";

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

    foreach ($course_list as $course_item) {

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

        if (!empty($course_average_counter[$course_item['code']])) {

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

                        $course_average[$current_course['code']] = 0;

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

                    if (!isset($course_average_counter[$current_course['code']])) {

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

            $total_average_score += $total_student;

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

        $total_average = round($total_average_score / ($total_average_score_count * 100) * 100, 2);

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

        $total_average = round($total_average_score / ($total_average_score_count * 100) * 100, 2);

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

                    $total_course += $result;

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

            $html_result .= "</td>";

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

            $total_average_score += $total_student;

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

    if (!empty($total_average_score_count)) {

There are no issues that match your filters.

Category
Status