e107inc/e107

View on GitHub
e107_plugins/user/e_dashboard.php

Summary

Maintainability
A
0 mins
Test Coverage
F
31%

Call to undeclared method \e_db::db_getList
Open

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

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

                    $entries[0] = $log_data['host'];
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Argument 6 (year) is string but \mktime() takes int
Open

            $diz = date('D jS', mktime(1,1,1,$monthNumber,$i, $yearNumber));
Severity: Minor
Found in e107_plugins/user/e_dashboard.php by phan

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

        $dayarray[$td] = array();
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

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

                <td><a class='e-tip' href='".$val['user_location']."' title='".$val['user_location']."'>".$tp->html_truncate(basename($val['user_location']),50,"...")."</a></td>
Severity: Minor
Found in e107_plugins/user/e_dashboard.php by phan

Call with 2 arg(s) to \e_chart::setData() which only takes 1 arg(s) defined at /code/e107_handlers/chart_class.php:323
Open

        $cht->setData($data,'canvas');
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

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

        $data[] = array('Day', "Registered" );
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Returning type false but registered() is declared to return string
Open

            return false;
Severity: Minor
Found in e107_plugins/user/e_dashboard.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        return "<div class='height:50%'>".$cht->render($id, $width, $height)."</div>";
Severity: Minor
Found in e107_plugins/user/e_dashboard.php by phan

Call to deprecated function \e107::getDateConvert() defined at /code/e107_handlers/e107_class.php:1948
Open

                <td class='nowrap'>".e107::getDateConvert()->convert_date($val['user_currentvisit'],'%H:%M:%S')."</td>
Severity: Minor
Found in e107_plugins/user/e_dashboard.php by phan

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

            $label[] = "'".date("D",$unix)."'";
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Saw an @param annotation for when, but it was not found in the param list of function registered(string $id = null) : string
Open

     * @param string $when
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

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

            $dateName[$diz] = date('jS', $row['user_join']);
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Argument 4 (mon) is string but \mktime() takes int
Open

            $diz = date('D jS', mktime(1,1,1,$monthNumber,$i, $yearNumber));
Severity: Minor
Found in e107_plugins/user/e_dashboard.php by phan

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

            $ticks[] = $i;
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

There are no issues that match your filters.

Category
Status