e107_handlers/userclass_class.php
Consider simplifying this complex logical expression. Open
Open
if (!array_key_exists($uc_id,$this->fixed_classes)
&& ( getperms('0')
|| (
(!isset($opt_arr['matchclass']) || check_class($uc_id))
&&
Avoid too many return
statements within this method. Open
Open
if ($c['userclass_visibility'] == $classID) return FALSE;
Avoid too many return
statements within this method. Open
Open
return TRUE;
Avoid too many return
statements within this method. Open
Open
return 2; // Full edit rights - a 'normal' class
Returning type int|string
but getClassFromKey()
is declared to return bool
Open
Open
return $this->text_class_link[$text];
- Exclude checks
Argument 4 (noWhere)
is 'nowhere'
but \e_db::select()
takes bool|false
defined at /code/e107_handlers/e_db_interface.php:265
Open
Open
if($this->sql_r->field('userclass_classes','userclass_parent') && $this->sql_r->select('userclass_classes', '*', 'ORDER BY userclass_parent,userclass_name', 'nowhere')) // The order statement should give a consistent return
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
&& ( getperms('0')
- Exclude checks
Argument 1 (number)
is string
but \abs()
takes float
Open
Open
$classIndex = abs($classnum); // Handle negative class values
- Exclude checks
string
passed to foreach instead of array Open
Open
foreach ($this->class_tree[$parent]['class_children'] as $cc)
- Exclude checks
string
passed to foreach instead of array Open
Open
foreach ($this->class_tree[$our_class]['class_children'] as $cc)
- Exclude checks
Parameter $callback
has undeclared type \function
Open
Open
public function vetted_tree($treename, $callback='', $current_value='', $optlist = '', $opt_options = '')
- Exclude checks
Argument 3 (checked)
is ' checked=\'checked\''|''
but \e_form::checkbox()
takes bool|false
defined at /code/e107_handlers/form_handler.php:2685
Open
Open
return $pre.e107::getForm()->checkbox($treename.'[]', $classnum , $chk, array("id"=>$id,'label'=>$description)).$post;
- Exclude checks
Saw a token Phan may have failed to parse after '* @return integer:':
after integer,
saw ':'
Open
Open
* @return integer:
- Exclude checks
Default value for int|string
$filter
can't be false
Open
Open
public function uc_get_classlist($filter = FALSE)
- Exclude checks
Returning type array<int>|array<int></int></int>
but ucRemove()
is declared to return string
Open
Open
if ($asArray) { return $tmp; }
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if (!(getperms('4') || getperms('0'))) return;
- Exclude checks
Default value for \function|object
$callback
can't be string
Open
Open
public function vetted_tree($treename, $callback='', $current_value='', $optlist = '', $opt_options = '')
- Exclude checks
Returning type string
but getClassFromKey()
is declared to return bool
Open
Open
return $this->text_class_link[$text];
- Exclude checks
Argument 1 (number)
is string
but \abs()
takes float
Open
Open
$listIndex = abs($listnum);
- Exclude checks
Returning type array<int></int>
but ucAdd()
is declared to return string
Open
Open
if ($asArray) { return $tmp; }
- Exclude checks