chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

                    $description_type = 1;

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

        $actionLeft .= '<a href="index.php?'.api_get_cidreq().'&action=thematic_export'.$url_token.'">'.

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

$attendance_list = $attendance->getAttendanceList($course, $session);

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

$attendance_select[0] = get_lang('Select an attendance');

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

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

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

            $total_average_of_advances = $thematicManager->get_total_average_of_thematic_advances($course, $session);

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

$current_course_tool = TOOL_COURSE_PROGRESS;

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

$description_type = null;

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

            $thematic_data = $thematicManager->getThematicList($course, $session);

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

        $total_average_of_advances = null;

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

        $actionLeft = '<a href="index.php?'.api_get_cidreq().'&action=thematic_add'.$url_token.'">'.

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

            $last_done_thematic_advance = $thematicManager->get_last_done_thematic_advance($course, $session);

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

        $tpl->assign('score_progress', $total_average_of_advances);

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

                    $description_type++;

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

$this_section = SECTION_COURSES;

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

$url_token = '&sec_token='.$token;

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

        $actionLeft .= '<a href="index.php?'.api_get_cidreq().'&action=thematic_import_select'.$url_token.'">'.

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

        $actionLeft .= '<a href="index.php?'.api_get_cidreq().'&action=thematic_export_pdf'.$url_token.'">'.

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

            $max_thematic_item = 0;

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

$user_info = api_get_user_info();

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

        $last_done_thematic_advance = null;

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

