chamilo/chamilo-lms

View on GitHub
public/main/gradebook/gradebook.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        $targetcat = Category :: load($get_target_cat);

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

        $confirmation_message = get_lang('Visibility modified');

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

                $number_of_deleted_categories = 0;

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

    if ($move_form->validate()) {

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

    $filter_confirm_msg = false;

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

        $confirmation_message = get_lang('The link has been deleted');

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

                        $number_of_deleted_evaluations++;

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

        $visibility_command = 1;

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

        $visibility_command = 1;

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

    $link[0]->set_visible($visibility_command);

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

$course_to_crsind = isset($course_to_crsind) ? $course_to_crsind : '';

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

    $filter_warning_msg = false;

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

                $confirmation_message = get_lang('Deleted categories').' : <b>'.$number_of_deleted_categories.'</b><br />'.get_lang('Deleted evaluations').' : <b>'.$number_of_deleted_evaluations.'</b><br />'.get_lang('Deleted links').' : <b>'.$number_of_deleted_links.'</b><br /><br />'.get_lang('Total resources').' : <b>'.$number_of_selected_items.'</b>';

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

                $confirmation_message = get_lang('Deleted categories').' : <b>'.$number_of_deleted_categories.'</b><br />'.get_lang('Deleted evaluations').' : <b>'.$number_of_deleted_evaluations.'</b><br />'.get_lang('Deleted links').' : <b>'.$number_of_deleted_links.'</b><br /><br />'.get_lang('Total resources').' : <b>'.$number_of_selected_items.'</b>';

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

$filter_confirm_msg = true;

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

                .'&targetcat='.$move_form->exportValue('move_cat'));

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

    $get_move_eval = Security::remove_XSS($_GET['moveeval']);

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

        $visibility_command = 1;

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

    $filter_confirm_msg = false;

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

        $confirmation_message = get_lang('Visibility modified');

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

        $filter_confirm_msg = false;

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

        $confirmation_message = get_lang('InVisibility modified');

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

        $filter_confirm_msg = false;

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

