chamilo/chamilo-lms

View on GitHub
public/main/admin/access_url_add_usergroup_to_url.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$tool_name = get_lang('Add group to URL');

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

Display::page_subheader2($tool_name);

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

        <option value="<?php echo $url_obj['id']; ?>" <?php if (in_array($url_obj['id'], $url_list)) {

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

        <option value="<?php echo $url_obj['id']; ?>" <?php if (in_array($url_obj['id'], $url_list)) {

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

        <option value="<?php echo $url_obj['id']; ?>" <?php if (in_array($url_obj['id'], $url_list)) {

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

    if (1 == $form_sent) {

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

Display::display_header($tool_name);

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

                    } ?>><?php echo $url_obj['url']; ?>

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

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

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

                    } ?>><?php echo $item['name']; ?>

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

        <?php foreach ($db_urls as $url_obj) {

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

$sql = "SELECT id, url FROM $tbl_access_url  WHERE active = 1 ORDER BY url";

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

$tbl_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL);

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

$url_list = [];

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

                    } ?>><?php echo $url_obj['url']; ?>

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

                } ?>

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

$this_section = SECTION_PLATFORM_ADMIN;

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

    $form_sent = $_POST['form_sent'];

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

                } ?>

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

        <?php foreach ($db_urls as $url_obj) {

Spaces must be used to indent lines; tabs are not allowed
Open

            <option value="<?php echo $item['id']; ?>" <?php if (in_array($item['id'], $courses)) {

Spaces must be used to indent lines; tabs are not allowed
Open

        <?php

Spaces must be used to indent lines; tabs are not allowed
Open

        <?php foreach ($dbUserGroups as $item) {

Line indented incorrectly; expected 0 spaces, found 16
Open

                } ?>

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

                    } ?>><?php echo $item['name']; ?>

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

                } ?>

Line indented incorrectly; expected 0 spaces, found 16
Open

                } ?>

Line indented incorrectly; expected 0 spaces, found 20
Open

                    } ?>><?php echo $url_obj['url']; ?>

Line indented incorrectly; expected 0 spaces, found 20
Open

                    } ?>><?php echo $item['name']; ?>

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

                    } ?>><?php echo $url_obj['url']; ?>

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

                } ?>

Line indented incorrectly; expected 16 spaces, found 13
Open

             <?php echo get_lang('First letter'); ?> :

There are no issues that match your filters.

Category
Status