e107inc/e107

View on GitHub
e107_plugins/page/e_shortcode.php

Summary

Maintainability
A
30 mins
Test Coverage
F
28%

Avoid too many return statements within this method.
Open

            return null;
Severity: Major
Found in e107_plugins/page/e_shortcode.php - About 30 mins to fix

    Argument 3 (parm) is false but \e_menu::renderMenu() takes string defined at /code/e107_handlers/menu_class.php:631
    Open

                return e107::getMenu()->renderMenu($parm,  false, false, true);                                    
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Returning type null but sc_chapter_menus() is declared to return string
    Open

                    return null;
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
    Open

                    $rows = e107::getDb()->retrieve($query,true);
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Argument 2 (pluginName) is null but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
    Open

                $sc = e107::getScBatch('page', null, 'cpage');
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Argument 2 (pluginName) is null but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
    Open

                $sc = e107::getScBatch('page', null, 'cpage');
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Returning type null but sc_book_chapters() is declared to return string
    Open

                    return null;
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Returning type null but sc_book_chapters() is declared to return string
    Open

                return null;
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Returning type null but sc_book_chapters() is declared to return string
    Open

                        return null;
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Argument 2 (mname) is false but \e_menu::renderMenu() takes string defined at /code/e107_handlers/menu_class.php:631
    Open

                return e107::getMenu()->renderMenu($parm,  false, false, true);                                    
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Call to undeclared method \e_shortcode::setChapter
    Open

                    $sc->setChapter($row['chapter_id']);
    Severity: Critical
    Found in e107_plugins/page/e_shortcode.php by phan

    Returning type null but sc_chapter_menus() is declared to return string
    Open

                        return null;
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Returning type null but sc_book_chapters() is declared to return string
    Open

                        return null;
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
    Open

                    if(!$pageArray = e107::getDb()->retrieve($query, true))
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
    Open

                    if(!$chapArray = e107::getDb()->retrieve($query, true))
    Severity: Minor
    Found in e107_plugins/page/e_shortcode.php by phan

    There are no issues that match your filters.

    Category
    Status