e107_handlers/user_model.php
Avoid too many return
statements within this method. Open
Open
return $this;
Avoid too many return
statements within this method. Open
Open
return $this;
Assigning \e_user_extended_model
to property but \e_user->_parent_extmodel
is null
Open
Open
$this->_parent_extmodel = $this->_extended_model;
- Exclude checks
Returning type null
but getNodeId()
is declared to return int
Open
Open
return (isset($this->_name_index[$name]) ? $this->_name_index[$name] : null);
- Exclude checks
Assigning null
to property but \e_user_model->_editor
is \e_user_model
Open
Open
$this->_editor = null;
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if(getperms('0') && E107_DEBUG_LEVEL > 0)
- Exclude checks
Returning type null
but getProviderName()
is declared to return string
Open
Open
return null;
- Exclude checks
Assigning null
to property but \e_user->_extended_structure
is \e_user_extended_structure
Open
Open
$this->_extended_model = $this->_extended_structure = $this->_user_config = null;
- Exclude checks
Invalid offset "header"
of array type array{attachments:''}|array{bcc:''}|array{body:''}|array{cc:''}|array{subject:''}
Open
Open
if(!varset($EMAIL_TEMPLATE['signup']['header']))
- Exclude checks
Invalid offset "footer"
of array type array{attachments:''}|array{bcc:''}|array{body:''}|array{cc:''}|array{subject:''}
Open
Open
if(!varset($EMAIL_TEMPLATE['signup']['footer']))
- Exclude checks
Parameter $noEditorCheck
has undeclared type \boolen
(Did you mean bool) Open
Open
public function save($noEditorCheck = false, $force = false, $session = false)
- Exclude checks
Cannot assign void return value Open
Open
$ret['CORE_FIELDS'] = parent::saveDebug(true, $undo);
- Exclude checks
Returning type array|array<int>|array<int>|array<int>|array<int>|array<int>|array<int>|array<int>|array<int>|array<int>|int[]</int></int></int></int></int></int></int></int></int>
but getClassList()
is declared to return string
Open
Open
return ($toString ? implode(',', $this->_class_list) : $this->_class_list);
- Exclude checks
Call with 2 arg(s) to \e_user::_load()
which only takes 1 arg(s) defined at /code/e107_handlers/user_model.php:2298
Open
Open
$this->_load(1, $force);
- Exclude checks
Assigning null
to property but \e_user_model->_user_config
is \e_user_pref
Open
Open
$this->_user_config = null;
- Exclude checks
Declaration of function _onLoad(\e_user_extended_structure_model $model) : \e_tree_model
should be compatible with function _onLoad(\e_model $node) : \e_tree_model
defined in /code/e107_handlers/model_class.php:3425
Open
Open
protected function _onLoad($model)
- Exclude checks
Reference to undeclared property \e107Email->template
Open
Open
$mailer->template = $eml['template'];
- Exclude checks
Argument 2 (value)
is int
but \cookie()
takes string
defined at /code/class2.php:1786
Open
Open
cookie($key, $user_id);
- Exclude checks
Assigning \e_user_extended_structure
to property but \e_user->_parent_extstruct
is null
Open
Open
$this->_parent_extstruct = $this->_extended_structure;
- Exclude checks
Returning type null
but getNodeByName()
is declared to return \e_model|\e_user_extended_structure_model
Open
Open
return null;
- Exclude checks
Assigning \e_user_model
to property but \e_user->_parent_model
is null
Open
Open
$this->_parent_model = new e_user_model($this->getData());
- Exclude checks
Assigning null
to property but \e_user_model->_extended_structure
is \e_user_extended_structure
Open
Open
$this->_extended_structure = null;
- Exclude checks
Returning type 0
but save()
is declared to return bool
Open
Open
return 0;
- Exclude checks
Property \e_user_model->_extended_structure
has undeclared type \e_user_extended_structure
(Did you mean class \e_user_extended_structure_tree or class \user_extended_struct_ui) Open
Open
protected $_extended_structure = null;
- Exclude checks
Argument 2 (str)
is null
but \explode()
takes string
Open
Open
list($uid, $upw) = explode('.', $this->_session_data);
- Exclude checks
Argument 1 (prefix)
is int
but \uniqid()
takes string
Open
Open
return md5(uniqid(rand(), 1));
- Exclude checks
Default value for string
$uchallange
can't be false
Open
Open
final public function login($uname, $upass_plain, $uauto = false, $uchallange = false, $noredirect = true)
- Exclude checks
Assigning null
to property but \e_user->_extended_model
is \e_user_extended_model
Open
Open
$this->_extended_model = $this->_extended_structure = $this->_user_config = null;
- Exclude checks
Method \e_user_model::load
is declared to return \e_front_model
but has no return value Open
Open
public function load($user_id = 0, $force = false)
- Exclude checks
Assigning null
to property but \e_user_model->_extended_model
is \e_user_extended_model
Open
Open
$this->_extended_model = null;
- Exclude checks
When appending to a value of type string,
found an array access index of type 'signup',
but expected the index to be of type int
Open
Open
$EMAIL_TEMPLATE['signup']['subject'] = $SIGNUPEMAIL_SUBJECT;
- Exclude checks
Argument 3 (default)
is false
but \e107::pref()
takes null
defined at /code/e107_handlers/e107_class.php:4016
Open
Open
$pass_show = e107::pref('core','user_reg_secureveri', false);
- Exclude checks
Call to method getData
on non-class type null
Open
Open
$this->setData($this->_parent_model->getData());
- Exclude checks
Cannot assign void return value Open
Open
$ret['EXTENDED_FIELDS'] = $this->_extended_model->saveDebug(true, $undo);
- Exclude checks
Argument 4 (response)
is false
but \userlogin::login()
takes string
defined at /code/e107_handlers/login.php:84
Open
Open
$userlogin->login($xup, '', 'provider', false, true);
- Exclude checks
Assigning null
to property but \e_user->_user_config
is \e_user_pref
Open
Open
$this->_user_config = $this->_parent_config;
- Exclude checks
Call with 2 arg(s) to \e_user::_load()
which only takes 1 arg(s) defined at /code/e107_handlers/user_model.php:2298
Open
Open
$udata = $this->_load($uid, $force);
- Exclude checks
Assigning true
to property but \e_user_extended_structure_tree->_cache_force
is \boolen
Open
Open
protected $_cache_force = true;
- Exclude checks
Property \e_user_extended_structure_tree->_cache_force
has undeclared type \boolen
(Did you mean bool) Open
Open
protected $_cache_force = true;
- Exclude checks
Call to undeclared method \e_model::apply
Open
Open
$this->removeData()->apply();
- Exclude checks
Argument 2 (more_entropy)
is 1
but \uniqid()
takes bool
Open
Open
return md5(uniqid(rand(), 1));
- Exclude checks
Assigning null
to property but \e_user->_user_config
is \e_user_pref
Open
Open
$this->_extended_model = $this->_extended_structure = $this->_user_config = null;
- Exclude checks