e107inc/e107

View on GitHub
e107_handlers/e_pluginbuilder_class.php

Summary

Maintainability
A
0 mins
Test Coverage
F
16%

Argument 2 (value) is 3 but \e_form::button() takes array|string defined at /code/e107_handlers/form_handler.php:3876
Open

            ".$frm->button('step', 3, 'submit', LAN_CONTINUE)."

When fetching an array index from a value of type string, found an array index of type 'lan', but expected the index to be of type int
Open

                    "main-lang"                    => varset($p['@attributes']['lan']),

When fetching an array index from a value of type false|string, found an array index of type 'copyright', but expected the index to be of type int
Open

                    "copyright-copyright"            => varset($p['copyright']),

Argument 3 (selected) is '' but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
Open

                $frm->select("pluginPrefs[".$i."][type]", $options, '', 'class=null', EPL_ADLAN_131)."</td><td>".

When fetching an array index from a value of type string, found an array index of type 'word', but expected the index to be of type int
Open

                    "keywords-two"                => varset($p['keywords']['word'][1]),

Argument 3 (selected) is string but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
Open

                        <td>".$frm->select($this->table."[mode]",$modes, $defaultMode[$table], 'required=1&class=null', true)."</td>

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

                    "main-name"                    => varset($p['@attributes']['name']),

Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

            $text = $frm->open('newplugin-step3','post', e_SELF.'?mode=create&action=build&newplugin='.$newplug.'&createFiles='.$this->createFiles.'&step=3');

When fetching an array index from a value of type false|string, found an array index of type 'summary', but expected the index to be of type int
Open

                    "summary-summary"            => varset($p['summary'], $p['description']),

When fetching an array index from a value of type false|string, found an array index of type 'category', but expected the index to be of type int
Open

                    "category-category"            => varset($p['category']),

When fetching an array index from a value of type string, found an array index of type 'word', but expected the index to be of type int
Open

                    "keywords-one"                => varset($p['keywords']['word'][0]),

Suspicious array access to nullable ?array
Open

            if(vartrue($_GET['step']) == 3)

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

                    "main-name"                    => varset($p['@attributes']['name']),

When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
Open

                    "author-name"                => varset($p['author']['@attributes']['name']),

When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
Open

                    "author-url"                => varset($p['author']['@attributes']['url']),

When fetching an array index from a value of type false|string, found an array index of type 'keywords', but expected the index to be of type int
Open

                    "keywords-three"            => varset($p['keywords']['word'][2]),

When fetching an array index from a value of type string, found an array index of type 'index', but expected the index to be of type int
Open

                    $id = $val['index'];

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

                    "main-lang"                    => varset($p['@attributes']['lan']),

When fetching an array index from a value of type false|string, found an array index of type 'description', but expected the index to be of type int
Open

                    "summary-summary"            => varset($p['summary'], $p['description']),

When fetching an array index from a value of type false|string, found an array index of type 'keywords', but expected the index to be of type int
Open

                    "keywords-two"                => varset($p['keywords']['word'][1]),

Suspicious array access to nullable ?array{main-name:'',author-name:'',author-url:'',description-description:'',summary-summary:''}|?array{main-name:mixed,main-lang:mixed,author-name:mixed,author-url:mixed,description-description:mixed,summary-summary:mixed,category-category:mixed,copyright-copyright:mixed,keywords-one:mixed,keywords-two:mixed,keywords-three:mixed}
Open

                    $text .= "<div class='$size'>".$this->xmlInput($name, $key."-". $type, vartrue($defaults[$nm]))."</div>";

When fetching an array index from a value of type string, found an array index of type 'url', but expected the index to be of type int
Open

                    "author-url"                => varset($p['author']['@attributes']['url']),

When fetching an array index from a value of type false|string, found an array index of type 'keywords', but expected the index to be of type int
Open

                    "keywords-one"                => varset($p['keywords']['word'][0]),

Argument 3 (checked) is 1 but \e_form::checkbox() takes bool|false defined at /code/e107_handlers/form_handler.php:2685
Open

                    <td><div class='input-append form-inline'>".$frm->open('createPlugin','get',e_SELF."?mode=create").$frm->select("newplugin",$newDir, false, 'size=xlarge').$frm->admin_button('step', 2,'other',LAN_GO)."</div> ".$frm->checkbox('createFiles',1,1,EPL_ADLAN_255).$frm->close()."</td>

When fetching an array index from a value of type false|string, found an array index of type 'author', but expected the index to be of type int
Open

                    "author-url"                => varset($p['author']['@attributes']['url']),

Argument 2 (value) is 2 but \e_form::admin_button() takes string defined at /code/e107_handlers/form_handler.php:4016
Open

                    <td><div class='input-append form-inline'>".$frm->open('createPlugin','get',e_SELF."?mode=create").$frm->select("newplugin",$newDir, false, 'size=xlarge').$frm->admin_button('step', 2,'other',LAN_GO)."</div> ".$frm->checkbox('createFiles',1,1,EPL_ADLAN_255).$frm->close()."</td>

Invalid offset "data" of array type array{tables:mixed}|array{}
Open

                    $fields = $dv->getFields($ret['data'][$key]);

Argument 2 (value) is 4 but \e_form::admin_button() takes string defined at /code/e107_handlers/form_handler.php:4016
Open

            ".$frm->admin_button('step', 4,'other', LAN_GENERATE)."

When fetching an array index from a value of type string, found an array index of type 'value', but expected the index to be of type int
Open

                    $plugPref[$id] = $val['value'];

Argument 2 (value) is 2 but \e_form::admin_button() takes string defined at /code/e107_handlers/form_handler.php:4016
Open

                    <td><div class='input-append form-inline'>".$frm->open('checkPluginLangs','get',e_SELF."?mode=lans").$frm->select("newplugin",$lanDir, false, 'size=xlarge').$frm->admin_button('step', 2,'other',LAN_GO)."</div> ".$frm->close()."</td>

Argument 3 (selected) is null but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
Open

            $text .= $frm->select('build', $tables, null, array('useValues'=>1), "(".LAN_OPTIONAL.")");

Variable $ret was undeclared, but array fields are being added to it.
Open

            $ret['title'] = ucfirst($name);

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

                    "author-name"                => varset($p['author']['@attributes']['name']),

When fetching an array index from a value of type string, found an array index of type 'word', but expected the index to be of type int
Open

                    "keywords-three"            => varset($p['keywords']['word'][2]),

When fetching an array index from a value of type string, found an array index of type 'index', but expected the index to be of type int
Open

                if(vartrue($val['index']))

When fetching an array index from a value of type false|string, found an array index of type 'author', but expected the index to be of type int
Open

                    "author-name"                => varset($p['author']['@attributes']['name']),

When fetching an array index from a value of type false|string, found an array index of type 'description', but expected the index to be of type int
Open

                    "description-description"    => varset($p['description']),

There are no issues that match your filters.

Category
Status