chamilo/chamilo-lms

View on GitHub
public/main/auth/inscription.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    $user_last_login_datetime = 0; // used as a unix timestamp it will correspond to : 1 1 1970

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            get_lang('Welcome, please go to diagnostic at %s.', $userEntity->getLocale()),

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

            header('Location: ' . api_get_path(WEB_PATH) . 'course/'.$course_info['real_id'].'/about');

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            false

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

                $sql_set[] = "diplomas = '".Database::escape_string($values['diplomas'])."'";

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

    Session::write('user_last_login_datetime', $user_last_login_datetime);

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

    $recipient_name = api_get_person_name($values['firstname'], $values['lastname']);

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

        $course_info = api_get_course_info($course_code_redirect);

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

        $LastnameLabel = [$LastnameLabel, get_lang('InsertTwoNames')];

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

                $store_extended = true;

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

                $sql .= implode(',', $sql_set);

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

                if (!empty($course_info)) {

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

        if ($is_allowedCreateCourse) {

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

$course_code_redirect = isset($_REQUEST['c']) && !empty($_REQUEST['c']) ? $_REQUEST['c'] : null;

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

            header('Location: ' . api_get_path(WEB_PATH) . 'course/'.$course_info['real_id'].'/home?sid=0');

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

$course_code_redirect = Session::read('course_redirect');

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

                        $course_info['visibility'],

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

                        $course_info['visibility'],

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

                $conditionToSave = (int) $cond_array[0].':'.(int) $cond_array[1].':'.$time;

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

        stripslashes(Security::remove_XSS($recipient_name)).',<br /><br />'.

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

    Session::write('exercise_redirect', $exercise_redirect);

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            'warning',

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        );

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

                $sql_set[] = "competences = '".Database::escape_string($values['competences'])."'";

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

        $course_info = api_get_course_info($course_code_redirect);

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

        $subscribed = CourseManager::autoSubscribeToCourse($course_code_redirect);

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            );

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

                $course_info = api_get_course_info($course_code_redirect);

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

                            $course_info['real_id']

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

            $captcha_question

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            get_lang('The terms and conditions have not yet been validated by your tutor'),

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

                $conditionToSave = (int) $cond_array[0].':'.(int) $cond_array[1].':'.$time;

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

    $sessionHandler->set('is_allowedCreateCourse', $is_allowedCreateCourse);

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

        $captcha_question = $form->addElement(

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

                $store_extended = true;

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

                $sql_set[] = "teach = '".Database::escape_string($values['teach'])."'";

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

                $sql_set[] = "openarea = '".Database::escape_string($values['openarea'])."'";

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

                if (!empty($course_info)) {

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

        $LastnameLabel = [$LastnameLabel, get_lang('InsertTwoNames')];

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

            if ($store_extended) {

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

            if (!empty($course_code_redirect)) {

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

            if (!empty($cond_array[0]) && !empty($cond_array[1])) {

Blank line found at end of control structure
Open


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

            $cond_array = explode(':', $values['legal_accept_type']);

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

    Session::write('is_allowedCreateCourse', $is_allowedCreateCourse);

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

            if (!empty($course_code_redirect)) {

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

                $course_info = api_get_course_info($course_code_redirect);

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                get_lang('You must first fill your profile to enable the terms and conditions validation.'),

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                'warning',

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                true

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

            if (!empty($cond_array[0]) && !empty($cond_array[1])) {

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

    $is_allowedCreateCourse = isset($values['status']) && 1 == $values['status'];

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

$exercise_redirect = isset($_REQUEST['e']) && !empty($_REQUEST['e']) ? $_REQUEST['e'] : null;

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

                            $course_info['real_id']

Add a comma after each item in a multi-line array
Open

    $userData = [

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

            $store_extended = false;

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

                $course_info = api_get_course_info($course_code_redirect);

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

    $is_allowedCreateCourse = isset($values['status']) && 1 == $values['status'];

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

                $course_info = api_get_course_info($course_code_redirect);

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

                $store_extended = true;

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

                $store_extended = true;

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

if (!empty($course_code_redirect)) {

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

    Session::write('course_redirect', $course_code_redirect);

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

    $LastnameLabel = get_lang('LastName');

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            $diagnosticPath

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                'warning',

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            get_lang('The terms and conditions have not yet been validated by your tutor'),

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            'warning',

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                true

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            $diagnosticPath

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            );

Multi-line function call not indented correctly; expected 24 spaces but found 28
Open

                            false

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        );

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            get_lang('Welcome, please go to diagnostic at %s.', $userEntity->getLocale()),

Multi-line function call not indented correctly; expected 28 spaces but found 32
Open

                                get_lang('You must first fill your profile to enable the terms and conditions validation.'),

There are no issues that match your filters.

Category
Status