e107inc/e107

View on GitHub
e107_admin/eurl.php

Summary

Maintainability
A
0 mins
Test Coverage
F
34%

Parameter $primary has undeclared type \primary
Open

    private function rebuild($table, $primary='', $input='',$output='')
Severity: Minor
Found in e107_admin/eurl.php by phan

Default value for \output $output can't be string
Open

    private function rebuild($table, $primary='', $input='',$output='')
Severity: Minor
Found in e107_admin/eurl.php by phan

Invalid offset "validate" of array type array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string}|array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}|array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'}|array{title:'Remove filename from the URL',type:'boolean',help:string}
Open

            if(vartrue($att['validate']))
Severity: Minor
Found in e107_admin/eurl.php by phan

Assigning array<string></string> to property but \eurl_admin_ui->prefs is array{url_disable_pathinfo:array{title:'Remove filename from the URL',type:'boolean',help:string},url_main_module:array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string},url_error_redirect:array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'},url_sef_translate:array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}}
Open

            $this->prefs['url_main_module']['writeParms'][$alias] = eHelper::labelize($plugin);
Severity: Minor
Found in e107_admin/eurl.php by phan

Assigning array<string>}&gt;</string> to property but \eurl_admin_ui->prefs is array{url_disable_pathinfo:array{title:'Remove filename from the URL',type:'boolean',help:string},url_main_module:array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string},url_error_redirect:array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'},url_sef_translate:array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}}
Open

            $this->prefs['url_sef_translate']['writeParms'][$type] = deftrue('LAN_EURL_SETTINGS_SEFTRTYPE_'.strtoupper($type), ucfirst($type));
Severity: Minor
Found in e107_admin/eurl.php by phan

Call to undeclared method \e_admin_form_ui::aliasesRows
Open

        return $this->getUI()->aliasesRows($aliases, $modules, $lanDef, $lans);
Severity: Critical
Found in e107_admin/eurl.php by phan

Parameter $output has undeclared type \output
Open

    private function rebuild($table, $primary='', $input='',$output='')
Severity: Minor
Found in e107_admin/eurl.php by phan

Call to undeclared method \e_admin_form_ui::urlSettings
Open

        return $this->getUI()->urlSettings();
Severity: Critical
Found in e107_admin/eurl.php by phan

Call to undeclared method \e_admin_form_ui::moduleRows
Open

        return $this->getUI()->moduleRows($ret);
Severity: Critical
Found in e107_admin/eurl.php by phan

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

if (!getperms('K'))
Severity: Minor
Found in e107_admin/eurl.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param output field (sef)': after output, did not see an element name (will guess based on comment order)
Open

     * @param output field (sef)
Severity: Info
Found in e107_admin/eurl.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param primary field id.': after primary, did not see an element name (will guess based on comment order)
Open

     * @param primary field id. 
Severity: Info
Found in e107_admin/eurl.php by phan

Argument 7 (array) is null but \e_form::renderInline() takes array defined at /code/e107_handlers/form_handler.php:5053
Open

                    $aliasForm      = $frm->renderInline('e_url_alias['.$plug.']['.$k.']', $pid, 'e_url_alias['.$plug.']['.$k.']', $alias, $alias,'text',null,array('title'=>LAN_EDIT." (Language-specific)", 'url'=>e_REQUEST_SELF));
Severity: Minor
Found in e107_admin/eurl.php by phan

Assigning array<string></string> to property but \eurl_admin_ui->prefs is array{url_disable_pathinfo:array{title:'Remove filename from the URL',type:'boolean',help:string},url_main_module:array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string},url_error_redirect:array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'},url_sef_translate:array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}}
Open

            $this->prefs['url_main_module']['writeParms'][$module] = eHelper::labelize($module); // vartrue($section['name'], eHelper::labelize($module));
Severity: Minor
Found in e107_admin/eurl.php by phan

Invalid offset "writeParms" of array type array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string}
Open

        ksort($this->prefs['url_main_module']['writeParms']);
