chamilo/chamilo-lms

View on GitHub
public/main/session/session_user_import.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            $username = $user_data['username'];

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

        if (!empty($user_list)) {

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

                $user_list[] = $user_id;

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

$session = api_get_session_entity($session_id);

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

        $user_list = [];

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

            if ($user_id) {

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

                $user_info = api_get_user_info($user_id);

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

    api_get_self().'?id_session='.$session_id,

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

$form_sent = 0;

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

$tool_name = get_lang('Import users');

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

                $session_id,

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

                $user_id = $user_info['complete_name'];

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

if (!empty($error_message)) {

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

                $user_info = api_get_user_info($user_id);

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

        $form_sent = $_POST['formSent'];

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

            $user_id = UserManager::get_user_id_from_username($username);

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

            foreach ($user_list as &$user_id) {

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

        $error_message = get_lang('No file was sent');

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

echo '<a href="resume_session.php?id_session='.$session_id.'">'.

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

    echo Display::return_message($error_message, 'normal', false);

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

                $user_list[] = $user_id;

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

            foreach ($user_list as &$user_id) {

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

$session_id = isset($_GET['id_session']) ? intval($_GET['id_session']) : null;

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

                $user_id = $user_info['complete_name'];

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

            $error_message = get_lang('Users added').' : '.implode(', ', $user_list);

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

            $error_message = get_lang('Users added').' : '.implode(', ', $user_list);

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

$this_section = SECTION_PLATFORM_ADMIN;

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

    'url' => "resume_session.php?id_session=".$session_id,

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

        foreach ($users as $user_data) {

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

                $user_list,

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

Display::display_header($tool_name);

There are no issues that match your filters.

Category
Status