e107inc/e107

View on GitHub
e107_plugins/linkwords/admin_config.php

Summary

Maintainability
A
0 mins
Test Coverage
F
42%

Assigning array<string only and tooltip></string> to property but \linkwords_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},linkword_id:array{title:'ID',type:'number',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},linkword_word:array{title:'Word to autolink \x28or comma-separated list of words\x29',type:'tags',data:'str',width:'auto',inline:true,validate:true,help:'This is case-insensitive. For multiple words mapping to the same links and tooltips, separate them with commas \x28no spaces\x29',readParms:'',writeParms:'',class:'left',thclass:'left'},linkword_link:array{title:'Link',type:'text',data:'str',width:'auto',inline:true,validate:true,help:'Define a clickable link here. If its an external link, it MUST begin with \'http\x28s\x29://\'. If its a link within this site, the normal \x7be_XXX\x7d constants may be used.',readParms:'',writeParms:'size=xxlarge',class:'left',thclass:'left'},linkword_active:array{title:'Active',type:'dropdown',data:'int',width:'auto',batch:true,filter:true,inline:true,help:'Defines which options are active.',readParms:'',writeParms:array{},left:'center',thclass:'left'},linkword_tooltip:array{title:'Tooltip',type:'textarea',data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},linkword_limit:array{title:'Max. links/tips',type:'number',data:'int',width:'10%',help:'Maximum amount of the same linkwords. Must be positive number. Used when the same word is found multiple times in a piece of text.',readParms:'',writeParms:array{default:3},class:'right',thclass:'right'},linkword_tip_id:array{title:'ID',type:'number',data:'int',width:'5%',help:'This defines an optional numeric ID to be used with Ajax processing. Must be a postiive number. If blank, the database record number is used',readParms:'',writeParms:'',class:'right',thclass:'right'},linkword_newwindow:array{title:'Open link in new window',type:'boolean',data:'int',width:'auto',inline:true,help:'When turned on, the link is opened in new browser tab/window',filter:true,readParms:'',writeParms:'',class:'center',thclass:'center'},linkword_rel:array{title:'Relationship',type:'tags',data:'str',width:'auto',inline:true,help:'Optional \'rel\' attribute. Comma separated.',filter:false,readParms:'',writeParms:array{placeholder:'eg.nofollow,noreferrer',size:'xlarge'},class:'center',thclass:'center'},options:array{title:'Options',type:null,data:null,width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

        $this->fields['linkword_active']['writeParms']['optArray'] =  array(

Assigning array<string></string> to property but \linkwords_ui->fields is array{checkboxes:array{title:'',type:null,data:null,width:'5%',thclass:'center',forced:'1',class:'center',toggle:'e-multiselect'},linkword_id:array{title:'ID',type:'number',data:'int',width:'5%',help:'',readParms:'',writeParms:'',class:'left',thclass:'left'},linkword_word:array{title:'Word to autolink \x28or comma-separated list of words\x29',type:'tags',data:'str',width:'auto',inline:true,validate:true,help:'This is case-insensitive. For multiple words mapping to the same links and tooltips, separate them with commas \x28no spaces\x29',readParms:'',writeParms:'',class:'left',thclass:'left'},linkword_link:array{title:'Link',type:'text',data:'str',width:'auto',inline:true,validate:true,help:'Define a clickable link here. If its an external link, it MUST begin with \'http\x28s\x29://\'. If its a link within this site, the normal \x7be_XXX\x7d constants may be used.',readParms:'',writeParms:'size=xxlarge',class:'left',thclass:'left'},linkword_active:array{title:'Active',type:'dropdown',data:'int',width:'auto',batch:true,filter:true,inline:true,help:'Defines which options are active.',readParms:'',writeParms:array{},left:'center',thclass:'left'},linkword_tooltip:array{title:'Tooltip',type:'textarea',data:'str',width:'auto',inline:true,help:'',readParms:'',writeParms:array{size:'xxlarge'},class:'left',thclass:'left'},linkword_limit:array{title:'Max. links/tips',type:'number',data:'int',width:'10%',help:'Maximum amount of the same linkwords. Must be positive number. Used when the same word is found multiple times in a piece of text.',readParms:'',writeParms:array{default:3},class:'right',thclass:'right'},linkword_tip_id:array{title:'ID',type:'number',data:'int',width:'5%',help:'This defines an optional numeric ID to be used with Ajax processing. Must be a postiive number. If blank, the database record number is used',readParms:'',writeParms:'',class:'right',thclass:'right'},linkword_newwindow:array{title:'Open link in new window',type:'boolean',data:'int',width:'auto',inline:true,help:'When turned on, the link is opened in new browser tab/window',filter:true,readParms:'',writeParms:'',class:'center',thclass:'center'},linkword_rel:array{title:'Relationship',type:'tags',data:'str',width:'auto',inline:true,help:'Optional \'rel\' attribute. Comma separated.',filter:false,readParms:'',writeParms:array{placeholder:'eg.nofollow,noreferrer',size:'xlarge'},class:'center',thclass:'center'},options:array{title:'Options',type:null,data:null,width:'10%',thclass:'center last',class:'center last',forced:'1'}}
Open

            $this->fields['linkword_word']['title'] = LWLAN_5;

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

e107::lan('linkwords', true); 

Assigning array<string areas summaries text etc titles forum body></string> to property but \linkwords_ui->prefs is array{lw_context_visibility:array{title:'Areas in which to enable linkwords',type:'checkboxes',help:'Many areas of text have an associated \'context\', and linkwords will only be displayed in areas matching that context.'},lw_ajax_enable:array{title:'Enable Ajax functionality',type:'boolean',data:'int',help:'The tooltips can use Ajax to get information for display. This usually requires some custom coding.'},lw_notsamepage:array{title:'Suppress link on current page',type:'boolean',data:'int',help:'Usually its pointless for the user to be able to click a link if they\'re already on the page that it links to. When this option is turned ON, the linkwords are not triggered in this case.'},linkword_omit_pages:array{title:'Pages on which to disable linkwords',type:'textarea',data:'string',help:string},lw_custom_class:array{title:'Custom CSS class',type:'text',writeParms:array{placeholder:'optional'},data:'string',help:'Will add this class to all generated links.'}}
Open

        $this->prefs['lw_context_visibility']['writeParms']['optArray'] = array(

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

            $text .= "<div class='well' style='padding:30px'>".$result."</div>";

Argument 1 (string) is array|bool but \htmlentities() takes string
Open

            $text .= "<div class='well' style='padding:30px; margin-bottom:30px'>".htmlentities($result)."</div>";

Returning type array{caption:'Help',text:'Here you can define the words which become clickable links, or which display text on mouseover.'} but renderHelp() is declared to return string
Open

            return array('caption' => LAN_HELP, 'text' => LAN_LW_HELP_10);    

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

if (!getperms('P') || !e107::isInstalled('linkwords'))

There are no issues that match your filters.

Category
Status