chamilo/chamilo-lms

View on GitHub
public/main/forum/viewthread.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    if (($current_forum_category && 0 == $current_forum_category->getLocked()) &&

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

    $id_attach = !empty($attachment_list) ? $attachment_list['iid'] : '';

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

        ($current_forum_category && 0 != $current_forum_category->getLocked()) ||

Multi-line function call not indented correctly; expected 16 spaces but found 20
Open

                    urlencode($my_search)

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

                'forum/index.php?forumcategory='.$current_forum_category->getIid().'&search='.Security::remove_XSS(

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

    if ($_user['user_id'] || (1 == $forumEntity->getAllowAnonymous() && !$_user['user_id'])) {

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

$_user = api_get_user_info();

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

if (($current_forum_category &&

Blank line found at start of control structure
Open

    if ($_user['user_id'] || (1 == $forumEntity->getAllowAnonymous() && !$_user['user_id'])) {

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

if (!empty($group_id)) {

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

    if (($current_forum_category && 0 == $current_forum_category->getLocked()) &&

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

        if ($current_forum_category && 1 == $current_forum_category->getLocked()) {

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

    $my_search = isset($_GET['search']) ? $_GET['search'] : '';

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

                    urlencode($my_search)

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

            'url' => api_get_path(WEB_CODE_PATH).'forum/viewforum.php?'.api_get_cidreq().'&forum='.$forumId.'&search='.Security::remove_XSS(urlencode($my_search)),

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

            (1 == $forumEntity->getAllowNewThreads() && isset($_user['user_id'])) ||

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

switch ($my_action) {

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

    $groupEntity = api_get_group_entity($group_id);

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

            $current_qualify_thread = showQualify(

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

            'name' => Security::remove_XSS($current_forum_category->getTitle()),

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

    0 == $current_forum_category->getLocked()) &&

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

                    ."&idtextqualify=$current_qualify_thread"

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

        if ($current_forum_category && 1 == $current_forum_category->getLocked()) {

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

    if ($_user['user_id'] || (1 == $forumEntity->getAllowAnonymous() && !$_user['user_id'])) {

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

if (!$_user['user_id'] && 0 == $forumEntity->getAllowAnonymous()) {

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

            (1 == $forumEntity->getAllowNewThreads() && !isset($_user['user_id']) && 1 == $forumEntity->getAllowAnonymous())

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

    'action' => !empty($my_action) ? $my_action : 'view-thread',

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

    $id_attach = !empty($attachment_list) ? $attachment_list['iid'] : '';

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

$my_search = null;

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

        ($current_forum_category && 0 != $current_forum_category->getLocked()) ||

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

$current_forum_category = $forumEntity->getForumCategory();

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

$my_action = $_GET['action'] ?? '';

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

                    urlencode($my_search)

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                ),

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

$group_id = api_get_group_id();

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

    $show_forum = GroupManager::userHasAccess(

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

$_user = api_get_user_info();

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

        'url' => api_get_path(WEB_CODE_PATH).'forum/viewforum.php?forum='.$forumId.'&'.api_get_cidreq().'&search='.Security::remove_XSS(urlencode($my_search)),

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

    $id_attach = !empty($attachment_list) ? $attachment_list['iid'] : '';

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

    (($current_forum_category && 0 == !$current_forum_category->isVisible($courseEntity)) || !$forumEntity->isVisible($courseEntity))

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

    if (!$show_forum) {

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

            $editUrl .= "&forum=$forumId&thread=$threadId&post={$post['post_id']}&id_attach=$id_attach";

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

    'action' => !empty($my_action) ? $my_action : 'view-thread',

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

    (($current_forum_category && 0 == !$current_forum_category->isVisible($courseEntity)) || !$forumEntity->isVisible($courseEntity))

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

    $attachment_list = get_attachment($post['post_id']);

Expected 0 spaces after opening bracket; newline found
Open

        if (

Multi-line function call not indented correctly; expected 16 spaces but found 20
Open

                    urlencode($my_search)

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                ),

There are no issues that match your filters.

Category
Status