chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

        INNER JOIN $tbl_course c ON c.id = src.c_id

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

$courseInfo = api_get_course_info($course_code);

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

            .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);

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

        INNER JOIN $tbl_session s ON s.id = src.session_id

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

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

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

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

        SessionManager::subscribe_users_to_session_course($idChecked, $id_session, $course_code);

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

$tool_name = get_lang('Session').': '.$session_name.' - '.get_lang('Course').': '.$course_title;

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

$tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

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

            .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);

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

            .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);

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

            .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);

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

    INNER JOIN $tbl_user u

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

        s.session_id = $id_session AND

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

$course_code = Database::escape_string(trim($_GET['course_code']));

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

        .($is_western_name_order ? 'u.firstname, u.lastname' : 'u.lastname, u.firstname')

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

$nbr_results = count($users);

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

$tool_name = get_lang('Session').': '.$session_name.' - '.get_lang('Course').': '.$course_title;

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

$tool_name = get_lang('Session').': '.$session_name.' - '.get_lang('Course').': '.$course_title;

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

$default_sort = api_sort_by_first_name() ? 'firstname' : 'lastname';

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

            .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);

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

            .'?id_session='.$id_session.'&course_code='.urlencode($course_code).'&sort='.$sort);

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

            SessionManager::unSubscribeUserFromCourseSession($idChecked, $courseId, $id_session);

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

$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);

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

$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);

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

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

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

        FROM $tbl_session_rel_course src

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

$is_western_name_order = api_is_western_name_order();

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

    LEFT JOIN $tbl_session_rel_course_rel_user scru

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

    header('Location: session_course_list.php?id_session='.$id_session);

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

    FROM $tbl_session_rel_user s

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

$tbl_user = Database::get_main_table(TABLE_MAIN_USER);

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

$session = api_get_session_entity($id_session);

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

if (empty($id_session)) {

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

    $idChecked = $my_temp;

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

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

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

        SessionManager::subscribe_users_to_session_course($idChecked, $id_session, $course_code);

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

$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);

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

    : $default_sort;

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

    $my_temp = [];

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

        $my_temp[] = (int) $id;

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

        WHERE src.session_id='$id_session' AND src.c_id='$courseId' ";

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

                SessionManager::unSubscribeUserFromCourseSession($userId, $courseId, $id_session);

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

Closing brace indented incorrectly; expected 24 spaces, found 16
Open

                } else {

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

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

echo Display::page_header($tool_name);

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

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

                <?php if ($is_western_name_order) {

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=firstname&direction=<?php echo urlencode($direction); ?>">

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

                            <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=add&idChecked[]=<?php echo $enreg['user_id']; ?>"

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

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

                    <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=username&direction=<?php echo urlencode($direction); ?>">

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=lastname&direction=<?php echo urlencode($direction); ?>">

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

Display::display_header($tool_name);

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

Closing brace indented incorrectly; expected 16 spaces, found 12
Open

            } else {

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

                            <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=delete&idChecked[]=<?php echo $enreg['user_id']; ?>"

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

            if ($nbr_results > $limit) {

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=lastname&direction=<?php echo urlencode($direction); ?>">

Closing brace indented incorrectly; expected 20 spaces, found 16
Open

                } else {

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=firstname&direction=<?php echo urlencode($direction); ?>">

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

            if ($nbr_results > $limit) {

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=lastname&direction=<?php echo urlencode($direction); ?>">

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

          action="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>"

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=firstname&direction=<?php echo urlencode($direction); ?>">

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=firstname&direction=<?php echo urlencode($direction); ?>">

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

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

                    <?php if ($is_western_name_order) {

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

                            <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=delete&idChecked[]=<?php echo $enreg['user_id']; ?>"

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

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

          action="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>"

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

                            <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=add&idChecked[]=<?php echo $enreg['user_id']; ?>"

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

                        <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=lastname&direction=<?php echo urlencode($direction); ?>">

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

                <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&page=<?php echo $page

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

    'url' => "resume_session.php?id_session=".$id_session,

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

                    <a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=username&direction=<?php echo urlencode($direction); ?>">

Line indented incorrectly; expected 0 spaces, found 12
Open

            } else {

Line indented incorrectly; expected 0 spaces, found 12
Open

            } ?>

Line indented incorrectly; expected 0 spaces, found 16
Open

                } ?>

Closing brace indented incorrectly; expected 24 spaces, found 16
Open

                } else {

Line indented incorrectly; expected 0 spaces, found 16
Open

                } ?>

Closing brace indented incorrectly; expected 16 spaces, found 12
Open

            } else {

Line indented incorrectly; expected 0 spaces, found 16
Open

                } else {

Closing brace indented incorrectly; expected 20 spaces, found 16
Open

                } else {

Line indented incorrectly; expected 0 spaces, found 16
Open

                } else {

There are no issues that match your filters.

Category
Status