chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$jquery_ready_content = '';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['language'] = api_get_setting('platformLanguage');
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

if (isset($array_list_key[$id_temp_key])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$tool_name = get_lang('View my e-portfolio');
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $value_array = $array_list_key[$id_temp_key];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$_user = api_get_user_info();
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$user_data = api_get_user_info(
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $jquery_ready_content = <<<EOF
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$user_data['api_key_generate'] = $value_array;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $value_array = $array_list_key[$id_temp_key];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$array_list_key = UserManager::get_api_keys(api_get_user_id());
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$user_data['api_key_generate'] = $value_array;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $allowed_picture_types = api_get_supported_image_extensions(false);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$id_temp_key = UserManager::get_api_key_id(api_get_user_id(), 'default');
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['username'] = $user_data['email'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    'action' => $this_section,
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$value_array = [];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

if (false !== $user_data) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

if (!(isset($_user['user_id']) && $_user['user_id']) || api_is_anonymous($_user['user_id'], true)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$form->addRule('username', get_lang('This login is already in use'), 'username_available', $user_data['username']);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$this_section = SECTION_MYPROFILE;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $this_section = SECTION_SOCIAL;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$_SESSION['this_section'] = $this_section;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (!empty($user_data['picture_uri'])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

if (!(isset($_user['user_id']) && $_user['user_id']) || api_is_anonymous($_user['user_id'], true)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            '' != $user_data['picture_uri'] ? get_lang('Update Image') : get_lang('Add image'),
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$table_user = Database::get_main_table(TABLE_MAIN_USER);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

if (isset($array_list_key[$id_temp_key])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (is_null($user_data['language'])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

if (!(isset($_user['user_id']) && $_user['user_id']) || api_is_anonymous($_user['user_id'], true)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $value_array = $array_list_key[$id_temp_key];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['username'] = $user_data['email'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $allow_users_to_change_email_with_no_password = true;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $available_values_to_modify[] = 'username';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        if (isset($password) && in_array('password', $available_values_to_modify)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $sql .= ", official_code = '".Database::escape_string($user_data['official_code'])."'";
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        (!empty($user_data['password0']) &&
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $changeemail = $user_data['email'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    } elseif (!empty($user_data['remove_picture'])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if ($allow_users_to_change_email_with_no_password) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        get_lang('Only PNG, JPG or GIF images allowed').' ('.implode(', ', $allowed_picture_types).')',
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            'Width' => $width_extended_profile,
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (!in_array($user_data['language'], $languages)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $allowed_picture_types
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $user_data['locale'] = $user_data['language'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        !empty($user_data['password1'])) ||
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $available_values_to_modify[] = 'lastname';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $available_values_to_modify = [];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $social_layout = $tpl->get_template('social/edit_profile.html.twig');
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $user_data['locale'] = $user_data['language'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                if (isset($changeemail) && in_array('email', $available_values_to_modify)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (isset($user_data['language']) && !empty($user_data['language'])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$filtered_extension = false;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            $user_data['picture_uri'] = $new_picture;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $my_user_openid = isset($user_data['openid']) ? $user_data['openid'] : '';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $available_values_to_modify[] = 'locale';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        Session::write('_locale_user', $user_data['language']);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$form->setDefaults($user_data);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            if (!empty($userFromEmail) && empty($user_data['password0'])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $available_values_to_modify[] = 'language';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $available_values_to_modify[] = $key;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $wrong_current_password = false;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['remove_picture'],
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $available_values_to_modify,
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            if (in_array($key, $available_values_to_modify)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        if (isset($changeemail) && !isset($password) && in_array('email', $available_values_to_modify)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            $user_data['picture_crop_result']
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            $user_data['picture_uri'] = $new_picture;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['openid'] = 'http://'.$my_user_openid;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$show_delete_account_button = 'true' === api_get_setting('platform_unsubscribe_allowed') ? true : false;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $width_extended_profile = 500;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            $password = $user_data['password1'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $allow_users_to_change_email_with_no_password = false;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $userFromEmail = api_get_user_info_from_email($user_data['email']);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

if (PLATFORM_AUTH_SOURCE == $user_data['auth_source'] &&
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $changeemail = $user_data['email'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['picture_uri'] = '';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $my_user_openid = isset($user_data['openid']) ? $user_data['openid'] : '';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $available_values_to_modify[] = 'firstname';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            if (isset($password) && in_array('password', $available_values_to_modify)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            'Width' => $width_extended_profile,
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $new_picture = UserManager::update_user_picture(
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['password2'],
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $sql = "UPDATE $table_user SET";
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    unset($user_data['api_key_generate']);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (isset($user_data['language']) && !empty($user_data['language'])) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $tpl->display($social_layout);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            'Width' => $width_extended_profile,
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            'Width' => $width_extended_profile,
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        if ($new_picture) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['password0'],
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['password1'],
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        isset($user_data['official_code'])
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (isset($user_data['auth_source']) && PLATFORM_AUTH_SOURCE == $user_data['auth_source'] &&
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        if ($allow_users_to_change_email_with_no_password) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['apply_change'],
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

                $available_values_to_modify[] = 'picture_uri';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $available_values_to_modify = array_merge(
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        if (isset($changeemail) && in_array('email', $available_values_to_modify)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    '.$jquery_ready_content.'
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (isset($user_data['auth_source']) && PLATFORM_AUTH_SOURCE == $user_data['auth_source'] &&
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $my_user_openid = isset($user_data['openid']) ? $user_data['openid'] : '';
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    foreach ($user_data as $key => $value) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        (!empty($user_data['password0']) &&
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['language'] = api_get_setting('platformLanguage');
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $_SESSION['_user']['language'] = $user_data['language'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

$jquery_ready_content = $return['jquery_ready_content'];
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $user_data = $form->getSubmitValues(1);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

            $user_data['password0'],
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['MAX_FILE_SIZE'],
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['email']
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    if (!preg_match('/^[^:]*:\/\/.*$/', $my_user_openid)) {
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

        $user_data['openid'] = 'http://'.$my_user_openid;
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

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

    $extraField->saveFieldValues($user_data);
Severity: Minor
Found in public/main/auth/profile.php by phpcodesniffer

There are no issues that match your filters.

Category
Status