chamilo/chamilo-lms

View on GitHub
public/main/social/group_topics.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$group_id = intval($_GET['id']);

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

$is_member = false;

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

    $parent_id = intval($_POST['parent_id']);

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

    if (empty($group_info)) {

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

    if (GROUP_PERMISSION_CLOSED == $group_info['visibility'] && !$is_member) {

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

$friend_html = SocialManager::listMyFriendsBlock(api_get_user_id());

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

    $message_id = $res;

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

    if ($("#msg_'.$message_id.'").length) {

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

    $message_id

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

        in_array($group_role, [GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_MODERATOR])

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

        $usergroup->delete_topic($group_id, $topic_id);

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

$tpl->display($social_layout);

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

$message_id = isset($_GET['msg_id']) ? intval($_GET['msg_id']) : null;

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

if (empty($group_id)) {

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

$social_layout = $tpl->get_template('social/groups_topics.tpl');

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

    $group_info = $usergroup->get($group_id);

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

    $is_member = $usergroup->is_group_member($group_id);

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

$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => Security::remove_XSS($group_info['title'])];

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

    $group_id,

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

    $is_member = $usergroup->is_group_member($group_id);

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

    if (GROUP_PERMISSION_CLOSED == $group_info['visibility'] && !$is_member) {

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

    $topic_id,

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

    $is_member,

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

SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'groups', $group_id);

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

    $group_id = intval($_POST['group_id']);

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

            $group_id,

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

    header('Location: ' . api_get_path(WEB_PATH).'resources/usergroups/show/'.$group_id);

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

        $topic_id = $res;

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

$topic_id = isset($_GET['topic_id']) ? intval($_GET['topic_id']) : null;

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

    $group_info = $usergroup->get($group_id);

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

            $group_id,

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

$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => Security::remove_XSS($group_info['title'])];

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

$social_left_content = null; //SocialManager::show_social_menu('member_list', $group_id);

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

$tpl->assign('social_friend_block', $friend_html);

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

        header("Location: group_view.php?id=$group_id");

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

        $edit_message_id = intval($_POST['message_id']);

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

            $edit_message_id,

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

            $topic_id

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

    $topic_id = isset($_GET['topic_id']) ? intval($_GET['topic_id']) : null;

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

$group_message = MessageManager::display_message_for_group(

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

$tpl->assign('group_message', $group_message);

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

    $group_role = $usergroup->get_user_group_role(api_get_user_id(), $group_id);

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

        if ('add_message_group' === $_POST['action'] && !$is_member) {

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

            $parent_id,

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

$this_section = SECTION_SOCIAL;

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

    $group_role = $usergroup->get_user_group_role(api_get_user_id(), $group_id);

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

$social_right_content = '';

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

            $parent_id,

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

            scrollTop: $("#msg_'.$message_id.'").offset().top

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

$tpl->assign('social_right_content', $social_right_content);

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

        $usergroup->delete_topic($group_id, $topic_id);

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

            $topic_id

There are no issues that match your filters.

Category
Status