e107inc/e107

View on GitHub
e107_handlers/library_manager.php

Summary

Maintainability
A
30 mins
Test Coverage
B
84%

Avoid too many return statements within this method.
Open

        return $library;
Severity: Major
Found in e107_handlers/library_manager.php - About 30 mins to fix

    Invalid offset "post_detect" of array type array{info:array<int>}</int>
    Open

            array_unshift($library['callbacks']['post_detect'], 'detectDependencies');
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    Reference to undeclared class \admin_theme_library
    Open

                                    $class = new $addonClass();
    Severity: Critical
    Found in e107_handlers/library_manager.php by phan

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

            return trim(e107::getParser()->replaceConstants($path,$mode),'/')  .'/';
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    Reference to undeclared class \admin_theme_library
    Open

                            $class = new $theme['class']();
    Severity: Critical
    Found in e107_handlers/library_manager.php by phan

    Argument 1 (str) is true but \deftrue() takes string defined at /code/e107_handlers/core_functions.php:110
    Open

                    elseif(!deftrue(e_ADMIN_AREA, false) && $provider == $siteTheme)
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    Invalid offset "path" of array type array{library_path:string}
    Open

                $libraries['cdn.bootstrap.editable']['path'] .= '/bootstrap-editable';
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    Expected an object instance or the name of a class but saw expression with type 'admin_theme_library'
    Open

                                $class = new $addonClass();
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    Reference to undeclared class \admin_theme_library
    Open

                                $class = new $addonClass();
    Severity: Critical
    Found in e107_handlers/library_manager.php by phan

    Argument 1 (str) is true but \deftrue() takes string defined at /code/e107_handlers/core_functions.php:110
    Open

                    elseif(!deftrue(e_ADMIN_AREA, false) && $provider == $siteTheme)
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    Expected an object instance or the name of a class but saw expression with type 'admin_theme_library'
    Open

                                    $class = new $addonClass();
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    Returning type false but detectPath() is declared to return string
    Open

                return false;
    Severity: Minor
    Found in e107_handlers/library_manager.php by phan

    There are no issues that match your filters.

    Category
    Status