chamilo/chamilo-lms

View on GitHub
public/main/admin/user_add.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$tool_name = get_lang('Add a user');

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

                    $expiration_date,

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

$form->addRule('picture', get_lang('Only PNG, JPG or GIF images allowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types);

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

$jquery_ready_content = $returnParams['jquery_ready_content'];

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

            $send_mail = (int) $user['mail']['send_mail'];

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

$this_section = SECTION_PLATFORM_ADMIN;

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

$auth_sources = 0; //make available wider as we need it in case of form reset (see below)

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

$nb_ext_auth_source_added = 0;

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

    if ($nb_ext_auth_source_added > 0) {

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

            $user['item_id'] = $user_id;

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

    $auth_sources = [];

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

    '.$jquery_ready_content.'

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

                    api_get_path(WEB_CODE_PATH).'admin/user_edit.php?user_id='.$user_id

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

$allowed_picture_types = api_get_supported_image_extensions(false);

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

            $auth_sources[$key] = $key;

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

            $nb_ext_auth_source_added++;

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

        $group[] = $form->createElement('select', 'auth_source', null, $auth_sources);

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

            $auth_source,

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

            $expiration_date,

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

$form->addRule('picture', get_lang('Only PNG, JPG or GIF images allowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types);

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

        $expiration_date = null;

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

$is_platform_admin = api_is_platform_admin() ? 1 : 0;

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

$html_results_enabled[] = $form->createElement('button', 'submit', get_lang('Add'), 'plus', 'primary');

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

            $hr_dept_id,

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

            $send_mail,

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

                    $user_id,

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

        $official_code = $user['official_code'];

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

        $send_mail = 0;

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

            $official_code,

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

                    $user_id,

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

                    $official_code,

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

$tpl = new Template($tool_name);

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

        $hr_dept_id = isset($user['hr_dept_id']) ? (int) $user['hr_dept_id'] : 0;

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

            $auth_source = $user['password']['auth_source'];

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

        if (!empty($user_id)) {

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

$html_results_enabled[] = $form->createElement('button', 'submit_plus', get_lang('Add').'+', 'plus', 'primary');

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

$form->addGroup($html_results_enabled);

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

            $platform_admin,

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

var is_platform_id = "'.$is_platform_admin.'";

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

$form->addElement('header', '', $tool_name);

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

            $platform_admin = (int) $user['admin']['platform_admin'];

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

        $platform_admin = 0;

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

                    $auth_source,

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

        $user_id = UserManager::create_user(

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

            $auth_source = PLATFORM_AUTH_SOURCE;

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

            $expiration_date = $user['expiration_date'];

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

                    $hr_dept_id,

There are no issues that match your filters.

Category
Status