e107_handlers/user_extended_class.php
Method user_extended_modify
has 12 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
function user_extended_modify($id, $name, $text, $type, $parms, $values, $default, $required, $read, $write, $applicable, $parent)
Method user_extended_add
has 12 arguments (exceeds 7 allowed). Consider refactoring. Open
Open
function user_extended_add($name, $text='', $type='', $parms='', $values='', $default='', $required='', $read='', $write='', $applicable='', $order='', $parent='')
Consider simplifying this complex logical expression. Open
Open
if (($category == 0) || ($isSignup && (int) $this->catDefinitions[$category]['user_extended_struct_applicable'] === (int) e_UC_MEMBER && (int) $this->catDefinitions[$category]['user_extended_struct_write'] === (int) e_UC_MEMBER) || (check_class($this->catDefinitions[$category]['user_extended_struct_applicable']) && check_class($this->catDefinitions[$category]['user_extended_struct_write'])))
{ // Category applicable to user
if (($isSignup && (int) $defs['user_extended_struct_applicable'] === (int) e_UC_MEMBER && (int) $defs['user_extended_struct_write'] === (int) e_UC_MEMBER) || (check_class($defs['user_extended_struct_applicable']) && check_class($defs['user_extended_struct_write'])))
{ // User can also update field
Avoid too many return
statements within this method. Open
Open
return "<span class='label label-danger'>Failed to load</span>";
Avoid too many return
statements within this method. Open
Open
return $ret;
Avoid too many return
statements within this method. Open
Open
return e107::getForm()->text($fname,$curval,10,$opts);
Avoid too many return
statements within this method. Open
Open
return "<span class='label label-danger'>Failed to load (misconfigured. See debug for more info.)</span>";
Avoid too many return
statements within this method. Open
Open
return $ret;
Avoid too many return
statements within this method. Open
Open
return "<textarea id='{$fid}' {$include} name='{$fname}' {$required} {$title}>{$curval}</textarea>";
Avoid too many return
statements within this method. Open
Open
return e107::getForm()->datepicker($fname,$curval,$opts);
Avoid too many return
statements within this method. Open
Open
return "Missing Extended Class";
Avoid too many return
statements within this method. Open
Open
return $ret;
Avoid too many return
statements within this method. Open
Open
return $ret;
Avoid too many return
statements within this method. Open
Open
return e107::getForm()->checkboxes($fname.'[]',$choices, $curval, array('useLabelValues'=>1));
Avoid too many return
statements within this method. Open
Open
return e107::getForm()->bbarea($fname, $curval);
Reference to undeclared constant \EUF_PREDEFINED
Open
Open
'list' => EUF_PREDEFINED,
- Exclude checks
Reference to undeclared constant \EUF_ADDON
Open
Open
'addon' => EUF_ADDON,
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
case EUF_DATE :
- Exclude checks
Reference to undeclared constant \EUF_RADIO
Open
Open
case EUF_RADIO :
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
case EUF_DB_FIELD :
- Exclude checks
Reference to undeclared constant \EUF_ADDON
Open
Open
case EUF_ADDON:
- Exclude checks
Call to undeclared method \e_db::db_getList
Open
Open
$choiceList = $sql->db_getList('ALL', false);
- Exclude checks
Reference to undeclared constant \EUF_LANGUAGE
Open
Open
'language' => EUF_LANGUAGE,
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
case EUF_DATE :
- Exclude checks
Reference to undeclared constant \EUF_RADIO
Open
Open
case EUF_RADIO :
- Exclude checks
Reference to undeclared constant \EUF_INTEGER
Open
Open
case EUF_INTEGER :
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
'date' => EUF_DATE,
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
case EUF_CHECKBOX :
- Exclude checks
Reference to undeclared constant \EUF_TEXTAREA
Open
Open
case EUF_TEXTAREA :
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
case EUF_RICHTEXTAREA :
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
case EUF_DATE :
- Exclude checks
Reference to undeclared constant \EUF_COUNTRY
Open
Open
case EUF_COUNTRY :
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
case EUF_DATE :
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
if($type != EUF_DB_FIELD && ($type != EUF_TEXTAREA) && ($type != EUF_RICHTEXTAREA) && ($type != EUF_CHECKBOX) && !empty($default))
- Exclude checks
Reference to undeclared constant \EUF_DROPDOWN
Open
Open
'dropdown' => EUF_DROPDOWN,
- Exclude checks
Reference to undeclared constant \EUF_TEXTAREA
Open
Open
case EUF_TEXTAREA:
- Exclude checks
Assigning array|array{default:0,name:mixed,text:string,type:mixed,values:mixed,required:mixed,read:mixed,write:mixed,applicable:mixed,include_text:mixed,parms:mixed,regex:mixed}[]|array{name:mixed,text:string,type:mixed,values:mixed,default:mixed,required:mixed,read:mixed,write:mixed,applicable:mixed,include_text:mixed,parms:mixed,regex:mixed}[]|array{version:string}
to property but \e107_user_extended->extended_xml
is false
Open
Open
$this->extended_xml = $ret;
- Exclude checks
Reference to undeclared constant \EUF_PREFIELD
Open
Open
'predefined' => EUF_PREFIELD, // DON'T USE IT IN PREDEFINED FIELD XML!!! Used in plugin installation routine.
- Exclude checks
Reference to undeclared constant \EUF_DROPDOWN
Open
Open
case EUF_DROPDOWN : //dropdown
- Exclude checks
Reference to undeclared constant \EUF_DROPDOWN
Open
Open
case EUF_DROPDOWN : //dropdown
- Exclude checks
Reference to undeclared constant \EUF_PREDEFINED
Open
Open
case EUF_PREDEFINED : // predefined list, shown in dropdown
- Exclude checks
Reference to undeclared constant \EUF_TEXTAREA
Open
Open
case EUF_TEXTAREA : //textarea
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
'checkbox' => EUF_CHECKBOX,
- Exclude checks
Reference to undeclared constant \EUF_COUNTRY
Open
Open
'country' => EUF_COUNTRY,
- Exclude checks
Reference to undeclared constant \EUF_PREFIELD
Open
Open
case EUF_PREFIELD:
- Exclude checks
Reference to undeclared constant \EUF_ADDON
Open
Open
case EUF_ADDON:
- Exclude checks
Reference to undeclared constant \EUF_LANGUAGE
Open
Open
case EUF_LANGUAGE :
- Exclude checks
When fetching an array index from a value of type string,
found an array index of type 'version',
but expected the index to be of type int
Open
Open
$ret['version'] = $data['@attributes']['version'];
- Exclude checks
Variable $info
is undeclared Open
Open
unset($info);
- Exclude checks
Reference to undeclared constant \EUF_PREDEFINED
Open
Open
case EUF_PREDEFINED :
- Exclude checks
Reference to undeclared constant \EUF_PREDEFINED
Open
Open
case EUF_PREDEFINED :
- Exclude checks
Reference to undeclared constant \EUF_TEXTAREA
Open
Open
case EUF_TEXTAREA :
- Exclude checks
Reference to undeclared constant \EUF_INTEGER
Open
Open
case EUF_INTEGER :
- Exclude checks
Reference to undeclared constant \EUF_COUNTRY
Open
Open
case EUF_COUNTRY:
- Exclude checks
Reference to undeclared constant \EUF_TEXTAREA
Open
Open
case EUF_TEXTAREA : //textarea
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param string read|write|type|values|parms|applicable':
after string,
did not see an element name (will guess based on comment order) Open
Open
* @param string read|write|type|values|parms|applicable
- Exclude checks
Reference to undeclared constant \EUF_INTEGER
Open
Open
case EUF_INTEGER :
- Exclude checks
Reference to undeclared constant \EUF_TEXTAREA
Open
Open
if($type != EUF_DB_FIELD && ($type != EUF_TEXTAREA) && ($type != EUF_RICHTEXTAREA) && ($type != EUF_CHECKBOX) && !empty($default))
- Exclude checks
array to string
conversion Open
Open
if($this->user_extended_field_exist($name) && $sql->field('user_extended', 'user_'.$name)!==false)
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
case EUF_DB_FIELD : //db_field
- Exclude checks
When fetching an array index from a value of type false|string,
found an array index of type 'item',
but expected the index to be of type int
Open
Open
foreach($data['item'] as $item)
- Exclude checks
string
passed to foreach instead of array Open
Open
foreach($data['item'] as $item)
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
'richtextarea' => EUF_RICHTEXTAREA,
- Exclude checks
Reference to undeclared constant \EUF_ADDON
Open
Open
case EUF_ADDON :
- Exclude checks
Reference to undeclared constant \EUF_TEXT
Open
Open
case EUF_TEXT :
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
case EUF_CHECKBOX :
- Exclude checks
Reference to undeclared constant \EUF_RADIO
Open
Open
case EUF_RADIO : //radio
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
case EUF_RICHTEXTAREA : // rich textarea (using WYSIWYG editor)
- Exclude checks
Reference to undeclared constant \EUF_PREDEFINED
Open
Open
case EUF_PREDEFINED :
- Exclude checks
Reference to undeclared constant \EUF_ADDON
Open
Open
if($type === EUF_ADDON && !empty($fieldType))
- Exclude checks
Reference to undeclared constant \EUF_ADDON
Open
Open
case EUF_ADDON:
- Exclude checks
Reference to undeclared constant \EUF_RADIO
Open
Open
case EUF_RADIO : //radio
- Exclude checks
Reference to undeclared constant \EUF_INTEGER
Open
Open
'integer' => EUF_INTEGER,
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
case EUF_DB_FIELD :
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
case EUF_RICHTEXTAREA :
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param string read|write|applicable':
after string,
did not see an element name (will guess based on comment order) Open
Open
* @param string read|write|applicable
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
case EUF_DATE : //date
- Exclude checks
Reference to undeclared constant \EUF_RADIO
Open
Open
case EUF_RADIO :
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
case EUF_DB_FIELD : //db_field
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
case EUF_RICHTEXTAREA :
- Exclude checks
Reference to undeclared constant \EUF_ADDON
Open
Open
'user_extended_struct_values' => ($type === EUF_ADDON) ? (string) $values : (string) $tp -> toDB($values, true),
- Exclude checks
Reference to undeclared constant \EUF_INTEGER
Open
Open
case EUF_INTEGER : //integer
- Exclude checks
Reference to undeclared constant \EUF_TEXTAREA
Open
Open
'textarea' => EUF_TEXTAREA,
- Exclude checks
Reference to undeclared constant \EUF_PREDEFINED
Open
Open
case EUF_PREDEFINED : // predefined list, shown in dropdown
- Exclude checks
Reference to undeclared constant \EUF_LANGUAGE
Open
Open
case EUF_LANGUAGE : // language
- Exclude checks
Reference to undeclared constant \EUF_DROPDOWN
Open
Open
case EUF_DROPDOWN :
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
if($type != EUF_DB_FIELD && ($type != EUF_TEXTAREA) && ($type != EUF_RICHTEXTAREA) && ($type != EUF_CHECKBOX) && !empty($default))
- Exclude checks
Returning type null
but renderElement()
is declared to return array|string
Open
Open
return null;
- Exclude checks
Reference to undeclared constant \EUF_COUNTRY
Open
Open
case EUF_COUNTRY:
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
case EUF_CHECKBOX : //checkboxes
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
case EUF_RICHTEXTAREA : // rich textarea (using WYSIWYG editor)
- Exclude checks
Reference to undeclared constant \EUF_RADIO
Open
Open
'radio' => EUF_RADIO,
- Exclude checks
Reference to undeclared constant \EUF_LANGUAGE
Open
Open
case EUF_LANGUAGE :
- Exclude checks
Reference to undeclared constant \EUF_INTEGER
Open
Open
case EUF_INTEGER : //integer
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
case EUF_DATE : //date
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
case EUF_CHECKBOX :
- Exclude checks
Reference to undeclared constant \EUF_PREFIELD
Open
Open
case EUF_PREFIELD: // FIXME Predefined field - this should be assignable from XML typically.
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
if($type != EUF_DB_FIELD && ($type != EUF_TEXTAREA) && ($type != EUF_RICHTEXTAREA) && ($type != EUF_CHECKBOX) && !empty($default))
- Exclude checks
Reference to undeclared constant \EUF_TEXT
Open
Open
'text' => EUF_TEXT,
- Exclude checks
Reference to undeclared constant \EUF_TEXT
Open
Open
case EUF_TEXT : //textbox
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
'db field' => EUF_DB_FIELD,
- Exclude checks
Reference to undeclared constant \EUF_LANGUAGE
Open
Open
case EUF_LANGUAGE : // language
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
case EUF_DB_FIELD :
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
case EUF_CHECKBOX : //checkboxes
- Exclude checks
Call to undeclared method \e_db::db_getList
Open
Open
$ret = $sql->db_getList();
- Exclude checks
array to string
conversion Open
Open
trigger_error("Extended User Field ".$name." doesn't exist", E_USER_NOTICE);
- Exclude checks
Returning type ?string
but renderElement()
is declared to return array|string
Open
Open
return $ret;
- Exclude checks
Variable $ret
was undeclared, but array fields are being added to it. Open
Open
$ret['version'] = $data['@attributes']['version'];
- Exclude checks
Reference to undeclared constant \EUF_DROPDOWN
Open
Open
case EUF_DROPDOWN :
- Exclude checks
Reference to undeclared constant \EUF_TEXT
Open
Open
case EUF_TEXT : //textbox
- Exclude checks
Reference to undeclared constant \EUF_TEXT
Open
Open
case EUF_TEXT :
- Exclude checks
Reference to undeclared constant \EUF_CATEGORY
Open
Open
case EUF_CATEGORY:
- Exclude checks
Reference to undeclared constant \EUF_TEXT
Open
Open
case EUF_TEXT :
- Exclude checks
Reference to undeclared constant \EUF_LANGUAGE
Open
Open
case EUF_LANGUAGE :
- Exclude checks
Reference to undeclared constant \EUF_DROPDOWN
Open
Open
case EUF_DROPDOWN :
- Exclude checks
Argument 4 (options)
is array{label:mixed,required:bool}
but \e_form::radio()
takes null
defined at /code/e107_handlers/form_handler.php:2942
Open
Open
$ret .= $frm->radio($fname,$val,($curval == $val),array('label'=>$label, 'required'=> !empty($required)));
- Exclude checks
When fetching an array index from a value of type false|string,
found an array index of type '\x40attributes',
but expected the index to be of type int
Open
Open
$ret['version'] = $data['@attributes']['version'];
- Exclude checks
Reference to undeclared constant \EUF_RADIO
Open
Open
case EUF_RADIO:
- Exclude checks
Returning type null
but renderValue()
is declared to return array|string
Open
Open
return null;
- Exclude checks
Reference to undeclared constant \EUF_PREDEFINED
Open
Open
case EUF_PREDEFINED : // Predefined field - have to look up display string in relevant file
- Exclude checks
Unused result of a binary '.'
operator Open
Open
"Couldn't find extended field class: ".$table;
- Exclude checks
Reference to undeclared constant \EUF_DB_FIELD
Open
Open
case EUF_DB_FIELD : // check for db_lookup type
- Exclude checks
Returning type null
but renderValue()
is declared to return array|string
Open
Open
return null;
- Exclude checks
Call to undeclared method \e_db::escape
Open
Open
$newvalue = "'".$sql->escape($newvalue)."'";
- Exclude checks
Reference to undeclared constant \EUF_CHECKBOX
Open
Open
case EUF_CHECKBOX:
- Exclude checks
Saw a token Phan may have failed to parse after '* @return boolean;':
after boolean,
saw ';'
Open
Open
* @return boolean;
- Exclude checks
Reference to undeclared constant \EUF_DATE
Open
Open
case EUF_DATE : //check for 0000-00-00 in date field
- Exclude checks
Reference to undeclared constant \EUF_COUNTRY
Open
Open
case EUF_COUNTRY:
- Exclude checks
Reference to undeclared constant \EUF_RICHTEXTAREA
Open
Open
case EUF_RICHTEXTAREA:
- Exclude checks
Returning type null
but renderValue()
is declared to return array|string
Open
Open
return null;
- Exclude checks