chamilo/chamilo-lms

View on GitHub
public/main/install/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "email_parts" is not in valid camel caps format
Open

    $email_parts = explode('@', $emailForm);

Variable "email_parts" is not in valid camel caps format
Open

    if (isset($email_parts[1]) && 'localhost' === $email_parts[1]) {

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 3;

Variable "my_old_version" is not in valid camel caps format
Open

    'old_version' => api_htmlentities($my_old_version, ENT_QUOTES),

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 3;

Variable "_setting" is not in valid camel caps format
Open

$_setting = [

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 1;

Multi-line function call not indented correctly; expected 4 spaces but found 8
Open

        ]),

Variable "tmp_version" is not in valid camel caps format
Open

    $my_old_version = $tmp_version;

Variable "email_parts" is not in valid camel caps format
Open

    if (isset($email_parts[1]) && 'localhost' === $email_parts[1]) {

Variable "total_steps" is not in valid camel caps format
Open

$total_steps = 7;

Variable "current_step" is not in valid camel caps format
Open

error_log("Step: $current_step");

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 6;

Variable "tmp_version" is not in valid camel caps format
Open

if (empty($tmp_version)) {

Variable "tmp_version" is not in valid camel caps format
Open

    $tmp_version = get_config_param('system_version');

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 7;

Variable "my_old_version" is not in valid camel caps format
Open

    $my_old_version = $_POST['old_version'];

Variable "my_old_version" is not in valid camel caps format
Open

    $my_old_version = $tmp_version;

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 7;

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 5;

Variable "tmp_version" is not in valid camel caps format
Open

} elseif (!empty($tmp_version)) {

Variable "current_step" is not in valid camel caps format
Open

$current_step = 1;

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 4;

Variable "db_name" is not in valid camel caps format
Open

        $db_name = $dbNameForm;

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 2;

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 4;

Variable "new_version" is not in valid camel caps format
Open

$new_version = $versionData['new_version'];

Variable "session_lifetime" is not in valid camel caps format
Open

$session_lifetime = 360000;

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 5;

Variable "new_version" is not in valid camel caps format
Open

        &mdash; <?php echo $translator->trans('Chamilo installation').' &mdash; '.$translator->trans('Version').' '.$new_version; ?>

Variable "new_version" is not in valid camel caps format
Open

    'new_version' => api_htmlentities($new_version, ENT_QUOTES),

Variable "my_old_version" is not in valid camel caps format
Open

$my_old_version = '';

Space before opening parenthesis of function call prohibited
Open

    $allowSelfRegistrationLiteral = match ($allowSelfReg) {

Variable "current_step" is not in valid camel caps format
Open

    'currentStep' => $current_step,

Variable "current_step" is not in valid camel caps format
Open

    $current_step = 6;

Variable "my_old_version" is not in valid camel caps format
Open

                if (in_array($my_old_version, $upgradeFromVersion)) {

Variable "session_lifetime" is not in valid camel caps format
Open

    'session_lifetime' => api_htmlentities((string) $session_lifetime, ENT_QUOTES),

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ('update' === $installType) {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbPortForm'] = $dbPortForm;

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($isUpdateAvailable) {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbNameForm'] = $dbNameForm;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $envFile = api_get_path(SYMFONY_SYS_PATH) . '.env';

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $dotenv->loadEnv($envFile);

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbHostForm'] = $dbHostForm;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $stepData['campusForm'] = $campusForm;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbUsernameForm'] = $dbUsernameForm;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 4
Open

    } else {

Space before opening parenthesis of function call prohibited
Open

    $allowSelfRegistrationLiteral = match ($allowSelfReg) {

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $stepData['encryptPassForm'] = $encryptPassForm;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $envFile = api_get_path(SYMFONY_SYS_PATH) . '.env';

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $dotenv = new Dotenv();

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $stepData['institutionForm'] = $institutionForm;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbPassForm'] = str_repeat('*', api_strlen($_ENV['DATABASE_PASSWORD']));

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  $installationLanguage = ChamiloSession::read('install_language');

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $stepData['allowSelfRegistrationLiteral'] = $allowSelfRegistrationLiteral;

Line indented incorrectly; expected 4 spaces, found 8
Open

        default => get_lang('No'),

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $urlForm = get_config_param('root_web');

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $stepData['institutionUrlForm'] = $institutionUrlForm;

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbHostForm'] = $_ENV['DATABASE_HOST'];

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbPortForm'] = $_ENV['DATABASE_PORT'];

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbUsernameForm'] = $_ENV['DATABASE_USER'];

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbNameForm'] = $_ENV['DATABASE_NAME'];

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $stepData['dbPassForm'] = str_repeat('*', api_strlen($dbPassForm));

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $stepData['languageForm'] = $languageForm;

There are no issues that match your filters.

Category
Status