e107inc/e107

View on GitHub
e107_plugins/pm/pm_shortcodes.php

Summary

Maintainability
A
0 mins
Test Coverage
D
64%

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

            return e107::getParser()->parseTemplate("{NEXTPREV={$this->pmNextPrev['total']},{$this->pmPrefs['perpage']},{$this->pmNextPrev['start']},".e_SELF."?{$parm}.[FROM]}");
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.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 "<input type='checkbox' name='selected_pm[{$this->pmBlocked['pm_block_from']}]' value='1' />";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

            return "<input type='checkbox' name='selected_pm[{$this->pmBlocked['pm_block_from']}]' value='1' />";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Argument 2 (value) is null but \e_form::userpicker() takes array|string defined at /code/e107_handlers/form_handler.php:2012
Open

                $ret = e107::getForm()->userpicker('pm_to', null, array('limit'=>10));
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.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 e107::getParser()->parseTemplate("{NEXTPREV={$this->pmNextPrev['total']},{$this->pmPrefs['perpage']},{$this->pmNextPrev['start']},".e_SELF."?{$parm}.[FROM]}");
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.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

                $ret = "<a href='".$url->create('user/profile/view', array('id' => $this->pmBlocked['pm_block_from'], 'name' => $this->pmBlocked['user_name']))."'>{$this->pmBlocked['user_name']}</a>";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

            return e107::getDate()->convert_date($this->pmBlocked['pm_block_datestamp'], $parm);
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

            return e107::getParser()->parseTemplate("{NEXTPREV={$this->pmNextPrev['total']},{$this->pmPrefs['perpage']},{$this->pmNextPrev['start']},".e_SELF."?{$parm}.[FROM]}");
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

                $ret = varset($this->pmBlocked['user_name']);
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

                $ret = "<a href='".$url->create('user/profile/view', array('id' => $this->pmBlocked['pm_block_from'], 'name' => $this->pmBlocked['user_name']))."'>{$this->pmBlocked['user_name']}</a>";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

                $ret = "<a href='".$url->create('user/profile/view', array('id' => $this->pmBlocked['pm_block_from'], 'name' => $this->pmBlocked['user_name']))."'>{$this->pmBlocked['user_name']}</a>";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

            return "<a href='".$this->url('action/delete-blocked', array('id' => $this->pmBlocked['pm_block_from']))."'><img src='".e_PLUGIN_ABS."pm/images/mail_delete.png' title='".LAN_DELETE."' alt='".LAN_DELETE."' class='icon S16' /></a>";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

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

            $urlCompose = e107::url('pm','index','', array('query'=>array('mode'=>'send')));
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

                $exclude = (getperms('0') && deftrue('e_DEBUG')) ? false : true;
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Argument 2 (value) is 1 but \e_form::button() takes array|string defined at /code/e107_handlers/form_handler.php:3876
Open

            return e107::getForm()->button('pm_delete_selected',1,'delete',$tp->toGlyph('fa-trash').LAN_PM_53);
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Argument 1 (datestamp) is null but \convert::convert_date() takes int defined at /code/e107_handlers/date_handler.php:145
Open

            return e107::getDate()->convert_date($this->pmBlocked['pm_block_datestamp'], $parm);
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

There are no issues that match your filters.

Category
Status