chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    $active_group[] = $form->createElement('checkbox', 'active', '', get_lang('active'));

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $order

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

                        <td><?php echo "<a href=\"session_list.php?id_category=".$enreg['id']."\">".$nb_courses

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

    $query_rows = "SELECT count(*) as total_rows

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

    $nbr_results = sizeof($Sessions);

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

    $active_group[] = $form->createElement('checkbox', 'inactive', '', get_lang('inactive'));

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

    $result_rows = Database::query($query_rows);

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

    $nbr_results = sizeof($Sessions);

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $order

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            ); ?></a>

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

    Display::display_header($tool_name);

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $keyword; ?>"><?php echo get_lang(

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                'Next'

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

    $form->addElement('header', '', $tool_name);

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

                        INNER JOIN '.$table_access_url_rel_session.'  us

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

    $form->addGroup($active_group, '', get_lang('activeSession'), null, false);

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

                 FROM $tbl_session_category sc

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

    $result_rows = Database::query($query_rows);

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $keyword; ?>"><?php echo get_lang(

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

$tbl_session_category = Database::get_main_table(TABLE_MAIN_SESSION_CATEGORY);

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

    $recorset = Database::fetch_array($result_rows);

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

            api_get_path(WEB_CODE_PATH).'session/session_category_add.php'

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

                [$nb_courses] = Database::fetch_array($rs); ?>

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

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

    $tool_name = get_lang('Find a training session');

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

                SELECT count(s.id) FROM $tbl_session s

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

                  FROM $tbl_session_category sc $where ";

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

    $tool_name = get_lang('Sessions categories list');

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

            Display::getMdiIcon('file-tree-outline', 'ch-tool-icon-gradient', null, 32, get_lang('Add category')),

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

        ).Display::url(

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                'Previous'

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

$this_section = SECTION_PLATFORM_ADMIN;

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

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

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

    Display::display_header($tool_name);

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

    $active_group = [];

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

    $delete_session = 'delete_on_session' == $action ? true : false;

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

        if (0 == count($Sessions) && isset($_POST['keyword'])) {

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

    SessionManager::delete_session_category($idChecked, $delete_session);

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

                INNER JOIN $table_access_url_rel_session us

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

            foreach ($Sessions as $key => $enreg) {

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

                        FROM '.$tbl_session.' s

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

                    if ($nbr_results > $limit) {

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            ); ?></a>

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $_REQUEST['keyword']; ?>">

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

            unset($Sessions); ?>

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $_REQUEST['keyword']; ?>">

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

                    if ($nbr_results > $limit) {

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $_REQUEST['order']

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $_REQUEST['order']

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $keyword; ?>"><?php echo get_lang(

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            ); ?></a>

Line indented incorrectly; expected at least 36 spaces, found 32
Open

                                echo api_format_date($enreg['date_end'], DATE_FORMAT_SHORT);

Line indented incorrectly; expected at least 24 spaces, found 20
Open

                    break;

Line indented incorrectly; expected at least 20 spaces, found 16
Open

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

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                [$nb_courses] = Database::fetch_array($rs); ?>

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

            api_get_path(WEB_CODE_PATH).'session/session_category_add.php'

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $order

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $order

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

            $x = 0;

Line indented incorrectly; expected at least 36 spaces, found 32
Open

                                echo '-';

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

            Display::getMdiIcon('file-tree-outline', 'ch-tool-icon-gradient', null, 32, get_lang('Add category')),

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                'Previous'

Line indented incorrectly; expected at least 63 spaces, found 28
Open

                            ); ?></a>

Line indented incorrectly; expected at least 57 spaces, found 31
Open

                               ); ?>')) return false;">

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                $sql = 'SELECT COUNT(session_category_id)

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $keyword; ?>"><?php echo get_lang(

Line indented incorrectly; expected 16 spaces, found 12
Open

            foreach ($Sessions as $key => $enreg) {

Line indented incorrectly; expected 20 spaces, found 16
Open

                if ($key == $limit) {

Line indented incorrectly; expected 32 spaces, found 28
Open

                            } ?>

Line indented incorrectly; expected 16 spaces, found 12
Open

            }

Line indented incorrectly; expected at least 68 spaces, found 24
Open

                        ); ?>&keyword=<?php echo $keyword; ?>"><?php echo get_lang(

Line indented incorrectly; expected 32 spaces, found 28
Open

                            } else {

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

        ).Display::url(

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                'Next'

Line indented incorrectly; expected 32 spaces, found 28
Open

                            if (!empty($enreg['date_end']) && '0000-00-00' != $enreg['date_end']) {

Line indented incorrectly; expected at least 68 spaces, found 24
Open

                        ); ?>&keyword=<?php echo $keyword; ?>"><?php echo get_lang(

Line indented incorrectly; expected at least 63 spaces, found 28
Open

                            ); ?></a>

Line indented incorrectly; expected at least 24 spaces, found 20
Open

                    $i = $i ? 0 : 1;

Line indented incorrectly; expected at least 24 spaces, found 16
Open

                $x++;

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            ); ?></a>

Line indented incorrectly; expected 20 spaces, found 16
Open

                }

Line indented incorrectly; expected at least 41 spaces, found 28
Open

                            ); ?>?sort=<?php echo $sort; ?>&action=delete_off_session&idChecked=<?php echo $enreg['id']; ?>"

Line indented incorrectly; expected at least 68 spaces, found 24
Open

                        ); ?>&keyword=<?php echo $_REQUEST['keyword']; ?>">

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

            unset($Sessions); ?>

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $_REQUEST['keyword']; ?>">

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $_REQUEST['order']

Multi-line function call not indented correctly; expected 28 spaces but found 24
Open

                        ); ?>&keyword=<?php echo $_REQUEST['keyword']; ?>">

Line indented incorrectly; expected at least 68 spaces, found 24
Open

                        ); ?>&keyword=<?php echo $_REQUEST['keyword']; ?>">

Multi-line function call not indented correctly; expected 32 spaces but found 28
Open

                            $_REQUEST['order']

There are no issues that match your filters.

Category
Status