chamilo/chamilo-lms

View on GitHub
public/main/inc/ajax/skill.ajax.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        Display::$global_template->assign('skills', $skills);

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

                foreach ($my_user_skills as $my_skill) {

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

            foreach ($total_skills_to_search as $skill_info) {

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

                    $gradebook_list[] = $gradebook;

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

        echo Display::$global_template->fetch($template);

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

        $ordered_user_list = null;

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

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

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

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

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

        if (!empty($skill_data)) {

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

        $skill_id = isset($_REQUEST['skill_id']) ? intval($_REQUEST['skill_id']) : 0;

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

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

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

                        $user_skills[$my_skill['skill_id']] = [

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

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

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

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

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

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

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

        $gradebooks = $gradebook_list = $gradebook->get_all();

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

        echo Display::$global_template->fetch($template);

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

        $user_list = [];

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

                $user_skill_list = [];

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

                    $user_skill_list[] = $skill_item['skill_id'];

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

                    $user_skill_list[] = $skill_item['skill_id'];

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

                foreach ($my_user_skills as $my_skill) {

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

            if (!empty($ordered_user_list)) {

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_data" is not in valid camel caps format
Open

        $skill_data = $skill->get($_REQUEST['skill_id']);

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

        Display::$global_template->assign('hot_courses', $courses);

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

            Display::$global_template->assign('sessions', $sessions);

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

        $skills = $skill->getChildren($id, $load_user_data);

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

                $user_skills = [];

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

        Display::$global_template->assign('skill_list', $skill_list);

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

                $skill_item = $skillGradeBook->getSkillInfo(

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

        $returnSkills = [[

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

                    $skillGradeBook->delete($skill_item['id']);

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

        $skill_rel_user = new SkillRelUserModel();

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

                foreach ($skills as $skill_id) {

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

            foreach ($total_skills_to_search as $skill_info) {

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

                $skill_profile->updateProfileInfo(

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

            if (!empty($skill_data)) {

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

        Display::$global_template->assign('profiles', $profiles);

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

                    if (!isset($user_skills[$my_skill['skill_id']])) {

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

                        $user_skills[$my_skill['skill_id']] = [

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

        $total_skills_to_search = $skills;

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

        $gradebook_list = [];

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

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

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

                krsort($ordered_user_list);

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

                        $found_counts++;

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

                $skill_data = 1;

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

                    if (!isset($user_skills[$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 "skill_item" is not in valid camel caps format
Open

                if (!empty($skill_item)) {

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

        $profile_id = isset($_REQUEST['profile_id']) ? $_REQUEST['profile_id'] : null;

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

        $template = Display::$global_template->get_template('skill/profile_item.tpl');

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

            Display::$global_template->assign('courses', $courses);

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

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

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

                    $total_skills_to_search[$my_skill['skill_id']] = $my_skill['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_data" is not in valid camel caps format
Open

                $skill_data = $skill_profile->save($params);

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

                    if (in_array($skill_id, $user_skill_list)) {

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

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

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

        Display::$global_template->assign('order_user_list', $ordered_user_list);

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

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

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

        echo Display::$global_template->fetch($template);

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

            $skill_profile = new SkillProfileModel();

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

        $skills = $skillRelProfile->getSkillsByProfile($profile_id);

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

        echo Display::$global_template->fetch($template);

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

            $html = Display::$global_template->fetch($template);

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

                foreach ($my_user_skills as $skill_item) {

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

        $all = $skill->getSkillsTreeToJson($userId, $skill_id, false, $depth);

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

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

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

        $template = Display::$global_template->get_template('skill/user_skills.tpl');

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

        Display::$global_template->assign('total_search_skills', $count_skills);

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

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

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

        $skill_list = [];

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

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

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

        Display::$global_template->assign('skill_list', $skill_list);

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

                foreach ($my_user_skills as $skill_item) {

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_skills[$skill_id] = ['skill_id' => $skill_id, 'found' => $found];

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

                        $user_skills[$skill_id] = ['skill_id' => $skill_id, 'found' => $found];

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

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

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

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

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

        $template = Display::$global_template->get_template('layout/hot_course_item_popup.tpl');

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

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

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

            $template = Display::$global_template->get_template('skill/skill_info.tpl');

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

        Display::$global_template->assign('order_user_list', $ordered_user_list);

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

                        $user_skills[$skill_id] = ['skill_id' => $skill_id, 'found' => $found];

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

        Display::$global_template->assign('total_search_skills', $count_skills);

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

        if (!empty($total_skills_to_search)) {

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

                $skill_data = $skill_profile->save($params);

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

        echo json_encode($gradebook_list);

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

            Display::$global_template->assign('skill', $skillInfo);

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

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

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

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

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

        $load_user_data = isset($_REQUEST['load_user_data']) ? $_REQUEST['load_user_data'] : null;

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

        $count_skills = count($skills);

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

                    if (in_array($skill_id, $user_skill_list)) {

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 "user_data" is not in valid camel caps format
Open

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

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

        $template = Display::$global_template->get_template('skill/profile.tpl');

There are no issues that match your filters.

Category
Status