chamilo/chamilo-lms

View on GitHub
public/main/social/profile_friends_and_groups.inc.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        $friend_html .= '<div id="friend-container" class="social-friend-container">';

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

            $friend_html .= '<div style="float:left;width:80%">'.$number_friends.' '.get_lang('Friends').'</div>';

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

            $count_groups = 0;

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

                $count_groups = count($results).' '.get_lang('Groups');

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

        $friend_html .= '</div>'; // close div friend-header

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

                if (1 == $count_users_group) {

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

                $item_name = '<div class="box_shared_profile_group_title">'.$url_open.api_xml_http_response_encode($name).$icon.$url_close.'</div>';

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

                    $url_open.$result['picture_uri'].$url_close,

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

                $url_close = '</a>';

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

                        get_lang('See more').$url_close.'</div>';

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

                $friend_html .= '<img src="'.$userPicture.'" id="imgfriend_'.$friend['friend_user_id'].'" title="'.$name_user.'" />';

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

        $list_path_friends = $list_path_normal_friends = $list_path_parents = [];

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

                $friend_html .= '<img src="'.$userPicture.'" id="imgfriend_'.$friend['friend_user_id'].'" title="'.$name_user.'" />';

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

                $item_name = '<div class="box_shared_profile_group_title">'.$url_open.api_xml_http_response_encode($name).$icon.$url_close.'</div>';

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

                    $item_description = '<div class="box_shared_profile_group_description">

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

        $grid_my_groups = [];

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

                $count_groups = count($results).' '.get_lang('Group');

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

            $user_id,

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

        $friend_html = '';

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

        $friend_html .= '<div id="friend-header" >';

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

                $item_description = '';

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

        $number_friends = count($friends);

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

            $friend_html .= '<div style="float:left;width:80%">'.$number_friends.' '.get_lang('Friend').'</div>';

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

                $friend_html .= '<a href="profile.php?u='.$friend['friend_user_id'].'">';

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

        $results = $userGroup->get_groups_by_user($user_id, 0);

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

        $list_path_friends = $list_path_normal_friends = $list_path_parents = [];

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

                $friend_html .= '<div id=div_'.$friend['friend_user_id'].' class="image_friend_network" ><span><center>';

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

        if (1 == $number_friends) {

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

                $friend_html .= '<center class="friend">'.$name_user.'</a></center>';

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

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

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

        for ($k = 0; $k < $number_friends; $k++) {

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

                $friend_html .= '</div>';

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

                if (api_get_user_id() == $user_id) {

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

                    $item_actions = '<div class="box_shared_profile_group_actions"><a href="group_view.php?id='.$id.'">'.

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

                $grid_my_groups[] = [

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

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

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

                    $url_open.$result['picture_uri'].$url_close,

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

                    $item_description.$item_actions,

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

            foreach ($grid_my_groups as $group) {

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

$user_id = (int) $_GET['user_id'];

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

                $friend_html .= '<center class="friend">'.$name_user.'</a></center>';

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

        $list_path_friends = $list_path_normal_friends = $list_path_parents = [];

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

            $friend_html .= '<div style="float:left;width:80%">'.$number_friends.' '.get_lang('Friends').'</div>';

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

                $item_actions = '';

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

            $friend_html .= '<div style="float:left;width:80%">'.$number_friends.' '.get_lang('Friend').'</div>';

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

                $name_user = api_get_person_name(

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

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

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

                $item_name = '<div class="box_shared_profile_group_title">'.$url_open.api_xml_http_response_encode($name).$icon.$url_close.'</div>';

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

                    $item_name,

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

        $friend_html .= '<div><h3>'.get_lang('My friends').'</h3></div>';

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

                $friend_html .= '</center></span>';

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

        echo $friend_html;

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

                $url_open = '<a href="group_view.php?id='.$id.'">';

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 "item_description" is not in valid camel caps format
Open

                    $item_description.$item_actions,

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

        if (count($grid_my_groups) > 0) {

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

            echo '<div>'.$count_groups.'</div>';

There are no issues that match your filters.

Category
Status