chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$tbl_session_rel_class = Database::get_main_table(TABLE_MAIN_SESSION_CLASS);

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

                        SET nbr_classes = nbr_classes - $nbr_affected_rows

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

                    get_lang('The user has been added').' '.api_get_person_name($user_info['firstname'], $user_info['lastname']),

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

        $user_id = $_REQUEST['user_id'];

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

$this_section = SECTION_PLATFORM_ADMIN;

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

            $nbr_affected_rows = Database::affected_rows($result);

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

$tpl = new Template($tool_name);

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

        $user_info = api_get_user_info($user_id);

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

        Display::getMdiIcon(ActionIcon::ADD, 'ch-tool-icon-gradient', null, 32, get_lang('Add')),

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

        $user_info = api_get_user_info($user_id);

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

                    get_lang('The user has been added').' '.api_get_person_name($user_info['firstname'], $user_info['lastname']),

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

                "DELETE FROM $tbl_session_rel_class

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

$tool_name = get_lang('Session overview');

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

        $result = UrlManager::add_user_to_url($user_id, $url_id);

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

            $codePath."session/session_course_edit.php?id_session=$sessionId&page=resume_session.php&course_code={$courseCode}$orig_param"

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

                "UPDATE $tbl_session

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

$url_id = api_get_current_access_url_id();

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

        $result = UrlManager::add_user_to_url($user_id, $url_id);

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

            $codePath."tracking/courseLog.php?sid=$sessionId&cid={$courseId}$orig_param&hide_course_breadcrumb=1"

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

            $codePath.'my_space/myStudents.php?student='.$userId.''.$orig_param.'&id_session='

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

$orig_param = '&origin=resume_session';

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

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                        WHERE id = $sessionId");

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

        Display::getMdiIcon(ActionIcon::ADD, 'ch-tool-icon-gradient', null, 32, get_lang('Add')),

There are no issues that match your filters.

Category
Status