e107inc/e107

View on GitHub
e107_plugins/forum/forum.php

Summary

Maintainability
A
0 mins
Test Coverage
F
17%

Invalid offset "parent_end" of array type array{end:array{forum:array{parent:array{start:mixed}|mixed}|array{start:mixed}|mixed}|array{parent:array{start:mixed}|mixed}|array{start:mixed}|mixed}|array{forum:array{parent:array{start:mixed}|mixed}|array{start:mixed}|mixed}|array{parent:array{start:mixed}|mixed}|array{start:mixed}
Open

            $FORUM_MAIN_PARENT_END = varset($FORUM_TEMPLATE['main']['parent_end']);
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

        $this->sc = e107::getScBatch('forum', true);
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

Argument 2 (total) is 'Back' but \e_form::pagination() takes int defined at /code/e107_handlers/form_handler.php:2262
Open

        $text .= "<div class='center'>" . e107::getForm()->pagination(e107::url('forum', 'index'), LAN_BACK) . "</div>";
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

Argument 3 (default) is 'Forum' but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

                array('text' => e107::pref('forum', 'title', LAN_PLUGIN_FORUM_NAME), 'url' => e107::url('forum', 'index')),
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

Argument 3 (default) is 'Forum' but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

                    array('text' => e107::pref('forum', 'title', LAN_PLUGIN_FORUM_NAME), 'url' => e107::url('forum', 'index')),
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

Argument 2 (total) is 'Back' but \e_form::pagination() takes int defined at /code/e107_handlers/form_handler.php:2262
Open

        $text .= "<div class='center'>" . e107::getForm()->pagination(e107::url('forum', 'index'), LAN_BACK) . "</div>";
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

Argument 2 (key) is array{name:mixed,id:array|mixed|string|string[]} but \e107::url() takes string defined at /code/e107_handlers/e107_class.php:4225
Open

                    $data['LASTPOSTUSER'] = !empty($row['user_name']) ? "<a href='" . e107::url('user/profile/view', array('name' => $row['user_name'], 'id' => $row['thread_lastuser'])) . "'>" . $row['user_name'] . "</a>" : LAN_ANONYMOUS;
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

Invalid offset "parent_start" of array type array{end:array{forum:array{parent:array{start:mixed}|mixed}|array{start:mixed}|mixed}|array{parent:array{start:mixed}|mixed}|array{start:mixed}|mixed}|array{forum:array{parent:array{start:mixed}|mixed}|array{start:mixed}|mixed}|array{parent:array{start:mixed}|mixed}|array{start:mixed}
Open

                $FORUM_MAIN_PARENT = $FORUM_TEMPLATE['main']['parent_start'];
Severity: Minor
Found in e107_plugins/forum/forum.php by phan

There are no issues that match your filters.

Category
Status