$attendance_select = [];

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

            $thematic_data[$thematicId] = $thematicEntity;

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

        $csv_import_array = Import::csv_reader($_FILES['file']['tmp_name'], false);

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

        $tpl->assign('token', $url_token);

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

    $attendance_select[$attendanceEntity->getIid()] = $attendanceEntity->getTitle();

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

                    $thematicManager->thematicPlanSave($currentThematic, $item[1], $item[2], $description_type);

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

        if (!empty($message) && !empty($total_average_of_advances)) {

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

foreach ($attendance_list as $attendanceEntity) {

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

$default_thematic_plan_title = $thematicManager->get_default_thematic_plan_title();

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

            'index.php?action=thematic_import&'.api_get_cidreq().$url_token

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

            $header_form = $default_thematic_plan_title[$description_type];

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

            $default['title'] = $default_thematic_plan_title[$description_type];

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

        if (!empty($thematic_simple_list)) {

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

                $thematic_plan = $new_thematic_plan_data[$id];

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

                $calendar_select,

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

            $link_to_thematic_plan = '<a

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

                    $description_list[$i],

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

        if ($description_type < ADD_THEMATIC_PLAN) {

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

        $default_thematic_plan_question = $thematicManager->get_default_question();

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

                $default['title['.$id.']'] = $thematic_plan->getTitle();

The CASE body must start on the line following the statement
Open

    case 'thematic_advance_list':

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

            $form->addHidden('description_type', $description_type);

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

        if (isset($last_id) && $last_id) {

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

                        $link_to_thematic_plan,

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

            foreach ($thematic_data as $thematic) {

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

                            .$id.$params.$url_token.'">'

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

            $title_list = $_REQUEST['title'];

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

            $header_form = $default_thematic_plan_title[$description_type];

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

        if (isset($default_thematic_plan_question[$description_type])) {

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

            $message .= $default_thematic_plan_question[$description_type];

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

                $thematic_simple_list[] = $thematic_item->getDescriptionType();

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

                $thematic_simple_list[] = $thematic_item->getDescriptionType();

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

            $header_form = get_lang('Other');

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

        $description_type = isset($_GET['description_type']) ? (int) $_GET['description_type'] : null;

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

        $new_thematic_plan_data = [];

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

                $new_thematic_plan_data[$thematic_item->getDescriptionType()] = $thematic_item;

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

            foreach ($thematic_simple_list as $item) {

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

                $last_done_thematic_advance = $thematicManager->get_last_done_thematic_advance($course, $session);

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

                        $link_to_thematic_advance

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

        if (!empty($thematic_data)) {

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

        if ($description_type >= ADD_THEMATIC_PLAN) {

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

            $header_form = $default_thematic_plan_title[$description_type];

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

        $thematic_plan_data = $thematicEntity->getPlans();

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

                $new_thematic_plan_data[$thematic_item->getDescriptionType()] = $thematic_item;

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

                $default['description['.$id.']'] = $thematic_plan->getDescription();

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

        if (count($attendance_select) > 1) {

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

                    $js .= '<script>datetime_by_attendance("'.$attendance_select_item_id.'", 0); </script>';

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

                if (!empty($last_done_thematic_advance)) {

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

                href="index.php?'.api_get_cidreq().'&action=thematic_plan_list&thematic_id='.$last_id.'">'.

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

                $extra[$thematic->getIid()]['last_done'] = $last_done_thematic_advance;

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

        $actionLeft = '<a href="index.php?'.api_get_cidreq().'&action=thematic_add'.$url_token.'">'.

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

                    $default_thematic_plan_title[$item] = $new_thematic_plan_data[$item]->getTitle();

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

                $attendance_select,

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

                    $attendance_select_item_id = $key;

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

                        $moveButtons = $thematicManager->getMoveActions($id, $currentOrder, count($thematic_data));

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

            $default['description'] = $thematic_plan_data[0]['description'];

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

            foreach ($thematic_plan_data as $thematic_item) {

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

                    $default_thematic_plan_title[$item] = $new_thematic_plan_data[$item]->getTitle();

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

        foreach ($default_thematic_plan_title as $id => $title) {

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

                $thematic_plan = null;

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

                $default['attendance_select'] = $attendance_select_item_id;

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

            if (!empty($thematic_simple_list) && in_array($id, $thematic_simple_list)) {

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

        if (!empty($calendar_select)) {

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

                if (!empty($thematic_advance_data['start_date'])) {

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

        if (isset($last_id) && $last_id) {

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

                        'index.php?'.api_get_cidreq().'&action=thematic_copy&thematic_id='.$id.$params.$url_token,

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

        if (isset($default_thematic_plan_question[$description_type])) {

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

        if (!empty($thematicId) && !empty($description_type)) {

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

            foreach ($thematic_plan_data as $thematic_item) {

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

        $calendar_select = [];

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

                    $calendar_select[$dateTime] = $dateTime;

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

            foreach ($attendance_select as $key => $attendance_select_item) {

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

            $default['title'] = $default_thematic_plan_title[$description_type];

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

        if (!empty($thematic_plan_data)) {

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

        $default_thematic_plan_title = $thematicManager->get_default_thematic_plan_title();

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

        $new_id = ADD_THEMATIC_PLAN;

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

            if (!empty($thematic_simple_list) && in_array($id, $thematic_simple_list)) {

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

        if (!empty($description_type)) {

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

                $description_type

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

        $default_thematic_plan_icon = $thematicManager->get_default_thematic_plan_icon();

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

        if (!empty($thematic_plan_data)) {

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

        if (count($attendance_select) > 1) {

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

        $attendance_select_item_id = null;

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

            foreach ($attendance_select as $key => $attendance_select_item) {

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

                    $thematicManager->updateDoneThematicAdvance($last_done_thematic_advance, $course, $session);

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

                $session_star = '';

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

            $description_list = $_REQUEST['description'];

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

                    $title_list[$i],

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

            $default['title'] = $thematic_plan_data[0]['title'];

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

                    $new_id = $item + 1;

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

                            api_get_self().'?'.api_get_cidreq()."$url_token&".http_build_query(

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

            $description_type = $_REQUEST['description_type'];

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

                    $description_type[$i]

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

                $new_thematic_plan_data[$thematic_item->getDescriptionType()] = $thematic_item;

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

                $thematic_plan = $new_thematic_plan_data[$id];

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

                $thematic_plan = null;

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

                    $js .= '<script>datetime_by_attendance("'.$attendance_select_item_id.'", "'.$thematicAdvanceId.'"); </script>';

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

            $link_to_thematic_advance = '<a

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

                            href="index.php?'.api_get_cidreq().'&action=thematic_edit&thematic_id='.$id.$params.$url_token.'">'

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

            for ($i = 1; $i < count($title_list) + 1; $i++) {

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

            $message .= $default_thematic_plan_question[$description_type];

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

                href="index.php?'.api_get_cidreq().'&action=thematic_advance_list&thematic_id='.$last_id.'">'.

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

            if (!empty($attendance_select_item_id)) {

There are no issues that match your filters.

Category
Status