e107inc/e107

View on GitHub
e107_plugins/online/online_shortcodes.php

Summary

Maintainability
A
0 mins
Test Coverage
D
63%

Call to method get on non-class type array{}
Open

        return $this->memberInfo->get('most_members_online');
Severity: Critical
Found in e107_plugins/online/online_shortcodes.php by phan

Argument 2 (Data) is int but \ecache::set() takes string defined at /code/e107_handlers/cache_handler.php:235
Open

            e107::getCache()->set("online_menu_member_total", $total_members);

Call to method get on non-class type array{}
Open

        return $this->memberInfo->get('most_guests_online');
Severity: Critical
Found in e107_plugins/online/online_shortcodes.php by phan

Invalid offset "user_currentvisit" of array type array{}
Open

        $seen_ago = $this->gen->computeLapse($this->currentUser['user_currentvisit'], false, false, true, 'short');

Argument #1 of this call to \str_replace is typically a literal or constant but isn't, but argument #3 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

        $message = str_replace($srch,$repl, LAN_ONLINE_TRACKING_MESSAGE);

Assigning \e_core_pref|\e_plugin_pref to property but \online_shortcodes->memberInfo is array{}
Open

        $this->memberInfo = e107::getConfig('history');

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

        $this->gen = e107::getDateConvert();

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

        $seen_ago = $this->gen->computeLapse($this->currentUser['user_currentvisit'], false, false, true, 'short');

Invalid offset "user_name" of array type array{}
Open

        return "<a href='".$link."'>".varset($this->currentUser['user_name'])."</a>";

Assigning array{oid:mixed,oname:mixed,page:null,pinfo:null,oimage:mixed} to property but \online_shortcodes->currentMember is array{oid:'0',oname:'??',page:'lost'}
Open

                $this->currentMember =  array('oid'    => $row['user_id'], 'oname'=> $row['user_name'], 'page' => null, 'pinfo' => null,'oimage' => $row['user_image']    );

Call to method get on non-class type array{}
Open

        return intval($this->memberInfo->get('most_members_online') + $this->memberInfo->get('most_guests_online'));
Severity: Critical
Found in e107_plugins/online/online_shortcodes.php by phan

Invalid offset "user_id" of array type array{}
Open

        $uparams = array('id' => varset($this->currentUser['user_id']), 'name' => varset($this->currentUser['user_name']));

Invalid offset "user_name" of array type array{}
Open

        $uparams = array('id' => varset($this->currentUser['user_id']), 'name' => varset($this->currentUser['user_name']));

Call to method get on non-class type array{}
Open

        return $this->gen->convert_date($this->memberInfo->get('most_online_datestamp'), $parm);
Severity: Critical
Found in e107_plugins/online/online_shortcodes.php by phan

There are no issues that match your filters.

Category
Status