e107inc/e107

View on GitHub
e107_admin/boot.php

Summary

Maintainability
A
40 mins
Test Coverage
F
33%

Consider simplifying this complex logical expression.
Open

    if(strpos(e_REQUEST_URI,$plugDir) !== false && !deftrue('e_ADMIN_UI') && !empty($_plugins) && !empty($_globalLans) && is_array($_plugins) && (count($_plugins) > 0))
    {
        $_plugins = array_keys($_plugins);
        
        foreach ($_plugins as $_p) 
Severity: Major
Found in e107_admin/boot.php - About 40 mins to fix

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

    if(e_AJAX_REQUEST && getperms('0') &&  varset($_GET['mode']) == 'core' && ($_GET['type'] == 'update'))
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Saw an @param annotation for vars, but it was not found in the param list of function show_admin_menu($title, $active_page, $var, false $js = null, false $sub_link = null, false $sortlist = null) : null|string;
    Open

         * @param $vars
    Severity: Info
    Found in e107_admin/boot.php by phan

    Call to undeclared method \e_shortcode::getUpdateable
    Open

        $plugins = $sc->getUpdateable('plugin');
    Severity: Critical
    Found in e107_admin/boot.php by phan

    Call to undeclared method \e_shortcode::renderAddonUpdate
    Open

        $text .= $sc->renderAddonUpdate($themes);
    Severity: Critical
    Found in e107_admin/boot.php by phan

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

    if(e_AJAX_REQUEST && getperms('0') &&  varset($_GET['mode']) == 'addons' && ($_GET['type'] == 'update'))
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Argument 2 (simple) is 'advanced' but \xmlClass::parseXml() takes bool|true defined at /code/e107_handlers/xml_class.php:495
    Open

            $rows = e107::getXml()->parseXml($data, 'advanced');
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Argument 4 (bRaw) is null but \ecache::set() takes bool|int defined at /code/e107_handlers/cache_handler.php:235
    Open

            $cache->set($tag, $text, true, null, true);
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Argument 2 (active_page) is int but \e_navigation::admin() takes string defined at /code/e107_handlers/sitelinks_class.php:1251
    Open

            return e107::getNav()->admin($title, $active_page, $var, false, false, $sortlist);
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Argument 2 (simple) is 'advanced' but \xmlClass::parseXml() takes bool|true defined at /code/e107_handlers/xml_class.php:495
    Open

            $rows = e107::getXml()->parseXml($data, 'advanced');
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Call to undeclared method \e_shortcode::renderAddonUpdate
    Open

        $text = $sc->renderAddonUpdate($plugins);
    Severity: Critical
    Found in e107_admin/boot.php by phan

    Argument 2 (active_page) is null but \e_navigation::admin() takes string defined at /code/e107_handlers/sitelinks_class.php:1251
    Open

            return e107::getNav()->admin($title, $active_page, $var, false, false, $sortlist);
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Argument 4 (tmpl) is false but \e_navigation::admin() takes array defined at /code/e107_handlers/sitelinks_class.php:1251
    Open

            return e107::getNav()->admin($title, $active_page, $var, false, false, $sortlist);
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Suspicious argument null for an echo/print statement
    Open

        echo $ret;
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
    Open

                   '.$tp->text_truncate($description,150).'
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
    Open

        if(strpos(e_REQUEST_URI,$plugDir) !== false && !deftrue('e_ADMIN_UI') && !empty($_plugins) && !empty($_globalLans) && is_array($_plugins) && (count($_plugins) > 0))
    Severity: Minor
    Found in e107_admin/boot.php by phan

    Call to undeclared method \e_shortcode::getUpdateable
    Open

        $themes = $sc->getUpdateable('theme');
    Severity: Critical
    Found in e107_admin/boot.php by phan

    There are no issues that match your filters.

    Category
    Status