$course_to_crsind = isset($course_to_crsind) ? $course_to_crsind : '';

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

    $move_cat = (int) $_GET['movecat'];

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

        $get_target_cat = Security::remove_XSS($_GET['targetcat']);

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

                $number_of_deleted_evaluations = 0;

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

                $number_of_deleted_links = 0;

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

                $confirmation_message = get_lang('Deleted categories').' : <b>'.$number_of_deleted_categories.'</b><br />'.get_lang('Deleted evaluations').' : <b>'.$number_of_deleted_evaluations.'</b><br />'.get_lang('Deleted links').' : <b>'.$number_of_deleted_links.'</b><br /><br />'.get_lang('Total resources').' : <b>'.$number_of_selected_items.'</b>';

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

        $course_to_crsind = (null != $cats[0]->getCourseId() && null == $targetcat[0]->getCourseId());

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

        if ($move_form->validate()) {

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

        $confirmation_message = get_lang('InVisibility modified');

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

                        $number_of_deleted_categories++;

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

    $this_section = SECTION_COURSES;

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

    $evals = Evaluation :: load($get_move_eval);

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

        if (!($course_to_crsind && !isset($_GET['confirm']))) {

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

        $confirmation_message = get_lang('InVisibility modified');

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

    $warning_message = get_lang('Warning: moving gradebook elements can be dangerous for the data inside your gradebook.').'<br><br>'.$button;

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

    $number_of_selected_items = count($_POST['id']);

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

        $targetcat = Category :: load($get_target_cat);

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

        $get_target_cat = Security::remove_XSS($_GET['targetcat']);

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

            api_get_self().'?movecat='.$move_cat.'&selectcat='.$selectcat

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

        $move_form = new EvalForm(

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

        $course_to_crsind = (null != $evals[0]->getCourseId() && null == $targetcat[0]->getCourseId());

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

        $targetcat = Category :: load($move_form->exportValue('move_cat'));

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

        $visibility_command = 0;

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

    $confirmation_message = get_lang('The category has been deleted.');

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

    $confirmation_message = get_lang('Assessment deleted');

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

                            $number_of_deleted_links++;

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

    $this_section = SECTION_MYGRADEBOOK;

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

            api_get_self().'?moveeval='.$get_move_eval.'&selectcat='.$selectcat

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

                .'&moveeval='.$get_move_eval

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

    $eval[0]->set_visible($visibility_command);

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

$course_to_crsind = isset($course_to_crsind) ? $course_to_crsind : '';

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

        $warning_message = get_lang('No resource selected');

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

                $confirmation_message = get_lang('Deleted categories').' : <b>'.$number_of_deleted_categories.'</b><br />'.get_lang('Deleted evaluations').' : <b>'.$number_of_deleted_evaluations.'</b><br />'.get_lang('Deleted links').' : <b>'.$number_of_deleted_links.'</b><br /><br />'.get_lang('Total resources').' : <b>'.$number_of_selected_items.'</b>';

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

                .'&targetcat='.$move_form->exportValue('move_cat'));

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

        $filter_warning_msg = false;

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

$_in_course = false;

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

    $cats = Category :: load($move_cat);

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

                .'&movecat='.$move_cat

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

    if ($visibility_command) {

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

if ($course_to_crsind && !isset($_GET['confirm'])) {

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

$filter_warning_msg = true;

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

                .'&targetcat='.$move_form->exportValue('move_cat'));

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

        $visibility_command = 0;

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

    if ('0' == $number_of_selected_items) {

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

    $link = LinkFactory::load($get_move_link);

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

        api_get_self().'?movelink='.$get_move_link.'&selectcat='.$selectcat

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

        $filter_confirm_msg = false;

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

        $filter_confirm_msg = false;

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

        $visibility_command = 0;

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

        if (!($course_to_crsind && !isset($_GET['confirm']))) {

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

    $move_form = new LinkForm(

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

    $cats[0]->set_visible($visibility_command);

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

    if ($visibility_command) {

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

        $filter_confirm_msg = false;

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

    if ($category[0]->is_certificate_available($user_id)) {

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

        $scorecourse_display = (isset($scorecourse) ? $scoredisplay->display_score($scorecourse, SCORE_AVERAGE) : get_lang('NoResults and feedbackAvailable'));

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

    $allcat = $allcat_info;

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

        $move_form = new CatForm(

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

        if ($move_form->validate()) {

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

                .'&targetcat='.$move_form->exportValue('move_cat'));

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

    $get_move_link = Security::remove_XSS($_GET['movelink']);

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

        $filter_confirm_msg = false;

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

    if ($visibility_command) {

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

        $confirmation_message = get_lang('Visibility modified');

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

        $filter_confirm_msg = false;

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

        $header_names = [

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

 \'%s\''), $organization_name, $stud_fn.' '.$stud_ln, $category[0]->get_name(), $scorecourse_display);

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

 \'%s\''), $organization_name, $stud_fn.' '.$stud_ln, $category[0]->get_name(), $scorecourse_display);

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

        $is_course_admin,

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

                $filter_confirm_msg = false;

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

$is_course_admin = api_is_allowed_to_edit();

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

        $scorecourse = $category[0]->calc_score($user_id);

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

if (isset($allcat_info) && count($allcat_info) >= 0 &&

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

    $allcat = $cats[0]->get_subcategories($stud_id);

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

if (isset($confirmation_message)) {

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

    Display::addFlash(Display::return_message($confirmation_message, 'confirmation', $filter_confirm_msg));

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

    Display::addFlash(Display::return_message($warning_message, 'warning', $filter_warning_msg));

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

$values = $simple_search_form->exportValues();

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

if (isset($warning_message)) {

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

    $user_id = strval(intval($_GET['user']));

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

        $is_course_admin,

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

                $filter_confirm_msg = false;

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

if ($simple_search_form->validate() && (empty($keyword))) {

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

        $stud_fn = $user['firstname'];

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

 \'%s\''), $organization_name, $stud_fn.' '.$stud_ln, $category[0]->get_name(), $scorecourse_display);

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

        $certif_text = str_replace("\\n", "\n", $certif_text);

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

        $certif_text = str_replace("\\n", "\n", $certif_text);

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

        $allcat_info = Category::find_category($keyword, $allcat);

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

        $stud_ln = $user['lastname'];

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

        $simple_search_form

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

        $is_platform_admin,

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

                $confirmation_message = get_lang('Deleted categories').' : <b>'.$number_of_deleted_categories.'</b><br />'.get_lang('Deleted evaluations').' : <b>'.$number_of_deleted_evaluations.'</b><br />'.get_lang('Deleted links').' : <b>'.$number_of_deleted_links.'</b><br /><br />'.get_lang('Total resources').' : <b>'.$number_of_selected_items.'</b>';

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

                $confirmation_message = get_lang('The resources became visible');

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

                $confirmation_message = get_lang('The resources became invisible');

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

$simple_search_form = new UserForm(

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

        $user = api_get_user_info($user_id);

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

        $scoretotal_display = (isset($scoretotal) ? $scoredisplay->display_score($scoretotal, SCORE_PERCENT) : get_lang('NoResults and feedbackAvailable'));

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

        $certif_text = sprintf(get_lang('%s certifies that

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

    !$is_platform_admin && $is_course_admin && !isset($_GET['selectcat']) && api_is_course_tutor()

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

        $simple_search_form

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

                $filter_confirm_msg = false;

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

    $stud_id = (api_is_allowed_to_edit() ? null : api_get_user_id());

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

        foreach ($data_array as $data) {

Multi-line function call not indented correctly; expected 4 spaces but found 8
Open

        .'&search='.Security::remove_XSS($_POST['keyword']));

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

    Display::addFlash(Display::return_message($warning_message, 'warning', $filter_warning_msg));

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

        $user_id = api_get_user_id();

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

        $organization_name = api_get_setting('Institution');

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

 \'%s\''), $organization_name, $stud_fn.' '.$stud_ln, $category[0]->get_name(), $scorecourse_display);

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

if (isset($move_form)) {

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

    $alllink = $cats[0]->get_links($stud_id, true);

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

    !$is_platform_admin && $is_course_admin && !isset($_GET['selectcat']) && api_is_course_tutor()

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

    Display::addFlash(Display::return_message($confirmation_message, 'confirmation', $filter_confirm_msg));

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

    Display::addFlash(Display::return_message($move_form->toHtml(), 'normal', false));

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

        $portal_name = api_get_setting('siteName');

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

    $alllink = $cats[0]->get_links($stud_id);

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

$is_platform_admin = api_is_platform_admin();

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

        $data_array = $datagen->get_data(GradebookDataGenerator :: GDG_SORT_NAME, 0, null, true);

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

    $alleval = $cats[0]->get_evaluations($stud_id);

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

if (isset($allcat_info) && count($allcat_info) >= 0 &&

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

    $alleval = $cats[0]->get_evaluations($stud_id, true);

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

        $scoretotal = $cattotal[0]->calc_score($user_id);

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

    $stud_id = (api_is_allowed_to_edit() ? null : api_get_user_id());

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

        $is_platform_admin,

There are no issues that match your filters.

Category
Status