chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

            $user_moderator,

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

    $group_id,

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

$social_avatar_block = SocialManager::show_social_avatar_block(

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

if (count($new_member_list) > 0) {

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

$social_right_content = '<h2>'.$group_info['name'].'</h2>';

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

$this_section = SECTION_SOCIAL;

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

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

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

        $userGroup->delete_user_rel_group($user_join, $group_id);

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

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

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

$social_right_content = '<h2>'.$group_info['name'].'</h2>';

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

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

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

$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => $group_info['name']];

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

            $user_moderator,

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

$new_member_list = [];

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

$tpl->display($social_layout);

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

                $user_role,

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

    $social_right_content .= Display::return_sortable_grid(

Variable "group_info" 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

    if ($userGroup->is_group_admin($group_id)) {

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

                $user['link'] .= '<a href="group_members.php?id='.$group_id.'&u='.$user['id'].'&action=delete_moderator">'.

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

    $user_role = $userGroup->get_user_group_role(

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

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

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

        $group_id

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

    if ($userGroup->isGroupModerator($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

            $group_id,

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

    $new_member_list[] = $user;

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

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

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

        $user_role,

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

        $userGroup->update_user_role($user_join, $group_id);

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

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

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

if (empty($group_id)) {

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

    if ($userGroup->is_group_admin($group_id)) {

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

    if (empty($group_info)) {

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

    $group_id

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

            $user['link'] = '<a href="group_members.php?id='.$group_id.'&u='.$user['id'].'&action=add">'.

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

            if (GROUP_USER_PERMISSION_ADMIN == $user_role) {

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

$user_role = '';

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

        $userGroup->update_user_role($user_join, $group_id);

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

        $userGroup->delete_user_rel_group($user_join, $group_id);

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

                    '<a href="group_members.php?id='.$group_id.'&u='.$user['id'].'&action=set_moderator">'.

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

    if ($userGroup->isGroupModerator($group_id)) {

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

        $new_member_list,

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

$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => $group_info['name']];

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

                $user['link'] = '<a href="group_members.php?id='.$group_id.'&u='.$user['id'].'&action=delete">'.

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

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

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

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

Expected 0 spaces before closing bracket; newline found
Open

                    Display::getMdiIcon(ActionIcon::ADD_USER, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Add as moderator')

Expected 0 spaces before closing bracket; newline found
Open

                Display::getMdiIcon(ObjectIcon::PENDING_INVITATION, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Pending invitation')

Expected 0 spaces before closing bracket; newline found
Open

                    Display::getMdiIcon('account-voice-off', 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Remove moderator')

Expected 0 spaces before closing bracket; newline found
Open

            $user['link'] = Display::getMdiIcon(ObjectIcon::ADMIN_USER, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Admin')

Expected 0 spaces before closing bracket; newline found
Open

            $user['link'] = Display::getMdiIcon(ObjectIcon::MODERATOR_USER, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Moderator')

Expected 0 spaces before closing bracket; newline found
Open

                    Display::getMdiIcon(ActionIcon::DELETE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Delete from group')

There are no issues that match your filters.

Category
Status