chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$from_myspace = false;

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

    $list = new LearnpathList(null, ['real_id' => $course->getId(), 'code' => $course->getCode()], $session_id);

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

$session = api_get_session_entity($session_id);

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

$this_section = SECTION_COURSES;

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

$export_csv = isset($_GET['export']) && 'csv' == $_GET['export'] ? true : false;

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

$course_code = api_get_course_id();

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

$course_id = api_get_course_int_id();

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

                    $quiz_avg_score += $avg_student_score;

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

$count_number_of_forums_by_course = Tracking::count_number_of_forums_by_course(

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

$student_ids = array_keys($a_students);

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

            foreach ($a_students as $student_id => $student) {

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

                $lp_avg_progress += Tracking::get_avg_student_progress(

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

                $lp_avg_progress = '0%';

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

        $csv_content[] = $temp;

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

    $course_path_params = '&cid='.$course_id.'&sid='.$session_id;

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

            $quiz_avg_score = round(($quiz_avg_score / $studentCount), 2).'%';

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

                $temp = [$exercise->getTitle(), $quiz_avg_score];

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

$session_id = api_get_session_id();

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

            echo '<tr><td>'.$lp['lp_name'].'</td><td align="right">'.$lp_avg_progress.'</td></tr>';

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

            if ($export_csv) {

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

    $a_students = CourseManager::get_student_list_from_course_code(

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

    if (count($flat_list) > 0) {

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

                    [$lp_id],

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

            if (is_null($lp_avg_progress)) {

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

                $lp_avg_progress = round($lp_avg_progress, 1).'%';

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

            if ($export_csv) {

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

            $csv_content[] = $temp;

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

$current_course_tool = TOOL_TRACKING;

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

        if ($export_csv) {

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

                $csv_content[] = $temp;

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

$csv_content = [];

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

            $csv_content[] = $temp;

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

            $lp_avg_progress = null;

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

                        $session_id

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

    $from_myspace = true;

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

            $csv_content[] = ['', ''];

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

    $course_path_params = '&cid='.$course_id.'&sid='.$session_id;

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

    $course_path_params = '&cid='.$course_id.'&sid='.$session_id;

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

                    $avg_student_score = Tracking::get_avg_student_exercise_score(

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

                    $quiz_avg_score += $avg_student_score;

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

$student_ids = array_keys($a_students);

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

                $lp_avg_progress = $lp_avg_progress / $studentCount;

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

                $lp_avg_progress = $lp_avg_progress / $studentCount;

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

                $lp_avg_progress = round($lp_avg_progress, 1).'%';

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

    if ($export_csv) {

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

                foreach ($student_ids as $student_id) {

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

            $quiz_avg_score = round(($quiz_avg_score / $studentCount), 2).'%';

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

if ($export_csv) {

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

    if (!empty($session_id)) {

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

if (empty($session_id)) {

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

            $quiz_avg_score = 0;

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

                        $course_code,

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

        if ($export_csv) {

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

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

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

            $url = api_get_path(WEB_CODE_PATH).'exercise/overview.php?exerciseId='.$exerciseId.$course_path_params;

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

    $a_students = CourseManager::get_student_list_from_course_code(

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

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

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

    $session = api_get_session_entity($session_id);

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

            echo '</td><td align="right">'.$quiz_avg_score.'</td></tr>';

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

    $this_section = 'session_my_space';

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

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

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

if (!$is_allowedToTrack) {

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

$studentCount = count($student_ids);

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

            $lp_avg_progress = 0;

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

                    $student_id,

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

                foreach ($student_ids as $student_id) {

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

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

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

        Session::write('id_session', $session_id);

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

    $flat_list = $list->get_flat_list();

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

            foreach ($a_students as $student_id => $student) {

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

                $csv_content[] = $temp;

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

            $csv_content[] = $temp;

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

                        $student_id,

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

    $filterByUsers = $student_ids;

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

$nbStudents = count($a_students);

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

        if ($export_csv) {

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

                $temp = [$lp['lp_name'], $lp_avg_progress];

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

        $csv_content[] = ['', ''];

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

    $session_id,

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

    $csv_content[] = [get_lang('Forum')];

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

                $csv_content[] = $temp;

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

    if ($export_csv) {

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

        $csv_content[] = $temp;

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

    if (!empty($links_most_visited)) {

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

    $csv_content[] = [get_lang('Posts number'), $count_number_of_posts_by_course];

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

echo '<tr><td>'.get_lang('Posts number').'</td><td align="right">'.$count_number_of_posts_by_course.'</td></tr>';

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

    echo '</td><td align="right">'.$chat_connections_during_last_x_days_by_course.'</td></tr>';

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

    $tools_most_used = Tracking::get_tools_most_used_by_course(

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

        $course_code,

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

        $session_id

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

    $session_id,

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

                $csv_content[] = $temp;

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

        foreach ($links_most_visited as $row) {

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

if ($export_csv) {

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

    $csv_content[] = [get_lang('Forums Number'), $count_number_of_forums_by_course];

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

        $session_id

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

    $course_id,

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

    if ($export_csv) {

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

        $csv_content[] = [get_lang('Chat', ''), ''];

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

            $viewLink = api_get_path(WEB_PATH).'resources/document/'.$course->getResourceNode()->getId().'/show?'.$course_path_params;

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

                $csv_content[] = $temp;

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

    $course_id,

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

        $course_id,

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

        $csv_content[] = $temp;

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

        foreach ($tools_most_used as $row) {

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

    $csv_content[] = [get_lang('Forums Number'), $count_number_of_forums_by_course];

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

        $course_code,

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

            $csv_content[] = $temp;

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

    $csv_content[] = [get_lang('Posts number'), $count_number_of_posts_by_course];

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

    $course_id,

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

        foreach ($documents_most_downloaded as $row) {

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

        $course_code,

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

        $csv_content[] = ['', ''];

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

    $csv_content[] = [get_lang('Threads number'), $count_number_of_threads_by_course];

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

        $csv_content[] = [

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

    $documents_most_downloaded = Tracking::get_documents_most_downloaded_by_course(

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

            if ($export_csv) {

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

            if ($export_csv) {

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

$count_number_of_threads_by_course = Tracking::count_number_of_threads_by_course(

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

        $session_id,

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

    if ($export_csv) {

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

    $session_id,

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

        $session_id

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

    if (!empty($tools_most_used)) {

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

        if ($export_csv) {

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

            $csv_content[] = $temp;

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

            if ($export_csv) {

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

        if ($export_csv) {

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

$count_number_of_posts_by_course = Tracking::count_number_of_posts_by_course(

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

    $csv_content[] = [get_lang('Threads number'), $count_number_of_threads_by_course];

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

echo '<tr><td>'.get_lang('Threads number').'</td><td align="right">'.$count_number_of_threads_by_course.'</td></tr>';

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

if ($export_csv) {

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

echo '<tr><td>'.get_lang('Forums Number').'</td><td align="right">'.$count_number_of_forums_by_course.'</td></tr>';

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

    $chat_connections_during_last_x_days_by_course = Tracking::chat_connections_during_last_x_days_by_course(

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

            $chat_connections_during_last_x_days_by_course,

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

    if ($export_csv) {

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

        $csv_content[] = ['', ''];

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

        $csv_content[] = $temp;

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

    if (!empty($documents_most_downloaded)) {

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

    $links_most_visited = Tracking::get_links_most_visited_by_course(

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

    Export:: arrayToCsv($csv_content, 'reporting_course_tools');

Expected 0 spaces before closing bracket; newline found
Open

        Display::getMdiIcon(ToolIcon::QUIZ, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Tests score')

Expected 0 spaces before closing bracket; newline found
Open

            Display::getMdiIcon(ObjectIcon::COURSE_PROGRESS, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Progress in courses')

Expected 0 spaces before closing bracket; newline found
Open

        Display::getMdiIcon(ToolIcon::TRACKING, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Tools most used')

Expected 0 spaces before closing bracket; newline found
Open

        Display::getMdiIcon(ToolIcon::LINK, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Links most visited')

Expected 0 spaces before closing bracket; newline found
Open

        Display::getMdiIcon(ToolIcon::DOCUMENT, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Documents most downloaded')

There are no issues that match your filters.

Category
Status