chamilo/chamilo-lms

View on GitHub
public/main/admin/course_edit.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    $course_teachers[] = $obj->user_id;

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

    $access_url_rel_user_table = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

$tool_name = get_lang('Edit course information');

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

        $order_clause;

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

$table_course_user = Database::get_main_table(TABLE_MAIN_COURSE_USER);

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

$this_section = SECTION_PLATFORM_ADMIN;

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

            $table_course_user as course_user

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

$table_user = Database::get_main_table(TABLE_MAIN_USER);

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

$course_table = Database::get_main_table(TABLE_MAIN_COURSE);

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

            $table_user as user,

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

    $course_teachers[] = $obj->user_id;

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

$course_teachers = [];

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

$order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname' : ' ORDER BY lastname, firstname';

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

$course_code = $courseInfo['code'];

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

    $platform_teachers[$obj->user_id] = api_get_person_name($obj->firstname, $obj->lastname);

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

    $tutor_name = Database::result($res, 0, 0);

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

    $sql = 'SELECT tutor_name FROM '.$course_table.' WHERE code="'.$course_code.'"';

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

            if ($course_temp['code'] != $course_code) {

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

        $department_url = 'http://'.$department_url;

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

        ->setDepartmentUrl($department_url)

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

$platform_teachers[0] = '-- '.get_lang('No administrator').' --';

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

    if (isset($course_teachers[$obj->user_id]) &&

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

$form->addElement('hidden', 'code', $course_code);

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

            FROM $table_user WHERE status='1'".$order_clause;

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

    if (!array_key_exists($obj->user_id, $course_teachers)) {

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

        $courseInfo['tutor_name'] == $course_teachers[$obj->user_id]

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

    $platform_teachers[$obj->user_id] = api_get_person_name($obj->firstname, $obj->lastname);

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

$courseInfo['course_teachers'] = $course_teachers;

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

    $visual_code = $course['visual_code'];

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

    if (isset($course_teachers[$obj->user_id]) &&

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

        $courseInfo['tutor_name'] = $obj->user_id;

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

    $visual_code = CourseManager::generate_course_code($visual_code);

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

    $allTeachers[$obj->user_id] = api_get_person_name($obj->firstname, $obj->lastname);

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

foreach ($course_teachers as $courseTeacherId) {

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

    $courseInfo['tutor_name'] = array_search($tutor_name, $platform_teachers);

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

        $list = CourseManager::get_courses_info_from_visual_code($visual_code);

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

                $warn .= ' '.$course_temp['title'].' ('.$course_temp['code'].'),';

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

    $visual_code = CourseManager::generate_course_code($visual_code);

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

    $visual_code_is_used = false;

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

        $sql = "UPDATE $course_table SET

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

            INNER JOIN $access_url_rel_user_table url_rel_user

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

        $courseInfo['tutor_name'] == $course_teachers[$obj->user_id]

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

            if ($course_temp['code'] != $course_code) {

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

            FROM $table_user as u

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

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

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

    $courseInfo['tutor_name'] = array_search($tutor_name, $platform_teachers);

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

    if (!empty($visual_code)) {

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

        $department_url = 'http://'.$department_url;

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

    $sql = 'SELECT tutor_name FROM '.$course_table.' WHERE code="'.$course_code.'"';

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

            FROM $table_user WHERE status='1'".$order_clause;

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

        $teachers[$obj->user_id] = api_get_person_name($obj->firstname, $obj->lastname);

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

                status = 1".$order_clause;

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

    if (!array_key_exists($obj->user_id, $course_teachers)) {

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

$form->addElement('header', get_lang('Course').'  #'.$courseInfo['real_id'].' '.$course_code);

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

        foreach ($list as $course_temp) {

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

                $warn .= ' '.$course_temp['title'].' ('.$course_temp['code'].'),';

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

    if (!stristr($department_url, 'http://')) {

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

        ->setVisualCode($visual_code)

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

Display::display_header($tool_name);

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

                $visual_code_is_used = true;

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

    $department_url = $course['department_url'];

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

    if ($visual_code_is_used) {

There are no issues that match your filters.

Category
Status