chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$groups_of_user = GroupManager::get_group_ids($courseId, $user_id);

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

$this_section = SECTION_COURSES;

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

$current_course_tool = TOOL_FORUM;

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

$form_count = 0;

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

$groups_of_user = GroupManager::get_group_ids($courseId, $user_id);

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

$user_id = api_get_user_id();

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

$lp_id = isset($_REQUEST['lp_id']) ? (int) $_REQUEST['lp_id'] : null;

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

                    $show_forum = false;

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

                            $show_forum = GroupManager::userHasAccess(

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

    if (is_array($all_groups)) {

Blank line found at start of control structure
Open

if (api_is_allowed_to_edit(false, true)) {

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

                            $my_all_groups_forum_id = $all_groups[$forumOfGroup]['id'] ?? null;

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

                                $user_id,

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

                        $poster_id = null;

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

                    if ($show_forum) {

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

                            $my_all_groups_forum_id = $all_groups[$forumOfGroup]['id'] ?? null;

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

                            $group_title = api_substr($my_all_groups_forum_name, 0, 30);

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

                        $form_count++;

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

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

        foreach ($all_groups as $group) {

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

                            $my_all_groups_forum_name = $all_groups[$forumOfGroup]['name'] ?? null;

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

    $all_groups = GroupManager::get_group_list();

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

                            $show_forum = true;

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

                            $my_all_groups_forum_name = $all_groups[$forumOfGroup]['name'] ?? null;

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

        ."&gradebook=&action=add_item&type=step&lp_id='.$lp_id.'#resource_tab-5";

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

                            $forumInfo['forum_group_title'] = $group_title;

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

            $all_groups[$group['iid']] = $group;

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

                        $show_forum = true;

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

                        $forumInfo['last_poster_id'] = $poster_id;

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

            api_get_self().'?'.api_get_cidreq().'&action=add_forum&lp_id='.$lp_id

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

        api_get_self().'?'.api_get_cidreq().'&action=add_category&lp_id='.$lp_id

There are no issues that match your filters.

Category
Status