e107_handlers/theme_handler.php
Consider simplifying this complex logical expression. Open
Open
if($skinText = self::renderSkin($theme, $mode, $pref))
{
$text .= $skinText;
}
elseif(!empty($theme['multipleStylesheets']) && $mode && !empty($theme['css']) && self::RENDER_SITEPREFS === $mode)
Invalid offset "layouts"
of array type array{@attributes:array{default:0|1}}|array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{category:string}|array{compatibility:''|array|bool|string}|array{csscompliant:mixed}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{html:bool}|array{info:mixed}|array{name:mixed}|array{preferences:array}|array{preview:mixed,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{preview:mixed}|array{preview?:null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{releaseUrl:mixed}|array{themePrefs:mixed,preview:mixed|null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed,thumbnail:''|mixed,html:bool}|array{thumbnail:''|mixed}|array{version:mixed}|array{website:mixed}|array{xhtmlcompliant:mixed}|false|string
Open
Open
foreach($vars['layouts']['layout'] as $k=>$val)
- Exclude checks
Variable $themeArray
was undeclared, but array fields are being added to it. Open
Open
$themeArray['name'] = varset($match[3]);
- Exclude checks
Invalid offset "author"
of array type array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{compatibility:''|array|bool|string}|array{date:mixed}|array{email:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|array{website:mixed}|false|string
Open
Open
$vars['author'] = varset($vars['author']['@attributes']['name']);
- Exclude checks
Argument 4 (options)
is 'min-size=20000'
but \e_media::import()
takes array
defined at /code/e107_handlers/media_class.php:81
Open
Open
$med->import('_common_image', e_THEME.$name, '', 'min-size=20000');
- Exclude checks
string
passed to foreach instead of array Open
Open
foreach($xmlArray['prefs']['core'] as $key=>$val)
- Exclude checks
When fetching an array index from a value of type array<string>,</string>
found an array index of type ?string,
but expected the index to be of the non-nullable type string
Open
Open
return isset($this->_data[$this->_current][$var]) ? $this->_data[$this->_current][$var] : false;
- Exclude checks
Invalid offset "author"
of array type array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{compatibility:''|array|bool|string}|array{date:mixed}|array{email:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|false|string
Open
Open
$vars['website'] = varset($vars['author']['@attributes']['url']);
- Exclude checks
Invalid offset "description"
of array type array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{compatibility:''|array|bool|string}|array{date:mixed}|array{email:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|array{website:mixed}|false|string
Open
Open
$vars['info'] = !empty($vars['description']['@value']) ? $vars['description']['@value'] : varset($vars['description']);
- Exclude checks
Returning type false
but themeUpload()
is declared to return string
Open
Open
return FALSE;
- Exclude checks
Returning type false
but getScope()
is declared to return array
Open
Open
return false;
- Exclude checks
Suspicious array access to ?mixed
Open
Open
if($name === 'bootstrap' && ((int) $var['version'] > 3)) // quick fix.
- Exclude checks
Variable $lays
was undeclared, but array fields are being added to it. Open
Open
$lays['legacyDefault']['@attributes'] = array('title'=>'Default',
- Exclude checks
Invalid offset "author"
of array type array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{compatibility:''|array|bool|string}|array{date:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|false|string
Open
Open
$vars['email'] = varset($vars['author']['@attributes']['email']);
- Exclude checks
Argument 1 (ver1)
is float
but \version_compare()
takes string
Open
Open
$compat = (version_compare(1.9,$theme['compatibility'],'<')) ? "<span class='label label-".$compatLabelType."'>".$theme['compatibility']."</span><span class='text-".$compatLabelType."'> ".$compatLabel."</span>": vartrue($theme['compatibility'],'1.0');
- Exclude checks
Assigning false
to property but \themeHandler->themeConfigObj
is \theme_config|object
Open
Open
$this->themeConfigObj = false;
- Exclude checks
Invalid offset "caption"
of array type array{title:'Bootswatch Styles:',type:'dropdown',writeParms:array{optArray:array{cerulean:'Cerulean',cosmo:'Cosmo',cyborg:'Cyborg',darkly:'Darkly',flatly:'Flatly',journal:'Journal',lumen:'Lumen',paper:'Paper',readable:'Readable',sandstone:'Sandstone',simplex:'Simplex',slate:'Slate',spacelab:'Spacelab',superhero:'Superhero',united:'United',yeti:'Yeti'},post:' \x3ca class=\'btn btn-default btn-secondary e-modal\' data-modal-caption="Use the \'Themes\' menu to view the selection." href=\'http://bootswatch.com/default/\'\x3ePreview\x3c/a\x3e',default:'Default'}}|array{title:'Branding:',type:'dropdown',writeParms:array{optArray:array{sitename:'Site Name',logo:'Logo',sitenamelogo:'Logo & Site Name'}}}|array{title:'Navbar Alignment:',type:'dropdown',writeParms:array{optArray:array{left:'left',right:'right'}}}|array{title:'Signup/Login Placement:',type:'dropdown',writeParms:array{optArray:array{top:'top',bottom:'bottom'}}}
Open
Open
$text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."<div class='field-help'>".$val['help']."</div></td></tr>";
- Exclude checks
Call to undeclared method process
in callable. Possible object type(s) for that method are \theme_config|object
Open
Open
return call_user_func(array(&$this->themeConfigObj, 'process')); //pre v2.1.4
- Exclude checks
Variable $ar
was undeclared, but array fields are being added to it. Open
Open
$ar[$val['menu_location']][] = $val['menu_name'];
- Exclude checks
Reference to undeclared constant \ADMIN_INFO_ICON
Open
Open
<th>".TPVLAN_56." <a href='#' class='e-tip' title=\"".TPVLAN_96."\">".ADMIN_INFO_ICON."</a></th>
- Exclude checks
When fetching an array index from a value of type false|string,
found an array index of type 'database',
but expected the index to be of type int
Open
Open
foreach($xmlArray['database']['dbTable'] as $key=>$val)
- Exclude checks
Argument 3 (omit)
is array{0:'e_.*'}
but \e_file::get_files()
takes string
defined at /code/e107_handlers/file_class.php:245
Open
Open
$handle2 = e107::getFile()->get_files(e_THEME.$file."/", "\.php|\.css|\.xml|preview\.jpg|preview\.png", $reject, 1);
- Exclude checks
Invalid offset "@attributes"
of array type array{date:mixed}|array{name:mixed}|array{version:mixed}|false|string
Open
Open
$vars['compatibility'] = !empty($vars['@attributes']['compatibility']) ? $tp->filter($vars['@attributes']['compatibility'], 'version') : '';
- Exclude checks
Suspicious type null
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."<div class='field-help'>".$val['help']."</div></td></tr>";
- Exclude checks
Variable $pref
was undeclared, but array fields are being added to it. Open
Open
$layout = $pref['sitetheme_layouts'] = is_array($this->themeArray[$name]['layouts']) ? $this->themeArray[$name]['layouts'] : array();
- Exclude checks
Invalid offset "compliance"
of array type array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{category:string}|array{compatibility:''|array|bool|string}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{info:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|array{website:mixed}|array{xhtmlcompliant:mixed}|false|string
Open
Open
$vars['csscompliant'] = varset($vars['compliance']['@attributes']['css']);
- Exclude checks
Invalid offset "libraries"
of array type array{@attributes:array{default:0|1}}|array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{category:string}|array{compatibility:''|array|bool|string}|array{csscompliant:mixed}|array{custompages:array|array<int>[]|array{}}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{html:bool}|array{info:mixed}|array{layouts:array|array{}}|array{legacy:false}|array{library:array{}}|array{name:mixed}|array{path:string}|array{preferences:array}|array{preview:mixed,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{preview:mixed}|array{preview?:null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{releaseUrl:mixed}|array{themePrefs:mixed,preview:mixed|null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed,thumbnail:''|mixed,html:bool}|array{thumbnail:''|mixed}|array{version:mixed}|array{website:mixed}|array{xhtmlcompliant:mixed}|false|string</int>
Open
Open
if(!empty($vars['libraries']['library']))
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param string [optional] $categoryfromXML':
after string,
did not see an element name (will guess based on comment order) Open
Open
function themeUpload()
- Exclude checks
Reference to undeclared constant \ADMIN_TRUE_ICON
Open
Open
$itext .= !empty($val['menuPresets']) ? ADMIN_TRUE_ICON : " ";
- Exclude checks
Argument 3 (variant)
is null
but \e107::library()
takes string
defined at /code/e107_handlers/e107_class.php:2356
Open
Open
$ret[] = e107::library('files', $name, null, $files);
- Exclude checks
Invalid offset "help"
of array type array{title:'Bootswatch Styles:',type:'dropdown',writeParms:array{optArray:array{cerulean:'Cerulean',cosmo:'Cosmo',cyborg:'Cyborg',darkly:'Darkly',flatly:'Flatly',journal:'Journal',lumen:'Lumen',paper:'Paper',readable:'Readable',sandstone:'Sandstone',simplex:'Simplex',slate:'Slate',spacelab:'Spacelab',superhero:'Superhero',united:'United',yeti:'Yeti'},post:' \x3ca class=\'btn btn-default btn-secondary e-modal\' data-modal-caption="Use the \'Themes\' menu to view the selection." href=\'http://bootswatch.com/default/\'\x3ePreview\x3c/a\x3e',default:'Default'}}|array{title:'Branding:',type:'dropdown',writeParms:array{optArray:array{sitename:'Site Name',logo:'Logo',sitenamelogo:'Logo & Site Name'}}}|array{title:'Navbar Alignment:',type:'dropdown',writeParms:array{optArray:array{left:'left',right:'right'}}}|array{title:'Signup/Login Placement:',type:'dropdown',writeParms:array{optArray:array{top:'top',bottom:'bottom'}}}
Open
Open
$text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."<div class='field-help'>".$val['help']."</div></td></tr>";
- Exclude checks
Argument 1 (mode)
is false
but \e_theme::getList()
takes null|string
defined at /code/e107_handlers/theme_handler.php:709
Open
Open
return e107::getTheme()->getList($mode);
- Exclude checks
Argument 3 (type)
is null
but \e_form::userclass()
takes string
defined at /code/e107_handlers/form_handler.php:3394
Open
Open
$itext .= e107::getForm()->userclass('layoutUserclass['.$key.']',null, null, array('options'=>'public,member,admin,classes,no-excludes','size'=>'xxlarge'));
- Exclude checks
Argument 2 (curval)
is null
but \e_form::userclass()
takes int
defined at /code/e107_handlers/form_handler.php:3394
Open
Open
$itext .= e107::getForm()->userclass('layoutUserclass['.$key.']',null, null, array('options'=>'public,member,admin,classes,no-excludes','size'=>'xxlarge'));
- Exclude checks
Reference to undeclared constant \ADMIN_TRUE_ICON
Open
Open
$text .= $plug." ".ADMIN_TRUE_ICON;
- Exclude checks
When fetching an array index from a value of type string,
found an array index of type 'dbTable',
but expected the index to be of type int
Open
Open
foreach($xmlArray['database']['dbTable'] as $key=>$val)
- Exclude checks
Suspicious array access to ?mixed
Open
Open
elseif($name === 'fontawesome' && ((int) $var['version'] > 4)) // quick fix.
- Exclude checks
Suspicious array access to ?mixed
Open
Open
$name .= (string) $var['version'];
- Exclude checks
Argument 3 (variant)
is null
but \e107::library()
takes string
defined at /code/e107_handlers/e107_class.php:2356
Open
Open
e107::library('load', $name, null, $files);
- Exclude checks
Invalid offset "@attributes"
of array type array{name:mixed}|array{version:mixed}|false|string
Open
Open
$vars['date'] = varset($vars['@attributes']['date']);
- Exclude checks
Invalid offset "glyphicons"
of array type array{@attributes:array{default:0|1}}|array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{category:string}|array{compatibility:''|array|bool|string}|array{css:array<int>}|array{css:array{}}|array{csscompliant:mixed}|array{custompages:array|array<int>[]|array{}}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{glyphs:array{}}|array{html:bool}|array{info:mixed}|array{layouts:array|array{}}|array{legacy:false}|array{library:array[]}|array{library:array{}}|array{library:}|array{name:mixed}|array{path:string}|array{preferences:array}|array{preview:mixed,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{preview:mixed|null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed,thumbnail:''|mixed,html:bool,themePrefs:mixed,preferences:array,layouts:array|array{},path:string,custompages:array|array<int>[]|array{},legacy:false,library:array[]|array{},css:array{}}|array{preview:mixed|null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed,thumbnail:''|mixed,html:bool,themePrefs:mixed,preferences:array,layouts:array|array{},path:string,custompages:array|array<int>[]|array{},legacy:false,library:array{}}|array{preview:mixed}|array{preview?:null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{releaseUrl:mixed}|array{themePrefs:mixed,preview:mixed|null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed,thumbnail:''|mixed,html:bool}|array{thumbnail:''|mixed}|array{version:mixed}|array{website:mixed}|array{xhtmlcompliant:mixed}|false|string</int></int></int></int>
Open
Open
if(!empty($vars['glyphicons']['glyph']))
- Exclude checks
Returning type void
but themeUpload()
is declared to return string
Open
Open
return;
- Exclude checks
string
passed to foreach instead of array Open
Open
foreach($xmlArray['database']['dbTable'] as $key=>$val)
- Exclude checks
When fetching an array index from a value of type string,
found an array index of type 'prefs',
but expected the index to be of type int
Open
Open
foreach($xmlArray['prefs']['core'] as $key=>$val)
- Exclude checks
Saw an @param annotation for value,
but it was not found in the param list of function renderSkin(array $theme, string $mode, $pref) : array
Open
Open
* @param mixed $value
- Exclude checks
Returning type string
but renderSkin()
is declared to return array
Open
Open
return $text;
- Exclude checks
When appending to a value of type false|string,
found an array access index of type 'name',
but expected the index to be of type int
Open
Open
$vars['name'] = varset($vars['@attributes']['name']);
- Exclude checks
When fetching an array index from a value of type string,
found an array index of type 'name',
but expected the index to be of type int
Open
Open
$vars['name'] = varset($vars['@attributes']['name']);
- Exclude checks
Invalid offset "screenshots"
of array type array{@attributes:array{default:0|1}}|array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{category:string}|array{compatibility:''|array|bool|string}|array{csscompliant:mixed}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{info:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|array{website:mixed}|array{xhtmlcompliant:mixed}|false|string
Open
Open
$vars['preview'] = varset($vars['screenshots']['image']);
- Exclude checks
Suspicious type array|bool
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$ret['css'][] = '{e_THEME}'.$this->get('path').'/'.$file;
- Exclude checks
Returning type int
but get()
is declared to return array|bool
Open
Open
return isset($this->_data[$this->_current][$var]) ? $this->_data[$this->_current][$var] : false;
- Exclude checks
Invalid offset "help"
of array type array{multilan:mixed,title:'Bootswatch Styles:'|'Branding:'|'Navbar Alignment:'|'Signup/Login Placement:',type:'dropdown',writeParms:array{optArray:array{cerulean:'Cerulean',cosmo:'Cosmo',cyborg:'Cyborg',darkly:'Darkly',flatly:'Flatly',journal:'Journal',lumen:'Lumen',paper:'Paper',readable:'Readable',sandstone:'Sandstone',simplex:'Simplex',slate:'Slate',spacelab:'Spacelab',superhero:'Superhero',united:'United',yeti:'Yeti'},post:' \x3ca class=\'btn btn-default btn-secondary e-modal\' data-modal-caption="Use the \'Themes\' menu to view the selection." href=\'http://bootswatch.com/default/\'\x3ePreview\x3c/a\x3e',default:'Default'}|array{optArray:array{left:'left',right:'right'}}|array{optArray:array{sitename:'Site Name',logo:'Logo',sitenamelogo:'Logo & Site Name'}}|array{optArray:array{top:'top',bottom:'bottom'}}}|array{title:'Bootswatch Styles:',type:'dropdown',writeParms:array{optArray:array{cerulean:'Cerulean',cosmo:'Cosmo',cyborg:'Cyborg',darkly:'Darkly',flatly:'Flatly',journal:'Journal',lumen:'Lumen',paper:'Paper',readable:'Readable',sandstone:'Sandstone',simplex:'Simplex',slate:'Slate',spacelab:'Spacelab',superhero:'Superhero',united:'United',yeti:'Yeti'},post:' \x3ca class=\'btn btn-default btn-secondary e-modal\' data-modal-caption="Use the \'Themes\' menu to view the selection." href=\'http://bootswatch.com/default/\'\x3ePreview\x3c/a\x3e',default:'Default'}}|array{title:'Branding:',type:'dropdown',writeParms:array{optArray:array{sitename:'Site Name',logo:'Logo',sitenamelogo:'Logo & Site Name'}}}|array{title:'Navbar Alignment:',type:'dropdown',writeParms:array{optArray:array{left:'left',right:'right'}}}|array{title:'Signup/Login Placement:',type:'dropdown',writeParms:array{optArray:array{top:'top',bottom:'bottom'}}}
Open
Open
$text .= "<tr><td><b>".$val['title']."</b>:</td><td class='".$tdClass."' colspan='2'>".$frm->renderElement($field, varset($value[$field]), $val)."<div class='field-help'>".varset($val['help'])."</div></td></tr>";
- Exclude checks
Suspicious array access to ?mixed
Open
Open
$name .= (string) $var['version'];
- Exclude checks
Invalid offset "@attributes"
of array type array{name:mixed}|false|string
Open
Open
$vars['version'] = varset($vars['@attributes']['version']);
- Exclude checks
Invalid offset "stylesheets"
of array type array{@attributes:array{default:0|1}}|array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{category:string}|array{compatibility:''|array|bool|string}|array{css:array{}}|array{csscompliant:mixed}|array{custompages:array|array<int>[]|array{}}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{html:bool}|array{info:mixed}|array{layouts:array|array{}}|array{legacy:false}|array{library:array[]}|array{library:array{}}|array{library:}|array{name:mixed}|array{path:string}|array{preferences:array}|array{preview:mixed,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{preview:mixed|null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed,thumbnail:''|mixed,html:bool,themePrefs:mixed,preferences:array,layouts:array|array{},path:string,custompages:array|array<int>[]|array{},legacy:false,library:array{}}|array{preview:mixed}|array{preview?:null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed}|array{releaseUrl:mixed}|array{themePrefs:mixed,preview:mixed|null,description:mixed,@attributes:array{default:0|1}|mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed,info:mixed,category:string,xhtmlcompliant:mixed,csscompliant:mixed,thumbnail:''|mixed,html:bool}|array{thumbnail:''|mixed}|array{version:mixed}|array{website:mixed}|array{xhtmlcompliant:mixed}|false|string</int></int>
Open
Open
if(!empty($vars['stylesheets']['css']))
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if (getperms('0') && !empty($_GET['themepreview']))
- Exclude checks
Call to method __construct
from undeclared class \theme_config_form
Open
Open
$this->themeConfigFormObj = new theme_config_form();
- Exclude checks
When fetching an array index from a value of type false|string,
found an array index of type 'prefs',
but expected the index to be of type int
Open
Open
if(!empty($xmlArray['prefs']['core']))
- Exclude checks
Returning type ''
but renderSkin()
is declared to return array
Open
Open
return '';
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param string [optional] $categoryfromXML':
after string,
did not see an element name (will guess based on comment order) Open
Open
* @param string [optional] $categoryfromXML
- Exclude checks
Argument 2 (type)
is 'theme'
but \e_file::gitPull()
takes null
defined at /code/e107_handlers/file_class.php:1591
Open
Open
$return = e107::getFile()->gitPull($gitTheme, 'theme');
- Exclude checks
Invalid offset "html"
of array type array{title:'Bootswatch Styles:',type:'dropdown',writeParms:array{optArray:array{cerulean:'Cerulean',cosmo:'Cosmo',cyborg:'Cyborg',darkly:'Darkly',flatly:'Flatly',journal:'Journal',lumen:'Lumen',paper:'Paper',readable:'Readable',sandstone:'Sandstone',simplex:'Simplex',slate:'Slate',spacelab:'Spacelab',superhero:'Superhero',united:'United',yeti:'Yeti'},post:' \x3ca class=\'btn btn-default btn-secondary e-modal\' data-modal-caption="Use the \'Themes\' menu to view the selection." href=\'http://bootswatch.com/default/\'\x3ePreview\x3c/a\x3e',default:'Default'}}|array{title:'Branding:',type:'dropdown',writeParms:array{optArray:array{sitename:'Site Name',logo:'Logo',sitenamelogo:'Logo & Site Name'}}}|array{title:'Navbar Alignment:',type:'dropdown',writeParms:array{optArray:array{left:'left',right:'right'}}}|array{title:'Signup/Login Placement:',type:'dropdown',writeParms:array{optArray:array{top:'top',bottom:'bottom'}}}
Open
Open
$text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."<div class='field-help'>".$val['help']."</div></td></tr>";
- Exclude checks
Reference to undeclared constant \ADMIN_FALSE_ICON
Open
Open
$text .= ADMIN_FALSE_ICON;
- 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
$vars['name'] = varset($vars['@attributes']['name']);
- Exclude checks
Invalid offset "category"
of array type array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{compatibility:''|array|bool|string}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{info:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|array{website:mixed}|false|string
Open
Open
$vars['category'] = self::getThemeCategory(varset($vars['category']));
- Exclude checks
Call to method renderElement
from undeclared class \theme_config_form
Open
Open
$text .= "<tr><td><b>".$val['title']."</b>:</td><td class='".$tdClass."' colspan='2'>".$frm->renderElement($field, varset($value[$field]), $val)."<div class='field-help'>".varset($val['help'])."</div></td></tr>";
- Exclude checks
Argument 2 (value)
is 0
but \e_form::admin_button()
takes string
defined at /code/e107_handlers/form_handler.php:4016
Open
Open
".$frm->admin_button('dismiss',0, 'cancel', LAN_NO)."
- Exclude checks
Invalid offset "compliance"
of array type array{@attributes:mixed,name:mixed,version:mixed,date:mixed}|array{author:mixed}|array{category:string}|array{compatibility:''|array|bool|string}|array{date:mixed}|array{description:mixed,@attributes:mixed,name:mixed,version:mixed,date:mixed,compatibility:''|array|bool|string,releaseUrl:mixed,email:mixed,website:mixed,author:mixed}|array{email:mixed}|array{info:mixed}|array{name:mixed}|array{releaseUrl:mixed}|array{version:mixed}|array{website:mixed}|false|string
Open
Open
$vars['xhtmlcompliant'] = varset($vars['compliance']['@attributes']['xhtml']);
- Exclude checks
When fetching an array index from a value of type string,
found an array index of type 'core',
but expected the index to be of type int
Open
Open
foreach($xmlArray['prefs']['core'] as $key=>$val)
- Exclude checks