e107inc/e107

View on GitHub
e107_plugins/forum/forum_stats.php

Summary

Maintainability
A
0 mins
Test Coverage
F
46%

Argument 2 (key) is array{user_id:mixed,user_name:mixed,user_forums:mixed,percentage:float} but \e107::url() takes string defined at /code/e107_handlers/e107_class.php:4225
Open

            <td style='width: 20%;' class='forumheader3'><a href='".e107::url('user/profile/view', $ma)."'>".$ma['user_name']."</a></td>
Severity: Minor
Found in e107_plugins/forum/forum_stats.php by phan

Reference to undeclared property \forumStats->subaction
Open

            if ($this->subaction == 'forum')
Severity: Minor
Found in e107_plugins/forum/forum_stats.php by phan

Argument 2 (value) is float but \e_form::progressBar() takes \number|string defined at /code/e107_handlers/form_handler.php:2312
Open

        return e107::getForm()->progressBar('prog',$perc);
Severity: Minor
Found in e107_plugins/forum/forum_stats.php by phan

Variable $LINKTOTHREAD is undeclared
Open

                    <td style='width:45%' class='forumheader3'><b><a href='{$LINKTOTHREAD}'>{$row['thread_name']}</a></b> <span class='smalltext'>(<a href='{$LINKTOFORUM}'>{$row['forum_name']}</a>)</span></td>
Severity: Minor
Found in e107_plugins/forum/forum_stats.php by phan

Call to undeclared method \e_db::db_getList
Open

        $top_topic_starters_data = $sql->db_getList();
Severity: Critical
Found in e107_plugins/forum/forum_stats.php by phan

Argument 4 (noWhere) is 'default' but \e_db::select() takes bool|false defined at /code/e107_handlers/e_db_interface.php:265
Open

        $firstpost = $sql->select('forum_post', 'post_datestamp', 'post_datestamp > 0 ORDER BY post_datestamp ASC LIMIT 0,1', 'default');
Severity: Minor
Found in e107_plugins/forum/forum_stats.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_stats.php by phan

Variable $LINKTOFORUM is undeclared
Open

                    <td style='width:45%' class='forumheader3'><b><a href='{$LINKTOTHREAD}'>{$row['thread_name']}</a></b> <span class='smalltext'>(<a href='{$LINKTOFORUM}'>{$row['forum_name']}</a>)</span></td>
Severity: Minor
Found in e107_plugins/forum/forum_stats.php by phan

Call to undeclared method \e_db::db_getList
Open

        $most_activeArray = $sql->db_getList();
Severity: Critical
Found in e107_plugins/forum/forum_stats.php by phan

Call to undeclared method \e_db::db_getList
Open

        $array = $sql -> db_getList();
Severity: Critical
Found in e107_plugins/forum/forum_stats.php by phan

Call to undeclared method \e_db::db_getList
Open

        $most_viewedArray = $sql->db_getList();
Severity: Critical
Found in e107_plugins/forum/forum_stats.php by phan

Call to undeclared method \e_db::db_getList
Open

         $top_repliers_data = $sql->db_getList('ALL', false, false, 'user_id');
Severity: Critical
Found in e107_plugins/forum/forum_stats.php by phan

Call to undeclared method \e_db::db_getList
Open

        $top_repliers_data_c = $sql->db_getList('ALL', false, false, 'user_id');
Severity: Critical
Found in e107_plugins/forum/forum_stats.php by phan

Argument 2 (key) is array{user_id:mixed,user_name:mixed,user_forums:mixed,percentage:float} but \e107::url() takes string defined at /code/e107_handlers/e107_class.php:4225
Open

            <td style='width: 20%;' class='forumheader3'><a href='".e107::url('user/profile/view', $ma)."'>".$ma['user_name']."</a></td>
Severity: Minor
Found in e107_plugins/forum/forum_stats.php by phan

Reference to undeclared property \forumStats->subaction
Open

        if ($this->subaction == 'forum' || $this->subaction == 'all')
Severity: Minor
Found in e107_plugins/forum/forum_stats.php by phan

There are no issues that match your filters.

Category
Status