e107inc/e107

View on GitHub
e107_plugins/hero/admin_config.php

Summary

Maintainability
A
0 mins
Test Coverage
F
9%

Suspicious array access to nullable ?array
Open

                                <td class='text-center'>".$this->glyphPicker($name.'[icon]', varset($val['icon']))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Argument 3 (previewURL) is null but \hero_form_ui::imagepicker() takes string defined at /code/e107_handlers/form_handler.php:1349
Open

                    <td class='text-center' style='padding-left:15px'>".$this->imagepicker('hero_media', $media, null, array('media'=>'hero^',  'video' => 1))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Argument 4 (sc_parameters) is array{media:'hero^'} but \hero_form_ui::imagepicker() takes string defined at /code/e107_handlers/form_handler.php:1349
Open

                    <td class='text-center' style='padding-left:15px'>".$this->imagepicker('hero_bg', $bg, null, array('media'=>'hero^'))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Suspicious array access to nullable ?array
Open

                                <td>".$this->text($name.'[label]', varset($val['label']), 255, array('size'=>'block-level', 'placeholder'=>LAN_HERO_ADMIN_006))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Argument 4 (sc_parameters) is array{media:'hero^',video:1} but \hero_form_ui::imagepicker() takes string defined at /code/e107_handlers/form_handler.php:1349
Open

                    <td class='text-center' style='padding-left:15px'>".$this->imagepicker('hero_media', $media, null, array('media'=>'hero^',  'video' => 1))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

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

if (!getperms('P')) 
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Suspicious array access to nullable ?array
Open

                                <td> ".$this->btnClass($name.'[class]', varset($val['class']))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Argument 3 (previewURL) is null but \hero_form_ui::imagepicker() takes string defined at /code/e107_handlers/form_handler.php:1349
Open

                    <td class='text-center' style='padding-left:15px'>".$this->imagepicker('hero_bg', $bg, null, array('media'=>'hero^'))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Assigning array<string></string> to property but \hero_ui->prefs is array{visibility:array{title:'Visibility',tab:0,type:'userclass',data:'str',help:'',writeParms:array{classlist:'public,member,guest,admin,main,classes,nobody, no-excludes'}},icon_pack:array{title:'Icon pack',tab:0,type:'method',data:'str',writeParms:array{},help:''},slide_interval:array{title:'Automated slide interval',type:'dropdown',data:'int',writeParms:array{optArray:array{}}}}
Open

            $this->prefs['slide_interval']['writeParms']['optArray'] = $opts;
Severity: Minor
Found in e107_plugins/hero/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('hero',true, true);
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Returning type array{caption:'Help',text:'Be sure to enable the hero menu on your home page using the \x5bMenu Manager\x5d.'} but renderHelp() is declared to return string
Open

            return array('caption'=>$caption,'text'=> $text);
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Argument 3 (default) is 'fontawesome' but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

        $pack = e107::pref('hero','icon_pack', 'fontawesome');
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

Suspicious array access to nullable ?array
Open

                                <td> ".$this->text($name.'[url]', varset($val['url']), 255, array('size'=>'block-level', 'placeholder'=>'URL'))."</td>
Severity: Minor
Found in e107_plugins/hero/admin_config.php by phan

There are no issues that match your filters.

Category
Status