e107inc/e107

View on GitHub
e107_plugins/newsfeed/admin_config.php

Summary

Maintainability
A
0 mins
Test Coverage
F
11%

Assigning array<string></string> to property but \newsfeed_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},newsfeed_id:array{title:'ID',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},newsfeed_name:array{title:'Title',type:'text',data:'str',required:true,width:'auto',inline:true,help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},newsfeed_url:array{title:'URL',type:'url',data:'str',required:true,inline:true,width:'auto',help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},newsfeed_data:array{title:'Data',type:null,data:false,width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},newsfeed_description:array{title:'Description',type:'textarea',data:'str',width:'40%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},newsfeed_image:array{title:'Path to image',type:'method',data:'str',width:'auto',help:'optional',readParms:'thumb=80x80',writeParms:'',class:'left',thclass:'left'},newsfeed_updateint:array{title:'Update interval in seconds',type:'text',data:'int',inline:true,width:'auto',help:'',readParms:'',writeParms:array{default:3600},class:'left',thclass:'left'},newsfeed_timestamp:array{title:'Last Updated',type:'method',data:'int',width:'auto',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},newsfeed_active:array{title:'Activation',type:'radio',data:'int',width:'auto',help:'',readParms:'',writeParms:array{default:3,optArray:array{0:'Nowhere \x28inactive\x29',1:'In menu only',2:'On newsfeed main page only',3:'In both menu and newsfeed page'}},class:'left',thclass:'left'},newsfeed_showmenu:array{title:'Number of items to show in menu',type:'method',data:false,class:'center',thclass:'center'},newsfeed_showmain:array{title:'Number of items to show on main page',type:'method',data:false,class:'center',thclass:'center'},options:array{title:'Options',type:null,data:null,width:'8%',thclass:'center last',class:'center last',forced:'1'}}
Open

                $this->fields['newsfeed_updateint']['type'] = 'number';
Severity: Minor
Found in e107_plugins/newsfeed/admin_config.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if (!getperms('P') || !e107::isInstalled('newsfeed'))
Severity: Minor
Found in e107_plugins/newsfeed/admin_config.php by phan

Argument 2 (fname) is true but \e107::lan() takes string defined at /code/e107_handlers/e107_class.php:3987
Open

e107::lan('newsfeed',true);
Severity: Minor
Found in e107_plugins/newsfeed/admin_config.php by phan

There are no issues that match your filters.

Category
Status