chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$my_group_role = 0;

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

        $grid_item_2 = $html;

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

$grid_newest_groups = [];

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

            $count_users_group = $count_users_group.' '.get_lang('Member');

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

            $grid_newest_groups,

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

$this_section = SECTION_SOCIAL;

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

$my_group_list = [];

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

            $count_users_group = $count_users_group.' '.get_lang('Members');

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

            $count_users_group = $count_users_group.' '.get_lang('Members');

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

    switch ($view_group) {

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

                $my_group_content = Display::return_sortable_grid(

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

                    $query_vars,

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

            $grid_my_groups,

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

    [$newest_content, $popular_content, $my_group_content],

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

        $count_users_group = count(

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

        $count_users_group = $count_users_group.' '.get_lang('Members');

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

    $members = Display::getMdiIcon('account').$count_users_group;

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

    $grid_newest_groups[] = [$grid_item_2];

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

$grid_pop_groups = [];

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

    if (count($grid_newest_groups) > 0) {

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

            $query_vars,

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

$social_right_content = null;

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

    if (1 == $count_users_group) {

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

                $create_group_item =

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

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

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

$newest_content = $popular_content = $my_group_content = null;

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

                    $create_group_item =

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

                $newest_content = Display::return_sortable_grid(

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

            $query_vars,

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

$show_menu = 'browse_groups';

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

            $grid_pop_groups,

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

            $count_users_group = $count_users_group.' '.get_lang('Members');

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

$social_right_content .= Display::tabs(

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

    [$newest_content, $popular_content, $my_group_content],

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

        $grid_pop_groups[] = [$grid_item_2];

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

    $show_menu = $_GET['view'];

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

$query_vars = [];

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

                    $grid_my_groups,

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

    [$newest_content, $popular_content, $my_group_content],

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

$show_menu = 'browse_groups';

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

$create_thread_link = '';

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

        $count_users_group = $count_users_group.' '.get_lang('Member');

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

    $html .= '<div class="group-actions" >'.$join_url.'</div>';

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

    $grid_item_2 = $html;

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

            $count_users_group = $count_users_group.' '.get_lang('Members');

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

            $query_vars,

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

    $social_right_content .= Display::page_subheader($create_group_item);

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

    $social_right_content .= Display::page_subheader($create_group_item);

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

$join_url = '';

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

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

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

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

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

        $create_group_item =

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

        $newest_content = Display::return_sortable_grid(

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

$relation_group_title = '';

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

$grid_my_groups = [];

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

    if (count($grid_my_groups) > 0) {

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

if (!empty($create_group_item)) {

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

        $count_users_group = $count_users_group.' '.get_lang('Member');

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

        if (1 == $count_users_group) {

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

$newest_content = $popular_content = $my_group_content = null;

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

$newest_content = $popular_content = $my_group_content = null;

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

                    $query_vars,

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

                    $grid_newest_groups,

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

                    $grid_pop_groups,

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

SocialManager::setSocialUserBlock($tpl, api_get_user_id(), $show_menu);

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

    $show_menu = $_GET['view'];

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

        $my_group_list[] = $id;

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

        if (1 == $count_users_group) {

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

        $grid_my_groups[] = [$grid_item_2];

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

        $count_users_group = $count_users_group.' '.get_lang('Members');

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

        if (!in_array($id, $my_group_list)) {

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

            $create_group_item =

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

        $popular_content = Display::return_sortable_grid(

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

            $count_users_group = $count_users_group.' '.get_lang('Member');

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

        $grid_my_groups[] = [$grid_item_2];

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

            $count_users_group = $count_users_group.' '.get_lang('Member');

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

            if (count($grid_pop_groups) > 0) {

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

        $my_group_content = '<span class="muted">'.get_lang('(none)').'</span>';

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

        $newest_content = '<div class="muted">'.get_lang('(none)').'</div>';

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

    if (count($grid_pop_groups) > 0) {

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

        $popular_content = '<div class="muted">'.get_lang('(none)').'</div>';

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

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

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

    $grid_newest_groups[] = [$grid_item_2];

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

                $popular_content = Display::return_sortable_grid(

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

        $my_group_content = Display::return_sortable_grid(

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

    $count_users_group = count(

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

    if (!in_array($id, $my_group_list)) {

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

        $count_users_group = count(

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

        $html .= '<div class="group-actions" >'.$join_url.'</div>';

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

        $grid_pop_groups[] = [$grid_item_2];

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

    $view_group = $_GET['view'];

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

            if (count($grid_newest_groups) > 0) {

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

    $my_group_content = null;

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

            $count_users_group = $count_users_group.' '.get_lang('Member');

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

        $members = Display::getMdiIcon('account').$count_users_group;

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

        $grid_item_2 = $html;

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

            if (count($grid_my_groups) > 0) {

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

                    $query_vars,

There are no issues that match your filters.

Category
Status