chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$tbl_forum_thread = Database::get_course_table(TABLE_FORUM_THREAD);

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

$table_evaluated[LINK_EXERCISE] = [

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

        $eval_log = new Evaluation();

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

$parent_cat = Category::load($parent_id);

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

    $row['resource_name'] = $resource_name;

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

$table_evaluated[LINK_ATTENDANCE] = [

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

            WHERE c_id = '.$course_id.' AND '.$table_evaluated[$row['type']][2].' = '.$row['ref_id'];

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

        $weight = round($original_total / $itemCount, 2);

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

$table_evaluated[LINK_LEARNPATH] = [

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

$original_total = $my_category['weight'];

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

    $resource_name = Database::fetch_array($result);

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

    if (isset($resource_name['lp_type'])) {

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

        $resource_name = $resource_name[4];

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

    $item_weight = $evaluationRow['weight'];

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

        $item_weight = $new_weight;

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

            'url' => Category::getUrl().'selectcat='.$my_selectcat,

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

$current_course_tool = TOOL_GRADEBOOK;

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

$my_category = $cat->showAllCategoryInfo($my_selectcat);

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

            $new_weight

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

                get_lang('Assessment home')

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

$this_section = SECTION_COURSES;

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

$sql = 'SELECT * FROM '.$table_link.' WHERE category_id = '.$my_selectcat;

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

                $resource_name = $resource_name[3];

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

               <td> '.$resource_name.' '.

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

                        value="'.$item_weight.'"/>

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

                null,

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

$action_details = '';

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

    'action_details' => $action_details,

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

$table_evaluated[LINK_STUDENTPUBLICATION] = [

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

$my_cat = Category::load($my_selectcat);

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

$parent_id = $my_cat->get_parent_id();

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

$masked_total = $parent_cat[0]->get_weight();

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

                $resource_name = $resource_name[3];

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

$sql = "SELECT * FROM $table_evaluation

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

$warning_message = sprintf(get_lang('The sum of all weights of activities must be %s'), $original_total);

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

$tbl_attendance = Database::get_course_table(TABLE_ATTENDANCE);

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

$table_evaluated[LINK_FORUM_THREAD] = [

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

$parent_cat = Category::load($parent_id);

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

            $table_evaluated[$row['type']][3],

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

        if ($total > $original_total) {

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

        $item_weight = $new_weight;

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

$my_cat = $my_cat[0];

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

                $resource_name = $resource_name['title'];

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

echo Display::return_message($warning_message, 'warning', false);

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

$parent_id = $my_cat->get_parent_id();

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

$original_total = $my_category['weight'];

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

$sql = 'SELECT * FROM '.$table_link.' WHERE category_id = '.$my_selectcat;

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

                $resource_name = $resource_name['title'];

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

        $new_weight = trim($_POST['link'][$row['id']]);

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

        $new_weight = trim($_POST['evaluation'][$evaluationRow['id']]);

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

        $item_weight = $new_weight;

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

$warning_message = sprintf(get_lang('The sum of all weights of activities must be %s'), $original_total);

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

        $item_weight = $new_weight;

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

        WHERE category_id = $my_selectcat

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

            $diff = $total - $original_total;

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

                ActionIcon::BACK,

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

    ).'

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

$course_id = api_get_course_int_id();

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

$my_category = $cat->showAllCategoryInfo($my_selectcat);

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

            $new_weight

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

                        value="'.$item_weight.'"/>

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

$currentUrl = api_get_self().'?'.api_get_cidreq().'&selectcat='.$my_selectcat;

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

$table_evaluation = Database::get_main_table(TABLE_MAIN_GRADEBOOK_EVALUATION);

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

$my_cat = Category::load($my_selectcat);

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

$my_cat = $my_cat[0];

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

$my_category = [];

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

$masked_total = $parent_cat[0]->get_weight();

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

    $item_weight = $row['weight'];

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

            'url' => Category::getUrl().'selectcat='.$my_selectcat,

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

                'ch-tool-icon',

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

                ICON_SIZE_MEDIUM,

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

$my_selectcat = isset($_GET['selectcat']) ? (int) $_GET['selectcat'] : 0;

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

if (empty($my_selectcat)) {

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

    $action_details = 'selectcat';

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

$table_link = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINK);

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

$table_evaluated[LINK_SURVEY] = [

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

            WHERE c_id = '.$course_id.' AND '.$table_evaluated[$row['type']][2].' = '.$row['ref_id'];

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

$actions = '<a href="'.Category::getUrl().'&selectcat='.$my_selectcat.'">

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

$table_evaluated[LINK_DROPBOX] = [

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

        $resource_name = $resource_name[4];

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

            $resource_name,

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

    if ($original_total !== $total) {

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

                ICON_SIZE_MEDIUM,

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

    ).'

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

                null,

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

                get_lang('Assessment home')

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

                ActionIcon::BACK,

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

                'ch-tool-icon',

There are no issues that match your filters.

Category
Status