e107inc/e107

View on GitHub
e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Variable $opts was undeclared, but array fields are being added to it.
Open

                    $opts[] = "<a class='page-link' data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";

Argument 2 (vals) is 1 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
Open

                    $title = $tp->lanVars(LAN_GOTOPAGEX, $aa);

Argument 1 (datestamp) is string but \convert::convert_date() takes int defined at /code/e107_handlers/date_handler.php:145
Open

                $lp_date = $this->gen->convert_date($tmp[0], 'forum');

Argument 4 (options) is 'full' but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

                $text .= "\n<option value='" . e107::url('forum', 'forum', $val, 'full') . "'>" . $val['forum_name'] . "</option>";

Variable $temp was undeclared, but array fields are being added to it.
Open

                $temp['thread_sef'] = eHelper::title2sef($this->var['thread_name'], 'dashl');

Argument 1 (older_date) is string but \convert::computeLapse() takes int defined at /code/e107_handlers/date_handler.php:601
Open

                return ($caller == 'sc_sub_lastpostuser' ? $lp_name : ($caller == 'sc_sub_lastpostdate' ? $this->gen->computeLapse($tmp[0], time(), false, false, 'short') : ($caller == 'sc_sub_lastpost' ? $lp_date . '<br />' . $lp_name . ' ' . $lp_thread : '')));

Argument 1 (parm) is 'url' but \plugin_forum_viewforum_shortcodes::sc_threadname() takes null defined at /code/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php:805
Open

            return $this->sc_threadname('url');

Argument 2 (vals) is float|int but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
Open

                    $title = $tp->lanVars(LAN_GOTOPAGEX, $aa);

Argument 2 (vals) is 1 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
Open

                    $title = $tp->lanVars(LAN_GOTOPAGEX, $aa);

Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
Open

                    $thread_thread = $tp->text_truncate($thread_thread, $tip_length, $menu_pref['newforumposts_postfix']);    // Doesn't split entities

Variable $temp was undeclared, but array fields are being added to it.
Open

            $temp['thread_sef'] = eHelper::title2sef($this->var['thread_name'], 'dashl');

Argument 1 (parm) is 'title' but \plugin_forum_viewforum_shortcodes::sc_threadname() takes null defined at /code/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php:805
Open

            return $this->sc_threadname('title');

Variable $opts was undeclared, but array fields are being added to it.
Open

                    $opts[] = "<a class='page-link' data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";

There are no issues that match your filters.

Category
Status