chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    $group_info = $usergroup->get($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 = intval($_GET['id']);

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

if (empty($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 "new_member_list" is not in valid camel caps format
Open

    $new_member_list[] = $user;

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

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

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

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

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

$tpl->display($social_layout);

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

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

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

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

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

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

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

    if (!in_array($user_role, [GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_MODERATOR])) {

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

$show_message = '';

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

    $group_id,

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

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

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

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

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

        $usergroup->update_user_role($user_moderator, $group_id, GROUP_USER_PERMISSION_MODERATOR);

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

    $social_right_content = Display :: return_message(get_lang('ThereAreNotUsersInTheWaiting list'));

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

$social_right_content = '';

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

$this_section = SECTION_SOCIAL;

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

        $usergroup->update_user_role($user_moderator, $group_id, GROUP_USER_PERMISSION_MODERATOR);

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

$new_member_list = [];

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

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

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

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

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

$tpl->assign('members', $new_member_list);

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

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

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

if (empty($new_member_list) > 0) {

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

        $usergroup->delete_user_rel_group($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 ($usergroup->is_group_admin($group_id)) {

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

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

There are no issues that match your filters.

Category
Status