chamilo/chamilo-lms

View on GitHub
public/main/my_space/index.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    $menu_items[] = Display::url(

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

        $report['InactivesStudents'] = $nb_inactive_students;

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

$is_coach = api_is_coach($session_id);

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

if ($is_drh) {

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

    $menu_items[] = Display::url(

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

    $menu_items[] = Display::url(

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

$csv_content = [];

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

$menu_items = [];

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

        $avg_courses_per_student = $countCourses / $numberStudents;

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

            $menu_items[] = Display::url(

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

    $menu_items[] = Display::url(

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

            round($avg_courses_per_student, 3),

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

        $menu_items[] = Display::url(

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

    if ($nb_menu_items > 1) {

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

        foreach ($menu_items as $key => $item) {

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

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

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

$session_id = isset($_GET['session_id']) ? (int) $_GET['session_id'] : 0;

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

$avg_courses_per_student = 0;

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

        $csv_content[] = [get_lang('InactivesLearners'), $nb_inactive_students];

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

        $menu_items[] = Display::url(

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

if (!empty($session_id) &&

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

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

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

if ($is_session_admin) {

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

if ($is_platform_admin) {

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

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

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

        $csv_content[] = [get_lang('InactivesLearners'), $nb_inactive_students];

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

        $csv_content[] = [

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

        $menu_items[] = Display::url(

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

        $menu_items[] = Display::url(

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

        $menu_items[] = Display::url(

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

if (empty($session_id) ||

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

$total_time_spent = 0;

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

        $csv_content[] = [get_lang('Time spent on portal'), $totalTimeSpent];

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[] = [get_lang('Average assignments per learner'), $numberAssignments];

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

        $report['AverageCoursePerStudent'] = is_null($avg_courses_per_student)

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

$this_section = SECTION_TRACKING;

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

$user_id = api_get_user_id();

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

$is_coach = api_is_coach($session_id);

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

$nb_inactive_students = 0;

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

if ($export_csv) {

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

        $menu_items[] = Display::url(

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

    $menu_items[] = Display::url(

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

$is_session_admin = api_is_session_admin();

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

$nb_menu_items = count($menu_items);

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

        $csv_content[] = [get_lang('Posts in forum'), $posts];

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

$total_courses = 0;

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

    if ($export_csv) {

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

$is_platform_admin = api_is_platform_admin();

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

$is_drh = api_is_drh();

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

        $menu_items[] = Display::url(

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

        $menu_items[] = Display::url(

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

    $menu_items[] = Display::url(

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

            if ($is_coach) {

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

        $csv_content[] = [

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

                    'user_import.php?id_session='.$session_id.'&action=export&type=xml'

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

            'user_import.php?id_session='.$session_id.'&action=export&type=xml'

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

        $csv_content[] = [];

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

$nb_menu_items = count($menu_items);

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

            : round($avg_courses_per_student, 3);

There are no issues that match your filters.

Category
Status