chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$tbl_session_category = Database::get_main_table(TABLE_MAIN_SESSION_CATEGORY);

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

$CourseList = $SessionList = [];

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

    $add_type = Security::remove_XSS($_REQUEST['add_type']);

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

$CourseList = $SessionList = [];

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

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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);

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

$tool_name = get_lang('Subscription sessions in the category');

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 "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 "tbl_course" is not in valid camel caps format
Open

$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);

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

$add_type = 'multiple';

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

$this_section = SECTION_PLATFORM_ADMIN;

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

        $sql = "UPDATE $tbl_session SET session_category_id = NULL WHERE session_category_id = $categoryId";

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

        $session_id = join(',', $sessionCategoryList);

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

        $sql = "UPDATE $tbl_session SET session_category_id = $categoryId WHERE id in ($session_id) ";

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

        $sql = "UPDATE $tbl_session SET session_category_id = $categoryId WHERE id in ($session_id) ";

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

<?php echo '<legend>'.$tool_name.'</legend>'; ?>

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

    $sql = 'SELECT id, title  FROM '.$tbl_session.' WHERE session_category_id = '.$categoryId.' ORDER BY title';

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

$rows_session = Database::store_result($result);

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

    $access_url_id = api_get_current_access_url_id();

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

    $sql = "SELECT s.id, s.title  FROM $tbl_session s INNER JOIN $table_access_url_rel_session u ON s.id = u.session_id $where AND u.access_url_id = $access_url_id ORDER BY title";

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

            } ?>

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

$rows_category_session = [];

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

    $rows_category_session = Database::store_result($result);

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

    $sql = "SELECT s.id, s.title  FROM $tbl_session s INNER JOIN $table_access_url_rel_session u ON s.id = u.session_id $where AND u.access_url_id = $access_url_id ORDER BY title";

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

    foreach ($rows_category_session as $enreg) {

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

if (!empty($OkMsg)) {

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

    $sql = "SELECT id, title  FROM $tbl_session $where ORDER BY title";

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

<?php if ('multiple' == $add_type) {

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

    $OkMsg = get_lang('Category update');

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

$rows_session_category = SessionManager::get_all_session_category();

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

    $table_access_url_rel_session = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION);

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

        if (in_array($enreg['id'], $CourseList)) {

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

        if (in_array($enreg['id'], $CourseList)) {

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

Display::display_header($tool_name);

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

if (empty($rows_session_category)) {

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

    $sql = "SELECT s.id, s.title  FROM $tbl_session s INNER JOIN $table_access_url_rel_session u ON s.id = u.session_id $where AND u.access_url_id = $access_url_id ORDER BY title";

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

        if (!empty($rows_session_category)) {

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

    echo Display::return_message($OkMsg, 'confirm'); //main API

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

            foreach ($rows_session_category as $category) {

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

    foreach ($rows_session as $enreg) {

Line indented incorrectly; expected 8 spaces, found 0
Open

if (!empty($_GET['add'])) {

Line indented incorrectly; expected 8 spaces, found 0
Open

} ?>" style="margin:0px;">

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

            } ?>

Line indented incorrectly; expected at least 12 spaces, found 4
Open

    echo '&add=true';

Line indented incorrectly; expected 0 spaces, found 12
Open

            } ?>

There are no issues that match your filters.

Category
Status