chamilo/chamilo-lms

View on GitHub
public/main/session/session_course_edit.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            $arr_infos[] = $infos['user_id'];

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

if (!list($session_name, $course_title) = Database::fetch_row($result)) {

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

    "name" => api_htmlentities($session_name),

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

    if (is_array($id_coaches) && count($id_coaches) > 0) {

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

    $coaches_course_session = [];

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

            $id_coach = (int) $id_coach;

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

    $tbl_access_rel_user = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);

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

        $array_intersect = array_diff($coaches_course_session, $id_coaches);

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

        while ($row_coaches = Database::fetch_row($rs_coaches)) {

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

    if (in_array($enreg['user_id'], $arr_infos)) {

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

if (!list($session_name, $course_title) = Database::fetch_row($result)) {

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

            $coaches_course_session[] = $row_coaches[0];

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

        foreach ($id_coaches as $id_coach) {

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

        foreach ($array_intersect as $no_coach_user_id) {

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

$course_info = api_get_course_info($_REQUEST['course_code']);

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

            $id_coach = (int) $id_coach;

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

    $rs_coaches = Database::query($sql);

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

    $id_coaches = isset($_POST['id_coach']) ? $_POST['id_coach'] : [0];

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

        foreach ($id_coaches as $id_coach) {

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

                access_url_id = $access_url_id ".

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

$tool_name = $course_info['title'];

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

                $id_coach,

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

            $order_clause;

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

Display::page_subheader2($tool_name);

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

$arr_infos = [];

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

            $coaches_course_session[] = $row_coaches[0];

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

        foreach ($array_intersect as $no_coach_user_id) {

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

            LEFT JOIN $tbl_access_rel_user  a

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

$tool_name = $course_info['title'];

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

        $array_intersect = array_diff($coaches_course_session, $id_coaches);

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

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

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

    $access_url_id = api_get_current_access_url_id();

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

            $order_clause;

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

Display::display_header($tool_name);

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

if (empty($course_info)) {

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

        while ($row_coaches = Database::fetch_row($rs_coaches)) {

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

    if (is_array($id_coaches) && count($id_coaches) > 0) {

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

                $no_coach_user_id,

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

$courseId = $course_info['real_id'];

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

    if (Database::num_rows($rs_coaches) > 0) {

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

        $array_intersect = array_diff($coaches_course_session, $id_coaches);

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

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

There are no issues that match your filters.

Category
Status