chamilo/chamilo-lms

View on GitHub
public/main/skills/skills_profile.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    foreach ($user_list as $user_id => $user_data) {

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

        $ordered_user_list[$user_data['total_found_skills']][] = $user_data;

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

$tpl->assign('order_user_list', $ordered_user_list);

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

            if ($id != $skill_id) {

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

    $skill_list[$skill_info['id']] = $skill_info;

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

$skill_rel_user = new SkillRelUserModel();

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

$total_skills_to_search = [];

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

        $hidden_skills = isset($values['hidden_skills']) ? $values['hidden_skills'] : [];

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

            $user_skills[] = [

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

                'skill_id' => $my_skill['skill_id'],

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

    foreach ($user_list as $user_id => $user_data) {

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

    if (!empty($ordered_user_list)) {

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

$tpl->assign('total_search_skills', $count_skills);

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

        $total_skills_to_search[$my_skill] = $my_skill;

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

        $my_user_skills = $skill_rel_user->getUserSkills($user['user_id']);

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

        foreach ($skills as $skill_id) {

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

        $skills = $skill_profile->getSkillsByProfile($id);

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

    $skill_list[$skill_info['id']] = $skill_info;

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

        $skills = array_merge($skills, $hidden_skills);

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

        $total_skills_to_search = $skill->getSkillsInfo($skills);

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

    $skill_list[$skill_info['id']] = $skill_info;

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

$form_to_html = $form->returnForm();

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

$this_section = SECTION_PLATFORM_ADMIN;

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

    foreach ($skills as $my_skill) {

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

        $user_list[$user['user_id']]['user'] = $user_info;

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

        foreach ($my_user_skills as $my_skill) {

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

        $user_list[$user['user_id']]['skills'] = $user_skills;

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

        asort($ordered_user_list);

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

$profiles = $skill_profile->get_all();

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

$user_list = [];

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

$users = $skill_rel_user->getUserBySkills($skills);

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

        $found_counts = 0;

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

        $user_list[$user['user_id']]['skills'] = $user_skills;

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

        $total_skills_to_search[$my_skill] = $my_skill;

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

$skill_list = [];

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

            if (in_array($my_skill['skill_id'], $skills)) {

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

            $total_skills_to_search[$my_skill['skill_id']] = $my_skill['skill_id'];

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

$tpl->assign('form', $form_to_html);

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

            $total_skills_to_search[$my_skill['skill_id']] = $my_skill['skill_id'];

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

        $user_list[$user['user_id']]['total_found_skills'] = $found_counts;

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

        $ordered_user_list[$user_data['total_found_skills']][] = $user_data;

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

                $new_skill[] = $skill_id;

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

$skill_profile = new SkillProfileModel();

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

        foreach ($my_user_skills as $my_skill) {

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

            $total_skills_to_search[$my_skill['skill_id']] = $my_skill['skill_id'];

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

        $new_skill = [];

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

foreach ($total_skills_to_search as $skill_info) {

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

$count_skills = count($skills);

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

        $user_list[$user['user_id']]['user'] = $user_info;

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

        $form->addElement('hidden', 'hidden_skills[]', $hidden_skill_id);

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

$total_skills_to_search = $skill->getSkillsInfo($total_skills_to_search);

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

$tpl->assign('skill_list', $skill_list);

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

                $found_counts++;

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

                $new_skill[] = $skill_id;

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

foreach ($total_skills_to_search as $skill_info) {

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

        $user_info = api_get_user_info($user['user_id']);

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

        $user_skills = [];

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

    $ordered_user_list = [];

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

    foreach ($user_list as $user_id => $user_data) {

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

        $ordered_user_list[$user_data['total_found_skills']][] = $user_data;

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

        $skills = $new_skill;

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

    foreach ($skills as $hidden_skill_id) {

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

        $my_user_skills = $skill_rel_user->getUserSkills($user['user_id']);

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

        $total_skills_to_search[$my_skill] = $my_skill;

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

        $skill_profile = new SkillRelProfileModel();

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

        $user_list[$user['user_id']]['total_found_skills'] = $found_counts;

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

$total_skills_to_search = $skill->getSkillsInfo($total_skills_to_search);

There are no issues that match your filters.

Category
Status