chamilo/chamilo-lms

View on GitHub
public/main/exercise/exercise_report.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$this_section = SECTION_COURSES;

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

    $parameters['exerciseId'] = $exercise_id;

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

$exerciseExists = $objExerciseTmp->read($exercise_id);

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

    $lp_item_view_id = (int) $track_exercise_info['orig_lp_item_view_id'];

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

        $my_comments = $_POST['comments_'.$questionId] ?? '';

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

        $oldResultDisabled = $objExerciseTmp->results_disabled;

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

        $objExerciseTmp->results_disabled = RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS;

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

            $track_exercise_info,

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

if (($is_allowedToEdit || $is_tutor || api_is_coach()) &&

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

foreach ($group_list as $group) {

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

            'editoptions' => ['value' => $group_parameters],

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

    $exerciseId = $track_exercise_info['exe_exo_id'];

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

    $comments_exist = false;

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

                WHERE iid = $lp_item_view_id";

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

            api_get_path(WEB_CODE_PATH).'exercise/recalculate_all.php?'.api_get_cidreq()."&exercise=$exercise_id"

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

if (($is_allowedToEdit || $is_tutor || api_is_coach()) &&

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

        ExerciseLib::deleteExerciseAttempt($exe_id);

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

    $exe_id = (int) $_GET['id'];

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

$course_id = api_get_course_int_id();

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

        $post_content_id[] = isset($my_post_info[1]) ? $my_post_info[1] : null;

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

        header('Location: '.api_get_path(WEB_CODE_PATH).'exercise/exercise_show.php?id='.$id.'&student='.$student_id.'&'.api_get_cidreq());

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

if (!empty($group_parameters)) {

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

if ($is_allowedToEdit || $is_tutor) {

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

    $column_model = [

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

    $lpItemId = $track_exercise_info['orig_lp_item_id'];

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

            $questionListInPost[] = $my_post_info[1];

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

            $track_exercise_info['exe_id'],

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

if ($is_allowedToEdit || $is_tutor) {

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

    $sql = "UPDATE $TBL_TRACK_EXERCISES SET status = ''

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

if ($is_allowedToEdit) {

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

                    ),

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

    if (UserManager::userIsBossOfStudent(api_get_user_id(), $filter_user)) {

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

            $TBL_TRACK_ATTEMPT,

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

            if (!$objExerciseTmp->propagate_neg && $marks < 0) {

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

    if (!empty($exe_id)) {

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

if ($is_allowedToEdit || $is_tutor) {

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

if (($is_allowedToEdit || $is_tutor || api_is_coach()) &&

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

            $student_id,

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

if ($is_allowedToEdit && 'learnpath' != $origin) {

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

if (($is_allowedToEdit || $is_tutor || api_is_coach()) &&

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

if (api_is_student_boss() && !empty($filter_user)) {

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

$is_tutor = api_is_allowed_to_edit(true);

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

    $track_exercise_info = ExerciseLib::get_exercise_track_exercise_info($id);

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

        if ('comments' === $my_post_info[0]) {

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

            $track_exercise_info['exe_id'],

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

$filter_user = isset($_REQUEST['filter_by_user']) ? (int) $_REQUEST['filter_by_user'] : null;

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

$TBL_TRACK_EXERCISES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);

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

    $student_id = $track_exercise_info['exe_user_id'];

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

    $lp_item_view_id = (int) $track_exercise_info['orig_lp_item_view_id'];

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

            $track_exercise_info['exe_id'],

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

        $objExerciseTmp->results_disabled = $oldResultDisabled;

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

        $objExerciseTmp->results_disabled = $oldResultDisabled;

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

            $lp_id,

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

            $lp_item_view_id

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

    $exe_id = (int) $_GET['did'];

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

        header('Location: exercise_report.php?'.api_get_cidreq().'&exerciseId='.$exercise_id);

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

$url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_exercise_results&exerciseId='.$exercise_id.'&filter_by_user='.$filter_user.'&'.api_get_cidreq();

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

                'value' => $group_parameters,

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

    if ($is_allowedToEdit) {

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

    ($is_allowedToEdit || $is_tutor || $allowCoachFeedbackExercises)

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

    $lp_id = $track_exercise_info['orig_lp_id'];

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

    $sql = "UPDATE $TBL_TRACK_EXERCISES

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

            $lp = new learnpath($lp, api_get_course_info(), $student_id);

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

if (($is_allowedToEdit || $is_tutor || api_is_coach()) &&

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

    if ($allowCoachFeedbackExercises && api_is_coach($sessionId, $course_id)) {

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

    $session_id = $track_exercise_info['session_id'];

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

    $lp_id = $track_exercise_info['orig_lp_id'];

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

    foreach ($_POST as $key_index => $key_value) {

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

        $my_post_info = explode('_', $key_index);

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

            $comments_exist = true;

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

            $student_id,

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

                        $objExerciseTmp->pass_percentage

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

        $actions .= '<a id="export_opener" href="'.api_get_self().'?export_report=1&exerciseId='.$exercise_id.'" >'.

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

$group_parameters = [

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

    $group_parameters[] = $group['iid'].':'.$group['name'];

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

    $group_parameters = implode(';', $group_parameters);

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

$is_allowedToEdit = api_is_allowed_to_edit(null, true) ||

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

$TBL_LP_ITEM_VIEW = Database::get_course_table(TABLE_LP_ITEM_VIEW);

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

        if ($is_allowedToEdit) {

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

    if (empty($track_exercise_info)) {

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

        $post_content_id[] = isset($my_post_info[1]) ? $my_post_info[1] : null;

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

                if (!empty($objExerciseTmp->pass_percentage)) {

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

        $actions .= '<a href="live_stats.php?'.api_get_cidreq().'&exerciseId='.$exercise_id.'">'.

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

$url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_exercise_results&exerciseId='.$exercise_id.'&filter_by_user='.$filter_user.'&'.api_get_cidreq();

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

$TBL_TRACK_ATTEMPT = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);

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

                    $exercise_id

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

            'teacher_comment' => $my_comments,

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

                FROM '.$TBL_TRACK_ATTEMPT.' WHERE exe_id = '.$id.'

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

        $oldResultDisabled = $objExerciseTmp->results_disabled;

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

        $actions .= '<a href="stats.php?'.api_get_cidreq().'&exerciseId='.$exercise_id.'">'.

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

if (($is_allowedToEdit || $is_tutor || api_is_coach()) &&

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

            WHERE exe_id = $exe_id AND status = 'incomplete'";

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

        if ($objExerciseTmp->read($exercise_id)) {

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

$_course = api_get_course_info();

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

$locked = api_resource_is_locked_by_gradebook($exercise_id, LINK_EXERCISE);

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

    ($is_allowedToEdit || $is_tutor || $allowCoachFeedbackExercises)

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

    if (!empty($lp_id) && !empty($lpItemId)) {

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

        $actions .= '<a class="btn btn--plain" href="question_stats.php?'.api_get_cidreq().'&id='.$exercise_id.'">'.

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

$group_list = GroupManager::get_group_list();

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

if (empty($exercise_id)) {

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

    $session_id = $track_exercise_info['session_id'];

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

    foreach ($_POST as $key_index => $key_value) {

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

$action_links = '';

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

if (!empty($exercise_id)) {

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

    $student_id = $track_exercise_info['exe_user_id'];

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

    $post_content_id = [];

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

            $student_id,

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

    $group_parameters = implode(';', $group_parameters);

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

if ($is_allowedToEdit || $is_tutor) {

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        'Not validated'

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

$exercise_id = isset($_REQUEST['exerciseId']) ? (int) $_REQUEST['exerciseId'] : (isset($_GET['id']) ? (int) $_GET['id'] : 0);

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

                    $exercise_id

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

    $exeWeighting = $track_exercise_info['max_score'];

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

        $my_post_info = explode('_', $key_index);

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

        $post_content_id[] = isset($my_post_info[1]) ? $my_post_info[1] : null;

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

            ->setTeacherComment($my_comments)

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

        $objExerciseTmp->results_disabled = RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS;

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

        $sql = "UPDATE $TBL_LP_ITEM_VIEW

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

    Cookies.set('default_group_".$exercise_id."', defaultGroupId);

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

    $action_links = '

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

    defaultGroupId = Cookies.get('default_group_".$exercise_id."');

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

                self.location.href = "exercise_report.php?<?php echo api_get_cidreq(); ?>&exerciseId=<?php echo $exercise_id; ?>&delete_before_date="+dateForBDD+"&sec_token=<?php echo $token; ?>";

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

        $column_model = array_merge([$officialCodeRow], $column_model);

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

    $action_links,

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

$extra_params['beforeRequest'] = "

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

                        Cookies.set('default_group_<?php echo $exercise_id; ?>', defaultGroupId);

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

        $column_model = array_merge([$officialCodeRow], $column_model);

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

    <input type="hidden" name="exerciseId" id="exerciseId" value="<?php echo $exercise_id; ?>" />

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

$extra_params['autowidth'] = 'true';

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

    defaultGroupId = Cookies.get('default_group_".$exercise_id."');

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

    $column_model,

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

        if ($is_allowedToEdit || $is_tutor) {

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

        if ($is_allowedToEdit || $is_tutor) {

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

    $extra_params,

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

            var defaultGroupId = Cookies.get('default_group_<?php echo $exercise_id; ?>');

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

$extra_params['gridComplete'] = "

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

$extra_params['height'] = 'auto';

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

                    ),

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        'Not validated'

There are no issues that match your filters.

Category
Status