chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

if ($export_csv) {

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

$extra_info = [];

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

            $headers[$extra_info[$fieldId]['variable']] = $extra_info[$fieldId]['display_text'];

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

    $csv_headers[] = get_lang('Login');

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

$export_csv = isset($_GET['export']) && 'csv' === $_GET['export'];

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

    $from_myspace = true;

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

$form_search->addHidden('sid', $sessionId);

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

        $csv_content = [];

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

        $table->total_number_of_items = $nbStudents;

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

        $csv_headers[] = get_lang('First name');

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

        $extra_info[$fieldId] = $extraField->getFieldInfoByFieldId($fieldId);

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

$form_search->addHidden('cid', $courseId);

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

$from_myspace = false;

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

$users_tracking_per_page = '';

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

    $csv_headers[] = get_lang('Time');

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

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

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        20,

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

$user_ids = array_keys($studentList);

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

        $user_array[] = $key;

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

            $headers[$extra_info[$fieldId]['variable']] = $extra_info[$fieldId]['display_text'];

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

$table_user = Database::get_main_table(TABLE_MAIN_USER);

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

            $table->set_header($counter, $extra_info[$fieldId]['display_text'], false);

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

    $csv_headers[] = get_lang('Code');

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

        $csv_headers[] = get_lang('Last name');

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

        $csv_headers[] = get_lang('Last name');

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

$form_search = new FormValidator(

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

    $titleCourse = Display::getMdiIcon(ObjectIcon::COURSE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Course')).' '.$course_name;

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        $usersTracking,

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

$form_search->addHidden('from', Security::remove_XSS($from));

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

$course_name = get_lang('Course').' '.$course->getTitle();

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

    $csv_headers = [];

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

    $user_array = [];

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

Session::write('extra_field_info', $extra_info);

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

    href="'.api_get_self().'?'.api_get_cidreq().'&export=csv&'.$additionalParams.$users_tracking_per_page.'">

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        1,

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

if ($export_csv) {

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

if (!$is_allowedToTrack) {

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

$this_section = SECTION_COURSES;

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

$TABLETRACK_EXERCISES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);

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

    if ($export_csv) {

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

    $csv_headers[] = get_lang('Progress');

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

$form_search->addHidden('sessionId', $sessionId);

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

$form_search->addElement('text', 'user_keyword');

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

            $user_array

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

$csv_content = [];

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

    $users_tracking_per_page = '&users_tracking_per_page='.intval($_GET['users_tracking_per_page']);

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

$form_search->addButtonSearch(get_lang('Search users'));

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        'users_tracking'

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

        $csv_headers[] = get_lang('First name');

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

    $this_section = 'session_my_space';

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

$renderer = $form_search->defaultRenderer();

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

    [$actionsLeft, $form_search->returnForm(), $actionsRight]

Multi-line function call not indented correctly; expected 8 spaces but found 4
Open

    );

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

    $csv_headers[] = get_lang('Exercise progress');

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

    $csv_headers[] = get_lang('Score');

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

    $csv_headers[] = get_lang('Latest access in course');

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

    array_unshift($csvContentInSession, $csv_headers);

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

            $csv_headers[] = $exerciseLabel;

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

            $csv_headers[] = $extra_info[$fieldId]['display_text'];

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

        $csv_headers[] = get_lang('Survey');

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

    $csv_headers[] = get_lang('Messages');

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

    $csv_headers[] = get_lang('Student_publication');

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

            $csv_headers[] = $extra_info[$fieldId]['display_text'];

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

    $csv_headers[] = get_lang('Exercise average');

Missing function doc comment
Open

function sort_by_order($a, $b)

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

        $csv_headers[] = get_lang('RegistrationDate');

Consider putting global function "sort_by_order" in a static class
Open

function sort_by_order($a, $b)

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

    $csv_headers[] = get_lang('First access to course');

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

    $csv_headers[] = $bestScoreLabel;

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        'users_tracking'

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    );

Multi-line function call not indented correctly; expected 8 spaces but found 4
Open

    );

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        $usersTracking,

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        1,

Multi-line function call not indented correctly; expected 12 spaces but found 8
Open

        20,

There are no issues that match your filters.

Category
Status