modxcms/revolution

View on GitHub
setup/controllers/contexts.php

Summary

Maintainability
A
1 hr
Test Coverage

Consider simplifying this complex logical expression.
Open

if (!empty($_POST['proceed'])) {
    unset($_POST['proceed']);
    $webUrl= substr($_SERVER['SCRIPT_NAME'], 0, strpos($_SERVER['SCRIPT_NAME'], 'setup/'));

    $_POST['context_web_path'] = !empty($_POST['context_web_path']) ? rtrim($_POST['context_web_path'],'/').'/' : MODX_INSTALL_PATH;
Severity: Major
Found in setup/controllers/contexts.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status