chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$allowed_action = isset($_GET['action']) && in_array($_GET['action'], $actions) ? Security::remove_XSS($_GET['action']) : '';

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

$param_item_page = isset($_GET['items_page_nr']) && isset($_GET['topic_id']) ? ('&items_'.intval($_GET['topic_id']).'_page_nr='.(!empty($_GET['topics_page_nr']) ? intval($_GET['topics_page_nr']) : 1)) : '';

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

$message_id = isset($_GET['message_id']) ? intval($_GET['message_id']) : null;

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

if (!empty($group_id) && $allowed_action) {

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

    if (!empty($message_id)) {

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

    $userfriend_id = (int) $_REQUEST['user_friend'];

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

$to_group = '';

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

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

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

$page_item = !empty($_GET['topics_page_nr']) ? intval($_GET['topics_page_nr']) : 1;

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

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

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

    $to_group = $group_info['title'];

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

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

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

if (!empty($group_id) && $allowed_action) {

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

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

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

    if (GROUP_PERMISSION_CLOSED == $group_info['visibility'] && !$is_member) {

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

    $to_group = $group_info['title'];

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

    if (GROUP_PERMISSION_CLOSED == $group_info['visibility'] && !$is_member) {

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

    $param_item_page .= '&topic_id='.intval($_GET['topic_id']);

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

$url = api_get_path(WEB_CODE_PATH).'social/group_topics.php?id='.$group_id.'&anchor_topic='.$anchor_topic.'&topics_page_nr='.$page_topic.$param_item_page;

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

    $user_info = api_get_user_info($userfriend_id);

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

$url = api_get_path(WEB_CODE_PATH).'social/group_topics.php?id='.$group_id.'&anchor_topic='.$anchor_topic.'&topics_page_nr='.$page_topic.$param_item_page;

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

$page_topic = isset($_GET['topics_page_nr']) ? intval($_GET['topics_page_nr']) : 1;

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

    if ('add_message_group' === $allowed_action) {

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

$form->addHidden('message_id', $message_id);

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

$form->addHidden('action', $allowed_action);

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

$form->addHidden('group_id', $group_id);

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

    $user_info = api_get_user_info($userfriend_id);

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

$url = api_get_path(WEB_CODE_PATH).'social/group_topics.php?id='.$group_id.'&anchor_topic='.$anchor_topic.'&topics_page_nr='.$page_topic.$param_item_page;

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

$anchor_topic = isset($_GET['anchor_topic']) ? Security::remove_XSS($_GET['anchor_topic']) : null;

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

$form->addHidden('parent_id', $message_id);

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

$url = api_get_path(WEB_CODE_PATH).'social/group_topics.php?id='.$group_id.'&anchor_topic='.$anchor_topic.'&topics_page_nr='.$page_topic.$param_item_page;

There are no issues that match your filters.

Category
Status