chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    $social_right_content .= Display::return_message(get_lang('Your message has been sent.'), 'confirmation', false);

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

                    'group_id' => $group_id,

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

        $member_content .= '<div class="row">';

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

                $member_content .= '</div>';

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

    if (!empty($create_thread_link)) {

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

        $create_thread_link = Display::div($create_thread_link, ['class' => 'pull-right']);

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

$relation_group_title = '';

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

            $create_thread_link = Display::url(

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

    $param_names = array_keys($_GET);

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

                $usergroup->delete_user_rel_group($user_leaved, $group_id);

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

                    $group_id,

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

        $social_right_content .= '</div>';

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

                $member_content .= Display::div($member_name, ['class' => 'name']);

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

    foreach ($param_names as $param) {

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

        $user_join = intval($_GET['u']);

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

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

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

if ($is_group_member || GROUP_PERMISSION_OPEN == $groupInfo['visibility']) {

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

    if ($is_group_member) {

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

            $member_content .= '</div>';

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

                $usergroup->add_user_to_group($user_join, $group_id);

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

            $social_right_content .= '<div class="group-tool">';

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

            $social_right_content .= '<div class="pull-right">';

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

                'group_members.php?id='.$group_id,

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

        $member_content .= '<div class="user-list">';

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

        $social_right_content .= '<a

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

if (0 != $group_id) {

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

            $social_right_content .= '<a

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

            $create_thread_link = Display::url(

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

            $member_content .= '</div>';

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

                $member_content .= '<div class="col-md-3">';

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

if (isset($_GET['view']) && in_array($_GET['view'], $allowed_views)) {

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

                $member_content .= '<div class="items-user">';

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

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

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

                href="group_view.php?id='.$group_id.'&action=join&u='.api_get_user_id().'">'.

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

    $socialForum = Display::tabs($headers, [$content, $member_content], 'tabs');

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

        $social_right_content .= '<a

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

    $content = MessageManager::display_messages_for_group($group_id);

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

                $member_content .= Display::div(

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

            class="btn" href="group_view.php?id='.$group_id.'&action=join&u='.api_get_user_id().'">'.

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

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

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

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

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

        if (api_get_user_id() == $user_join && !empty($group_id)) {

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

$create_thread_link = '';

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

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

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

        $social_right_content .= Display::return_message(get_lang('You already sent an invitation'));

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

        $social_right_content .= '</div>';

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

$this_section = SECTION_SOCIAL;

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

        if (api_get_user_id() == $user_leaved) {

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

                    $user_join,

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

$social_right_content = null;

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

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

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

    if (!$is_group_member) {

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

            $social_right_content .= '</div>';

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

            $social_right_content .= '</div>';

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

            $member_content .= '<div class="group-tool">';

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

            $member_content .= Display::url(

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

        if (api_get_user_id() == $user_join && !empty($group_id)) {

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

if (!$is_group_member && GROUP_PERMISSION_CLOSED == $groupInfo['visibility']) {

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

                $member_content .= Display::div($member_name, ['class' => 'name']);

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

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

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

        $user_leaved = intval($_GET['u']);

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

                $usergroup->add_user_to_group($user_join, $group_id);

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

                href="group_view.php?id='.$group_id.'&action=join&u='.api_get_user_id().'">'.

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

            $social_right_content .= '<div class="group-tool">';

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

    $friend_html = SocialManager::listMyFriendsBlock(

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

                $member_content .= '</div>';

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

        $create_thread_link = Display::div($create_thread_link, ['class' => 'pull-right']);

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

    $listMembers = $member_content;

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

$group_id = isset($_GET['id']) ? (int) $_GET['id'] : null;

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

                $usergroup->delete_user_rel_group($user_leaved, $group_id);

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

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

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

    $members = $usergroup->get_users_by_group($group_id, true);

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

        $member_content .= '</div>';

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

            class="btn" href="group_view.php?id='.$group_id.'&action=join&u='.api_get_user_id().'">'.

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

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

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

$tpl->assign('create_link', $create_thread_link);

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

$allowed_views = ['mygroups', 'newest', 'pop'];

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

            $social_right_content .= '<a

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

            $social_right_content .= '<div class="pull-right">';

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

                    'group_id' => $group_id,

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

    $member_content = '';

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

            $member_content .= '<div class="pull-right">';

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

                $member_name = Display::url(

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

        $member_content .= '</div>';

There are no issues that match your filters.

Category
Status