e107inc/e107

View on GitHub
e107_plugins/pm/pm_class.php

Summary

Maintainability
A
0 mins
Test Coverage
F
2%

Return type of __construct() is undeclared type \none
Open

    public    function __construct($prefs=null)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Returning type true but pm_send_notify() is declared to return \none
Open

            return true;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Argument 1 (classes) is int but \user_class::getUsersInClass() takes string defined at /code/e107_handlers/userclass_class.php:1192
Open

        return e107::getUserClass()->getUsersInClass($class, 'user_name, user_email, user_class');
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Argument 2 (newvalue) is 600 but \ini_set() takes string
Open

        @ini_set("max_execution_time", 10 * 60);
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Call to undeclared method \e_db::db_getList
Open

            $ret['messages'] = $sql->db_getList();
Severity: Critical
Found in e107_plugins/pm/pm_class.php by phan

Return type of pm_mark_read() is undeclared type \none
Open

    function pm_mark_read($pm_id, $pm_info)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Method \private_message::pm_mark_read is declared to return \none but has no return value
Open

    function pm_mark_read($pm_id, $pm_info)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string var - name to match': after string, did not see an element name (will guess based on comment order)
Open

     *    @param string var - name to match
Severity: Info
Found in e107_plugins/pm/pm_class.php by phan

Call to undeclared method \e_db::db_getList
Open

            $ret['messages'] = $sql->db_getList();
Severity: Critical
Found in e107_plugins/pm/pm_class.php by phan

Returning type false but pm_send_notify() is declared to return \none
Open

            return false;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Method \private_message::__construct is declared to return \none but has no return value
Open

    public    function __construct($prefs=null)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Reference to undeclared property \e_db->total_results
Open

            $total_messages = $sql->total_results;        // Total number of messages
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

When fetching an array index from a value of type array<int>,</int> found an array index of type string, but expected the index to be of type int
Open

        $fname = $attachments[$filenum];
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Argument 1 (user) is string but \e_file::getUserDir() takes int defined at /code/e107_handlers/file_class.php:1261
Open

        $pathList[] = e107::getFile()->getUserDir($fromid, false, 'attachments'); // new media path.
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Returning type false but send_file() is declared to return \none
Open

            return false;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Returning type false but send_file() is declared to return \none
Open

            return false;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Argument 3 (row) is null but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

        $url = e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmid;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Argument 3 (row) is null but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

        $pmlink = e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmInfo['pm_id'];
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Return type of pm_send_notify() is undeclared type \none
Open

    function pm_send_notify($uid, $pmInfo, $pmid, $attach_count = 0)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Returning type false but send_file() is declared to return \none
Open

            return false;
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Call to undeclared method \e_db::escape
Open

            $where = "user_name LIKE '".$sql->escape($var, FALSE)."'";
Severity: Critical
Found in e107_plugins/pm/pm_class.php by phan

Return type of send_file() is undeclared type \none
Open

    function send_file($pmid, $filenum)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

There are no issues that match your filters.

Category
Status