chamilo/chamilo-lms

View on GitHub
public/main/user/user_import.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$this_section = SECTION_COURSES;

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

                    $user_id = $user_data['id'];

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

            if (empty($invalid_users)) {

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

                        CourseManager::unsubscribe_user($user_ids, $course_code, $session_id);

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

if (empty($course_code)) {

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

        $clean_users = [];

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

                if (UserManager::is_user_id_valid($user_id)) {

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

                        $course_code,

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

                                    $user_ids[] = $user['user_id'];

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

                        CourseManager::unsubscribe_user($user_ids, $course_code, $session_id);

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

        $invalid_users = [];

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

                    $user_id = UserManager::get_user_id_from_username($user_data['username']);

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

                        if (CourseManager::is_user_subscribed_in_course($userId, $course_code, true, $session_id)) {

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

$course_code = api_get_course_id();

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

                    $user_id = $user_data['id'];

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

                foreach ($clean_users as $userId) {

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

                    $user_to_show[] = $invalid_user;

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

                    $invalid_users[] = $user_data;

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

                                    $user_ids[] = $user['user_id'];

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

                foreach ($invalid_users as $invalid_user) {

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

    if (!empty($user_to_show)) {

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

                $user_data = array_change_key_case($user_data, CASE_LOWER);

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

                if ($unsubscribe_users) {

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

                        CourseManager::unsubscribe_user($user_ids, $course_code, $session_id);

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

                        if (CourseManager::is_user_subscribed_in_course($userId, $course_code, true, $session_id)) {

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

                            $user_to_show[] = $userInfo['complete_name'];

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

        echo Display::return_message($empty_line_msg, 'error');

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

            foreach ($users as $user_data) {

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

                if (isset($user_data['username']) && !empty($user_data['username'])) {

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

                    $clean_users[] = $user_id;

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

                    CourseManager::subscribeUser($userId, $courseId, $userType, $session_id);

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

        foreach ($user_to_show as $user) {

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

        $unsubscribe_users = isset($_POST['unsubscribe_users']) ? true : false;

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

                if (isset($user_data['id']) && !empty($user_data['id'])) {

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

                    $current_user_list = CourseManager::get_user_list_from_course_code(

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

        $empty_line_msg = (0 == $empty_line) ? get_lang('Errors when importing file') : get_lang('Errors when importing file').': '.get_lang('There are empty lines in the header of selected file');

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

                    $invalid_users[] = $user_data;

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

                        $session_id,

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

                        if (CourseManager::is_user_subscribed_in_course($userId, $course_code)) {

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

$tool_name = get_lang('Import users list');

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

                $user_data = array_change_key_case($user_data, CASE_LOWER);

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

                        foreach ($current_user_list as $user) {

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

                foreach ($invalid_users as $invalid_user) {

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

            $empty_line = 0;

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

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

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

$user_to_show = [];

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

                    $clean_users[] = $user_id;

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

                            $user_to_show[] = $userInfo['complete_name'];

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

$session_id = api_get_session_id();

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

                $user_id = null;

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

                    $user_id = UserManager::get_user_id_from_username($user_data['username']);

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

                    if (!empty($current_user_list)) {

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

                    if (empty($session_id)) {

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

                if (isset($user_data['username']) && !empty($user_data['username'])) {

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

                if (isset($user_data['id']) && !empty($user_data['id'])) {

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

                        $user_ids = [];

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

                    $user_to_show[] = $invalid_user;

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

        $empty_line_msg = (0 == $empty_line) ? get_lang('Errors when importing file') : get_lang('Errors when importing file').': '.get_lang('There are empty lines in the header of selected file');

There are no issues that match your filters.

Category
Status