e107_admin/plugin.php
Consider simplifying this complex logical expression. Open
Open
if(strpos($path,'_front.php')===false && strpos($path,'_admin.php')===false && strpos($path,'_global.php')===false && strpos($path,'_menu.php')===false && strpos($path,'_notify.php')===false && strpos($path,'_search.php')===false)
{
return "<span class='text-error e-tip' title='File name should be either English_front.php, English_admin.php or English_global.php'>".$text."</span>";
}
Reference to undeclared property \plugin_ui->id
(Did you mean expr->pid or $id) Open
Open
$sql->update('plugin', "plugin_version ='{$eplug_version}', plugin_addons='{$eplug_addons}' WHERE plugin_id='$this->id' ");
- Exclude checks
Reference to undeclared constant \ADMIN_INSTALLPLUGIN_ICON
Open
Open
$text .= "<a class='btn btn-default' href=\"" . e_SELF . "?mode=installed&action=install&path=".$var['plugin_path']."&e-token=".defset('e_TOKEN')."\" title='" . EPL_ADLAN_0 . "' >" . ADMIN_INSTALLPLUGIN_ICON . "</a>";
- Exclude checks
Reference to undeclared constant \ADMIN_UPGRADEPLUGIN_ICON
Open
Open
$text .= "<a class='btn btn-default' href='" . e_SELF . "?mode=".$mode."&action=upgrade&path=".$var['plugin_path']."&e-token=".defset('e_TOKEN')."' title=\"" . EPL_UPGRADE . " v" . $var['plugin_version_file'] . "\" >" . ADMIN_UPGRADEPLUGIN_ICON . "</a>";
- 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
$name = deftrue($info['plugin_name'],$info['plugin_name']). " v".$eplug_version. "({e_PLUGIN}".$info['plugin_path'].")";
- Exclude checks
Argument 2 (parseBB)
is ''
but \e_parse::toHTML()
takes bool|false
defined at /code/e107_handlers/e_parse_class.php:1532
Open
Open
<legend>".EPL_ADLAN_54." ".$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable")."</legend>
- Exclude checks
Reference to undeclared constant \ADMIN_INSTALLPLUGIN_ICON
Open
Open
$dicon = '<a title="'.EPL_ADLAN_237.'" class="e-modal btn btn-default btn-secondary" href="'.$url.'" rel="external" data-loading="'.e_IMAGE.'/generic/loading_32.gif" data-cache="false" data-modal-caption="'.$modalCaption.'" target="_blank" >'.ADMIN_INSTALLPLUGIN_ICON.'</a>';
- Exclude checks
Reference to undeclared constant \ADMIN_UNINSTALLPLUGIN_ICON
Open
Open
$text .= "<a class='btn btn-default' href=\"" . e_SELF . "?mode=".$mode."&action=uninstall&path=".$var['plugin_path']."&e-token=".defset('e_TOKEN')."\" title='" . EPL_ADLAN_1 . "' >" . ADMIN_UNINSTALLPLUGIN_ICON . "</a>";
- Exclude checks
Argument 3 (selected)
is 0
but \e_form::select()
takes bool|false
defined at /code/e107_handlers/form_handler.php:3325
Open
Open
$del_text = $frm->select('delete_files','yesno',0);
- Exclude checks
Variable $v
was undeclared, but array fields are being added to it. Open
Open
$v['id'] = $id;
- Exclude checks
Returning type array{caption:'Updates to be Installed',text:string}
but renderHelp()
is declared to return string
Open
Open
return array('caption'=>EPL_ADLAN_247, 'text'=>$text);
- Exclude checks
Suspicious array access to nullable ?array<string>|?array<string>|?array<string>|?mixed</string></string></string>
Open
Open
'plugin_id' => $data['plugin_id'],
- Exclude checks
Argument 2 (type)
is 'plugin'
but \e_file::gitPull()
takes null
defined at /code/e107_handlers/file_class.php:1591
Open
Open
$return = e107::getFile()->gitPull($id, 'plugin');
- Exclude checks
Suspicious array access to nullable ?array<string>|?array<string>|?array<string>|?mixed</string></string></string>
Open
Open
'plugin_mode' => $data['plugin_mode'],
- Exclude checks
Argument 2 (parseBB)
is ''
but \e_parse::toHTML()
takes bool|false
defined at /code/e107_handlers/e_parse_class.php:1532
Open
Open
$conf_title = !empty($var['plugin_admin_caption']) ? $var['plugin_admin_caption'] : LAN_CONFIGURE . ' ' . $tp->toHTML($var['plugin_name'], "", "defs,emotes_off, no_make_clickable");
- Exclude checks
Call to undeclared method \e_object::loadBatch
Open
Open
$this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, 0, false, $this->listQry))->loadBatch();
- 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
$func = $eplug_folder.'_upgrade';
- Exclude checks
Suspicious array access to nullable ?array<string>|?array<string>|?array<string>|?mixed</string></string></string>
Open
Open
'plugin_url' => $data['plugin_url'],
- Exclude checks
Variable $data
was undeclared, but array fields are being added to it. Open
Open
$data[] = array(
- Exclude checks
Suspicious array access to nullable ?array<string>|?array<string>|?array<string>|?mixed</string></string></string>
Open
Open
'plugin_folder' => $data['plugin_folder'],
- Exclude checks
Reference to undeclared property \pluginLanguage->plugin
Open
Open
$this->plugin = $path;
- Exclude checks
Returning type null
but renderHelp()
is declared to return string
Open
Open
return null;
- Exclude checks
Call to undeclared function _upgrade
in callable Open
Open
$text .= call_user_func($func);
- Exclude checks
Argument 3 (selected)
is 0|1
but \e_form::select()
takes bool|false
defined at /code/e107_handlers/form_handler.php:3325
Open
Open
$text .= "</td>\n<td>".$frm->select($key,$val['itemList'],$val['itemDefault']);
- Exclude checks
Reference to undeclared constant \ADMIN_CONFIGURE_ICON
Open
Open
$plugin_config_icon = "<a class='btn btn-default' title='{$conf_title}' href='" . $var['plugin_admin_url'] . "' >" . ADMIN_CONFIGURE_ICON . "</a>";
- Exclude checks
Suspicious array access to nullable ?array<string>|?array<string>|?array<string>|?mixed</string></string></string>
Open
Open
$modalCaption = (!empty($data['plugin_price'])) ? EPL_ADLAN_92." ".$data['plugin_name']." ".$data['plugin_version'] : EPL_ADLAN_230." ".$data['plugin_name']." ".$data['plugin_version'];
- Exclude checks
Reference to undeclared constant \ADMIN_INSTALLPLUGIN_ICON
Open
Open
$button = ADMIN_INSTALLPLUGIN_ICON;
- Exclude checks
Reference to undeclared constant \ADMIN_REPAIRPLUGIN_ICON
Open
Open
$text .= "<a class='btn btn-default' href='" . e_SELF . "?mode=".$mode."&action=repair&path=".$var['plugin_path']."&e-token=".defset('e_TOKEN')."' title='" . LAN_REPAIR_PLUGIN_SETTINGS . "'> " . ADMIN_REPAIRPLUGIN_ICON . "</a>";
- Exclude checks
Call to deprecated function \e107plugin::update_plugins_table()
defined at /code/e107_handlers/plugin_class.php:1696
Open
Open
e107::getPlugin()->update_plugins_table('update');
- Exclude checks
Suspicious array access to nullable ?array<string>|?array<string>|?array<string>|?mixed</string></string></string>
Open
Open
'plugin_price' => $data['plugin_price'],
- Exclude checks
Call to undeclared method \e_admin_ui::getMarketplace
Open
Open
$url = $this->getController()->getMarketplace()->getDownloadModal('plugin', $data);
- Exclude checks
Call to deprecated function \e107plugin::getPluginRecord()
defined at /code/e107_handlers/plugin_class.php:1965
Open
Open
$info = e107plugin::getPluginRecord($this->id);
- Exclude checks
Reference to undeclared property \plugin_ui->id
(Did you mean expr->pid or $id) Open
Open
$info = e107plugin::getPluginRecord($this->id);
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if(!getperms("Z"))
- 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
$sql->update('plugin', "plugin_version ='{$eplug_version}', plugin_addons='{$eplug_addons}' WHERE plugin_id='$this->id' ");
- Exclude checks
Call to deprecated function \e107plugin::update_plugins_table()
defined at /code/e107_handlers/plugin_class.php:1696
Open
Open
e107::getPlugin()->update_plugins_table('update');
- Exclude checks
Reference to undeclared property \pluginLanguage->lanDefsRaw
Open
Open
$this->scriptDefsData[] = array('file'=>$path, 'line'=>$ln, 'lan'=>$lan, 'value'=>$this->lanDefsRaw[$lan]);
- Exclude checks
Argument 2 (fmask)
is null
but \e_file::get_files()
takes string
defined at /code/e107_handlers/file_class.php:245
Open
Open
$files = $fl->get_files(e_PLUGIN.$path.'/languages',null,null,3);
- Exclude checks
Argument 3 (omit)
is null
but \e_file::get_files()
takes string
defined at /code/e107_handlers/file_class.php:245
Open
Open
$files = $fl->get_files(e_PLUGIN.$path.'/languages',null,null,3);
- Exclude checks
Reference to undeclared property \pluginLanguage->used
Open
Open
$this->used = array_intersect($this->lanDefs,$this->scriptDefs);
- Exclude checks
Reference to undeclared property \pluginLanguage->plugin
Open
Open
$text2 .= "<div class='alert alert-info alert-block'>LAN items in this list have been named incorrectly. They should include 'LAN' in their name. eg. LAN_".strtoupper($this->plugin)."_001</div>";
- Exclude checks
Reference to undeclared property \pluginLanguage->plugin
Open
Open
'lan' => array(0 => 'Unused by '.$this->plugin, 1=>'Used by '.$this->plugin, 2=>'Unsure'),
- Exclude checks
Reference to undeclared property \pluginLanguage->plugin
Open
Open
return str_replace(e_PLUGIN.$this->plugin.'/','',$path);
- Exclude checks
Reference to undeclared property \pluginLanguage->used
Open
Open
$used = $this->renderTable($this->used, 'used');
- Exclude checks
Reference to undeclared property \pluginLanguage->plugin
Open
Open
$this->addTitle(ADLAN_98.SEP.EPL_ADLAN_114.SEP.EPL_ADLAN_221.SEP.$this->plugin);
- Exclude checks
Reference to undeclared property \pluginLanguage->lanDefsRaw
Open
Open
$this->lanDefsRaw[$d] = $values[$k];
- Exclude checks
Reference to undeclared property \pluginLanguage->plugin
Open
Open
if(strpos($this->lanDefsData[$k]['file'],$this->plugin) === false || in_array($v,$this->excludeLans))
- Exclude checks
Variable $retloc
was undeclared, but array fields are being added to it. Open
Open
$retloc[$type][$d]= $values[$k];
- Exclude checks
Reference to undeclared property \pluginLanguage->used
Open
Open
$v['status'] = (in_array($v['lan'],$this->used)) ? 1 : 0;
- Exclude checks
Reference to undeclared property \pluginLanguage->plugin
Open
Open
$text = str_replace(e_PLUGIN.$this->plugin.'/languages/','',$path);
- Exclude checks
Reference to undeclared property \pluginLanguage->lanDefsRaw
Open
Open
<td ><small>".$this->lanDefsRaw[$v['lan']]."</small></td>
- Exclude checks