chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

        'url' => api_get_path(WEB_CODE_PATH).'gradebook/gradebook_view_result.php?selecteval='.$select_eval.'&'.api_get_cidreq(),

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

$file_type = null;

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

$_course = api_get_course_info();

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

$eval = Evaluation::load($select_eval);

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

    $allresults = Result :: load(null, null, $select_eval, true);

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

                    header('Location: '.api_get_self().'?selecteval='.$select_eval.'&'.api_get_cidreq());

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

            $row_value = api_number_format(

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

    if (!$import_result_form->validate()) {

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

                'score' => $row_value,

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

$select_eval = (int) $_GET['selecteval'];

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

                $row_value,

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

            $result->set_score($row_value);

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

            $values = $import_result_form->exportValues();

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

        if (!empty($row_value) || 0 == $row_value) {

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

if (empty($select_eval)) {

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

        header('Location: gradebook_view_result.php?selecteval='.$select_eval.'&editresmessage=&'.api_get_cidreq());

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

    $import_result_form = new DataForm(

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

        api_get_self().'?import=&selecteval='.$select_eval,

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

$_user = api_get_user_info();

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

        $values = $edit_res_form->exportValues();

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

    $edit_res_form = new EvalForm(

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

        if (!empty($row_value) || 0 == $row_value) {

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

                $backUrl = api_get_self().'?selecteval='.$select_eval.'&'.api_get_cidreq();

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

                $url = api_get_self().'?selecteval='.$select_eval.'&'.api_get_cidreq().'&editres='.$result->get_id();

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

        $row_value = isset($values['score']) ? $values['score'] : 0;

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

        $result->set_evaluation_id($select_eval);

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

                $url = api_get_self().'?selecteval='.$select_eval.'&'.api_get_cidreq().'&editres='.$result->get_id();

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

        $resultlog->addResultLog($values['hid_user_id'], $select_eval);

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

        api_get_self().'?editres='.$resultedit[0]->get_id().'&selecteval='.$select_eval.'&'.api_get_cidreq()

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

    if ($edit_res_form->validate()) {

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

            $nr_results_added = 0;

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

                    header('Location: gradebook_view_result.php?selecteval='.$select_eval.'&incorrectdata=');

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

        $locked_status

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

                $head_ape_name = get_lang('First name').', '.get_lang('Last name');

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

                    $number_of_deleted_results++;

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

    header('Location: '.api_get_path(WEB_CODE_PATH).'gradebook/gradebook_view_result.php?allresdeleted=&selecteval='.$select_eval.'&'.api_get_cidreq());

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

        $results = Result::load(null, null, $select_eval);

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

        $data_array = $datagen->get_data(

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

        $header_names,

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

        echo $export_result_form->display();

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

            $file_name = $_FILES['import_file']['tmp_name'];

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

        if (0 == $nr_results_added) {

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

            $h1 = [get_lang('Trainer'), $officialcode.$_user['firstName'].', '.$_user['lastName']];

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

                $result[] = $user_info['username'];

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

        $data_array = $datagen->get_data(

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

        if (isset($edit_res_form)) {

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

                $head_display_score = get_lang('Ranking');

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

    header('Location: gradebook_view_result.php?selecteval='.$select_eval.'&'.api_get_cidreq());

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

                header('Location: gradebook_view_result.php?massdelete=&selecteval='.$select_eval.'&'.api_get_cidreq());

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

    $export_result_form = new DataForm(

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

        $export = $export_result_form->exportValues();

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

            $head_ape_name = '';

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

                $head_ape_name = get_lang('Last name').', '.get_lang('First name');

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

            $head_table = [

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

                [$head_ape_name, 40],

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

                $user_info = api_get_user_info($data['id']);

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

                if (null == $number_decimals) {

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

                $title_pdf

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

        switch ($file_type) {

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

            $header_names = [

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

                                header('Location: '.api_get_path(WEB_CODE_PATH).'gradebook/gradebook_view_result.php?selecteval='.$select_eval.'&import_score_error='.$importedresult['user_id']);

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

            header('Location: '.api_get_self().'?selecteval='.$select_eval.'&importoverwritescore='.$overwritescore);

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

            $h3 = [get_lang('Course'), $_course['name']];

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

    if (isset($export_result_form) && !(isset($edit_res_form))) {

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

        if (isset($import_result_form)) {

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

            $file_type = $_POST['file_type'];

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

                    $result->set_evaluation_id($select_eval);

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

        header('Location: '.api_get_self().'?selecteval='.$select_eval.'&importok=');

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

        if ('csv' === $file_type) {

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

        if ('pdf' === $file_type) {

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

                $data_table[] = $result;

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

                $number_of_deleted_results = 0;

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

            $header_names = [get_lang('First name'), get_lang('Last name'), get_lang('Score')];

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

            echo $import_result_form->display();

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

            header('Location: '.api_get_self().'?import=&selecteval='.$select_eval.'&importnofile=');

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

    if (!$export_result_form->validate()) {

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

                        header('Location: gradebook_view_result.php?selecteval='.$select_eval.'&import_user_error='.$importedresult['user_id']);

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

                    $result[] = $user_info['firstname'].', '.$user_info['lastname'];

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

                    $result[] = $user_info['firstname'].', '.$user_info['lastname'];

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

                $data_table,

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

        'url' => api_get_path(WEB_CODE_PATH).'gradebook/gradebook_view_result.php?selecteval='.$select_eval.'&'.api_get_cidreq(),

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

                        header('Location: gradebook_view_result.php?selecteval='.$select_eval.'&overwritemax=');

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

    if ($export_result_form->validate()) {

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

                    $result[] = $user_info['lastname'].', '.$user_info['firstname'];

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

                    $result[] = $user_info['lastname'].', '.$user_info['firstname'];

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

                $head_table,

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

if (null == $file_type) {

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

    if (isset($export_result_form) && !(isset($edit_res_form))) {

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

            !empty($_user['official_code']) ? $officialcode = $_user['official_code'].' - ' : '';

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

            !empty($_user['official_code']) ? $officialcode = $_user['official_code'].' - ' : '';

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

            $title_pdf = $eval[0]->get_name();

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

                $head_table[] = [get_lang('Letters'), 15];

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

            $head_display_score = '';

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

            foreach ($data_array as $data) {

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

    if ('0' == $number_of_selected_items) {

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

            $header_names = [

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

            echo $edit_res_form->toHtml();

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

                    $nr_results_added++;

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

            $number_decimals = api_get_setting('gradebook_number_decimals');

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

                $head_table[] = [$head_display_score, 15];

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

        'url' => 'gradebook_view_result.php?selecteval='.$select_eval.'&'.api_get_cidreq(),

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

            $header_pdf = [$h1, $h2, $h3, $h4, $h5, $h6];

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

            $footer_pdf = [$f1, $f2, $f3];

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

                $data_array = $datagen->get_data(

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

                $data_array = $datagen->get_data(

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

            $data_table = [];

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

            $results = Import :: csvToArray($file_name);

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

    $locked_status = $eval[0]->get_locked();

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

            $h1 = [get_lang('Trainer'), $officialcode.$_user['firstName'].', '.$_user['lastName']];

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

                $head_table[] = [$head_display_score, 15];

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

                $header_pdf,

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

                $footer_pdf,

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

            $header_names = [get_lang('Last name'), get_lang('First name'), get_lang('Score')];

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

    foreach ($data_array as $data) {

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

            header('Location: '.api_get_self().'?selecteval='.$select_eval.'&nothingadded=');

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

        api_get_self().'?export=&selecteval='.$select_eval.'&'.api_get_cidreq(),

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

        $file_type = $export['file_type'];

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

            if (null == $number_decimals) {

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

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

There are no issues that match your filters.

Category
Status