XoopsModules25x/xoopspoll

View on GitHub
extras/newbb_4x/trunk_4_00/viewtopic.php

Summary

Maintainability
F
1 wk
Test Coverage

File viewtopic.php has 584 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Newbb module
 *
 * You may not change or alter any portion of this comment or credits
Severity: Major
Found in extras/newbb_4x/trunk_4_00/viewtopic.php - About 1 day to fix

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    if ('thread' === $viewmode) {
        $viewmode_options[] = [
            'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=flat&amp;topic_id=' . $topic_id,
            'title' => _FLAT
        ];
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 1 other location - About 2 days to fix
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 519..568

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 554.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        if ($topicHandler->getPermission($forum_obj, $topic_obj->getVar('topic_status'), 'addpoll')) {
            if (!$topic_obj->getVar('topic_haspoll')) {
                if (($xoopsUser instanceof XoopsUser) && $xoopsUser->getVar('uid') === $topic_obj->getVar('topic_poster')) {
                    $t_poll = newbb_displayImage('t_poll', _MD_ADDPOLL);
                    $xoopsTpl->assign('forum_addpoll', "<a href=\"" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . "/polls.php?op=add&amp;topic_id={$topic_id}\">{$t_poll}</a>");
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 1 other location - About 2 days to fix
    extras/newbb_4x/irmtfan/viewtopic.php on lines 597..630

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 441.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

            if (!empty($poll_obj) && $poll_obj instanceof \XoopspollPoll) {
    
                /* check to see if user has rights to view the results */
                $vis_return = $poll_obj->isResultVisible();
                $isVisible  = (true === $vis_return) ? true : false;
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 1 other location - About 1 day to fix
    extras/newbb_4x/irmtfan/viewtopic.php on lines 495..540

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 354.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    if (!empty($xoopsModuleConfig['rating_enabled'])) {
        $xoopsTpl->assign('votes', $topic_obj->getVar('votes'));
        $rating = number_format($topic_obj->getVar('rating') / 2, 0);
        if ($rating < 1) {
            $rating_img = newbb_displayImage('blank');
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 1 other location - About 7 hrs to fix
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 481..495

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 227.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    if ($topicHandler->getPermission($forum_obj, $topic_obj->getVar('topic_status'), 'post')) {
        $xoopsTpl->assign('forum_post_or_register', "<a href=\"newtopic.php?forum={$forum_id}\">{$t_new}</a>");
    } elseif (!empty($GLOBALS['xoopsModuleConfig']['show_reg'])) {
        if ($topic_obj->getVar('topic_status')) {
            $xoopsTpl->assign('forum_post_or_register', _MD_TOPICLOCKED);
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 1 other location - About 4 hrs to fix
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 175..185

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 173.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

        if (count($postArray) > 0) {
            foreach ($postArray as $treeItem) {
                $topicHandler->showTreeItem($topic_obj, $treeItem);
                if ($treeItem['post_id'] === $post_id) {
                    $treeItem['subject'] = '<strong>' . $treeItem['subject'] . '</strong>';
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 1 other location - About 2 hrs to fix
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 261..280

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 140.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    $xoopsTpl->assign(
        [
                          'lang_forum_index' => sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)),
                          'lang_from'        => _MD_FROM,
                          'lang_joined'      => _MD_JOINED,
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 3 other locations - About 2 hrs to fix
    extras/newbb_4x/irmtfan/viewtopic.php on lines 676..690
    extras/newbb_5x/irmtfan/viewtopic.php on lines 681..695
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 502..516

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 125.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

    if (!$topic_obj->getVar('topic_sticky')) {
        $admin_actions['sticky'] = [
            'link'  => sprintf($link_string, 'sticky'),
            'image' => $ad_sticky,
            'name'  => _MD_STICKYTOPIC
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 5 other locations - About 45 mins to fix
    extras/newbb_4x/trunk_4_00/viewtopic.php on lines 318..330
    extras/newbb_4x/trunk_4_00/viewtopic.php on lines 344..356
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 327..339
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 340..352
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 353..365

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 96.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

    if (!$topic_obj->getVar('topic_status')) {
        $admin_actions['lock'] = [
            'link'  => sprintf($link_string, 'lock'),
            'image' => $ad_lock,
            'name'  => _MD_LOCKTOPIC
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 5 other locations - About 45 mins to fix
    extras/newbb_4x/trunk_4_00/viewtopic.php on lines 331..343
    extras/newbb_4x/trunk_4_00/viewtopic.php on lines 344..356
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 327..339
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 340..352
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 353..365

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 96.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open

    if (!$topic_obj->getVar('topic_digest')) {
        $admin_actions['digest'] = [
            'link'  => sprintf($link_string, 'digest'),
            'image' => $ad_digest,
            'name'  => _MD_DIGESTTOPIC
    Severity: Major
    Found in extras/newbb_4x/trunk_4_00/viewtopic.php and 5 other locations - About 45 mins to fix
    extras/newbb_4x/trunk_4_00/viewtopic.php on lines 318..330
    extras/newbb_4x/trunk_4_00/viewtopic.php on lines 331..343
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 327..339
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 340..352
    extras/newbb_5x/trunk_5_00/viewtopic.php on lines 353..365

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 96.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Blank line found at start of control structure
    Open

            if (!empty($poll_obj) && $poll_obj instanceof \XoopspollPoll) {

    Line exceeds 120 characters; contains 144 characters
    Open

            'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=compact&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 220 characters
    Open

                    'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/polls.php?op=restart&amp;poll_id=' . $topic_obj->getVar('poll_id') . '&amp;topic_id=' . $topic_id . '&amp;forum=' . $forum_id,

    Line exceeds 120 characters; contains 141 characters
    Open

            'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=flat&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 180 characters
    Open

                'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=flat&amp;order=ASC&amp;status={$status}&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 189 characters
    Open

                    'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/polls.php?op=edit&amp;poll_id=' . $topic_obj->getVar('poll_id') . '&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 146 characters
    Open

    $link_string             = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/topicmanager.php?mode=%s&amp;topic_id=' . $topic_id;

    Line exceeds 120 characters; contains 162 characters
    Open

                'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=compact&amp;order=ASC&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 125 characters
    Open

        $forum_form->addElement(new XoopsFormHidden('pid', empty($post_id) ? $topicHandler->getTopPostId($topic_id) : $post_id));

    Line exceeds 120 characters; contains 191 characters
    Open

                    'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/polls.php?op=delete&amp;poll_id=' . $topic_obj->getVar('poll_id') . '&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 171 characters
    Open

            'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=compact&amp;order={$order_current}&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 247 characters
    Open

        $xoops_module_header .= '<link rel="alternate" type="application/rss+xml" title="' . $xoopsModule->getVar('name') . '-' . $forum_obj->getVar('forum_name') . '" href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/rss.php?f='

    Line exceeds 120 characters; contains 181 characters
    Open

                'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=flat&amp;order=DESC&amp;status={$status}&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 200 characters
    Open

            $xoopsTpl->assign('forum_post_or_register', '<a href="' . XOOPS_URL . '/user.php?xoops_redirect=' . htmlspecialchars($xoopsRequestUri, ENT_QUOTES | ENT_HTML5) . '">' . _MD_REGTOPOST . '</a>');

    Line exceeds 120 characters; contains 159 characters
    Open

        $postsArray                              = $topicHandler->getAllPosts($topic_obj, $order, $xoopsModuleConfig['posts_per_page'], $start, $post_id, $status);

    Line exceeds 120 characters; contains 232 characters
    Open

            $nav = new XoopsPageNav($total_posts, $xoopsModuleConfig['posts_per_page'], $start, 'start', 'topic_id=' . $topic_id . '&amp;viewmode=' . $viewmode . '&amp;order=' . $order . '&amp;status=' . $status . '&amp;mode=' . $mode);

    Line exceeds 120 characters; contains 193 characters
    Open

                    $xoopsTpl->assign('forum_addpoll', "<a href=\"" . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . "/polls.php?op=add&amp;topic_id={$topic_id}\">{$t_poll}</a>");

    Line exceeds 120 characters; contains 124 characters
    Open

        $userHandler         = new \NewbbUserHandler($xoopsModuleConfig['groupbar_enabled'], $xoopsModuleConfig['wol_enabled']);

    Line exceeds 120 characters; contains 123 characters
    Open

                    $topic_pollform = $myTpl->fetch($GLOBALS['xoops']->path('modules/xoopspoll/templates/xoopspoll_view.tpl'));

    Line exceeds 120 characters; contains 229 characters
    Open

        $submit_button->setExtra('onclick="if (document.forms.quick_reply.message.value == \'RE\' || document.forms.quick_reply.message.value == \'\') { alert(\'' . _MD_QUICKREPLY_EMPTY . '\'); return false;} else { return true;}"');

    Line exceeds 120 characters; contains 132 characters
    Open

    $viewmode = $_GET['viewmode'] ?? (!empty($viewmode_cookie) ? $viewmode_cookie : @$valid_modes[$xoopsModuleConfig['view_mode'] - 1]);

    Line exceeds 120 characters; contains 140 characters
    Open

    $xoops_pagetitle = $topic_obj->getVar('topic_title') . ' [' . $xoopsModule->getVar('name') . ' - ' . $forum_obj->getVar('forum_name') . ']';

    Line exceeds 120 characters; contains 122 characters
    Open

        $permission_table  = $permissionHandler->getPermissionTable($forum_obj, $topic_obj->getVar('topic_status'), $isadmin);

    Line exceeds 120 characters; contains 124 characters
    Open

                          'lang_forum_index' => sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)),

    Line exceeds 120 characters; contains 163 characters
    Open

                'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=compact&amp;order=DESC&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 205 characters
    Open

                          'topic_title'    => '<a href="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?topic_id=' . $topic_id . '">' . $topic_obj->getFullTitle() . '</a>',

    Line exceeds 120 characters; contains 140 characters
    Open

                    $myTpl->assign('action', $GLOBALS['xoops']->url("modules/newbb/votepolls.php?topic_id={$topic_id}&amp;poll_id={$poll_id}"));

    Line exceeds 120 characters; contains 143 characters
    Open

            'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=thread&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 168 characters
    Open

            'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=flat&amp;order={$order_current}&amp;topic_id=' . $topic_id,

    Line exceeds 120 characters; contains 143 characters
    Open

            'link'  => XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname', 'n') . '/viewtopic.php?viewmode=thread&amp;topic_id=' . $topic_id,

    Expected 0 spaces before closing bracket; newline found
    Open

        $xoopsTpl->assign('quickreply', [

    Expected 0 spaces before closing bracket; newline found
    Open

                $xoopsTpl->append('topic_trees', [

    There are no issues that match your filters.

    Category
    Status