chamilo/chamilo-lms

View on GitHub
public/main/forum/index.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            $all_groups[$group['iid']] = $group;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

            api_get_self().'?'.api_get_cidreq().'&action=add_forum&lp_id='.$lp_id
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $my_all_groups_forum_name = $all_groups[$forumOfGroup]['name'] ?? null;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$this_section = SECTION_COURSES;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                'url' => 'index.php?search='.$search_forum.'&'.api_get_cidreq(),
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$groups_of_user = GroupManager::get_group_ids($courseId, $user_id);
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $my_all_groups_forum_id = $all_groups[$forumOfGroup]['id'] ?? null;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$current_course_tool = TOOL_FORUM;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $forumInfo['forum_group_title'] = $group_title;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                'url' => 'index.php?search='.$search_forum.'&'.api_get_cidreq(),
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

        foreach ($all_groups as $group) {
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $my_all_groups_forum_id = $all_groups[$forumOfGroup]['id'] ?? null;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $group_title = api_substr($my_all_groups_forum_name, 0, 30);
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$lp_id = isset($_REQUEST['lp_id']) ? (int) $_REQUEST['lp_id'] : null;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                        $form_count++;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $group_title = api_substr($my_all_groups_forum_name, 0, 30);
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$groups_of_user = GroupManager::get_group_ids($courseId, $user_id);
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

        api_get_self().'?'.api_get_cidreq().'&action=add_category&lp_id='.$lp_id
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

    $all_groups = GroupManager::get_group_list();
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

    if (is_array($all_groups)) {
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                        $show_forum = true;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $show_forum = true;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                                $user_id,
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                        $forumInfo['last_poster_id'] = $poster_id;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$search_forum = isset($_GET['search']) ? Security::remove_XSS($_GET['search']) : '';
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$user_id = api_get_user_id();
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

        ."&gradebook=&action=add_item&type=step&lp_id='.$lp_id.'#resource_tab-5";
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $my_all_groups_forum_name = $all_groups[$forumOfGroup]['name'] ?? null;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

$form_count = 0;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                    $show_forum = false;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                            $show_forum = GroupManager::userHasAccess(
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                    if ($show_forum) {
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

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

                        $poster_id = null;
Severity: Minor
Found in public/main/forum/index.php by phpcodesniffer

There are no issues that match your filters.

Category
Status