Severity: Minor
Found in e107_admin/eurl.php by phan

Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
Open

                    $path = str_replace('/url.php', '/', $tp->replaceConstants(eDispatcher::getConfigPath($module, $location, true), true)).' <em>('.LAN_EURL_LOCATION_NONE.')</em>';
Severity: Minor
Found in e107_admin/eurl.php by phan

Parameter $input has undeclared type \input
Open

    private function rebuild($table, $primary='', $input='',$output='')
Severity: Minor
Found in e107_admin/eurl.php by phan

Argument 2 (pid) is string but \e_form::renderInline() takes int defined at /code/e107_handlers/form_handler.php:5053
Open

                    $aliasForm      = $frm->renderInline('e_url_alias['.$plug.']['.$k.']', $pid, 'e_url_alias['.$plug.']['.$k.']', $alias, $alias,'text',null,array('title'=>LAN_EDIT." (Language-specific)", 'url'=>e_REQUEST_SELF));
Severity: Minor
Found in e107_admin/eurl.php by phan

Argument 1 (array_arg) is null but \ksort() takes array
Open

        ksort($this->prefs['url_main_module']['writeParms']);
Severity: Minor
Found in e107_admin/eurl.php by phan

Invalid offset "rule" of array type array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string}|array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}|array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'}|array{title:'Remove filename from the URL',type:'boolean',help:string}
Open

                $validateRules[$key] = array((true === $att['validate'] ? 'required' : $att['validate']), varset($att['rule']), $att['title'], varset($att['error'], $att['help']));
Severity: Minor
Found in e107_admin/eurl.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param input field (title)': after input, did not see an element name (will guess based on comment order)
Open

     * @param input field (title)
Severity: Info
Found in e107_admin/eurl.php by phan

Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
Open

                    $path = $tp->replaceConstants(eDispatcher::getConfigPath($module, $location, true), true);
Severity: Minor
Found in e107_admin/eurl.php by phan

Default value for \input $input can't be string
Open

    private function rebuild($table, $primary='', $input='',$output='')
Severity: Minor
Found in e107_admin/eurl.php by phan

Assigning array<string></string> to property but \eurl_admin_ui->prefs is array{url_disable_pathinfo:array{title:'Remove filename from the URL',type:'boolean',help:string},url_main_module:array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string},url_error_redirect:array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'},url_sef_translate:array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}}
Open

        $this->prefs['url_sef_translate']['writeParms'] = array();
Severity: Minor
Found in e107_admin/eurl.php by phan

Default value for \primary $primary can't be string
Open

    private function rebuild($table, $primary='', $input='',$output='')
Severity: Minor
Found in e107_admin/eurl.php by phan

Assigning array<string></string> to property but \eurl_admin_ui->prefs is array{url_disable_pathinfo:array{title:'Remove filename from the URL',type:'boolean',help:string},url_main_module:array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string},url_error_redirect:array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'},url_sef_translate:array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}}
Open

        $this->prefs['url_main_module']['writeParms'][''] = 'None';
Severity: Minor
Found in e107_admin/eurl.php by phan

Invalid offset "error" of array type array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string}|array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}|array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'}|array{title:'Remove filename from the URL',type:'boolean',help:string}
Open

                $validateRules[$key] = array((true === $att['validate'] ? 'required' : $att['validate']), varset($att['rule']), $att['title'], varset($att['error'], $att['help']));
Severity: Minor
Found in e107_admin/eurl.php by phan

Invalid offset "validate" of array type array{title:'Associate Root namespace',type:'dropdown',data:'string',help:string}|array{title:'Automated SEF string creation type',type:'dropdown',data:'string',help:'Choose how will be assembled SEF string when it\'s automatically built from a Title value \x28e.g. in news, custom pages, etc.\x29'}|array{title:'Redirect to System not found page',type:'boolean',help:'If set to false, not found page will be direct rendered \x28without browser redirect\x29'}|array{title:'Remove filename from the URL',type:'boolean',help:string}
Open

                $validateRules[$key] = array((true === $att['validate'] ? 'required' : $att['validate']), varset($att['rule']), $att['title'], varset($att['error'], $att['help']));
Severity: Minor
Found in e107_admin/eurl.php by phan

There are no issues that match your filters.

Category
Status