chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

        window.location.href = "exercise_submit.php?'.api_get_cidreq().'&tryagain=1&exerciseId='.$exerciseId.'&num="+num+"&learnpath_item_id='.$learnpath_item_id.'&learnpath_id='.$learnpath_id.'";

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

                StateIcon::COMPLETE,

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

$learnpath_id = isset($_REQUEST['learnpath_id']) ? (int) $_REQUEST['learnpath_id'] : 0;

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

$current_course_tool = TOOL_QUIZ;

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

        window.location.href = "exercise_submit.php?'.api_get_cidreq().'&tryagain=1&exerciseId='.$exerciseId.'&num="+num+"&learnpath_item_id='.$learnpath_item_id.'&learnpath_id='.$learnpath_id.'";

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

        window.location.href = "exercise_result.php?'.api_get_cidreq().'&exe_id='.$exeId.'&take_session=1&exerciseId='.$exerciseId.'&num="+num+"&learnpath_item_id='.$learnpath_item_id.'&learnpath_id='.$learnpath_id.'";

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

$learnpath_item_id = isset($_REQUEST['learnpath_item_id']) ? (int) $_REQUEST['learnpath_item_id'] : 0;

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

                ICON_SIZE_SMALL

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

    ).'<a onclick="SendEx('.$num_value_array[0].');" href="#">'.get_lang('Try again').'</a><br /><br />';

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

        window.location.href = "exercise_result.php?'.api_get_cidreq().'&exe_id='.$exeId.'&take_session=1&exerciseId='.$exerciseId.'&num="+num+"&learnpath_item_id='.$learnpath_item_id.'&learnpath_id='.$learnpath_id.'";

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

            $_SESSION['hotspot_coord'][$questionId][1] = $delineation_cord;

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

                'width:22px; height:22px; padding-left:0px;padding-right:5px;',

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

            $links .= '<a onclick="SendEx('.$num_value_array[0].');" href="#">'.

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

    $extraUrl = '&loaded=1&exerciseId='.$exerciseId.'&num='.$questionNum.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id;

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

            $delineation_cord = $objAnswerTmp->selectHotspotCoordinates(1);

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

                get_lang('Question').' '.$num_value_array[0].'</a>&nbsp;';

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

            $_SESSION['hotspot_dest'][$questionId][1] = $answer_delineation_destination;

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

                get_lang('Question').' '.$num_value_array[0].'</a>&nbsp;';

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

        $num_value_array = array_keys($questionList, $destinationId);

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

            ).'<a onclick="SendEx(-1);" href="#">'.get_lang('End of activity').'</a><br /><br />';

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

    ).'<a target="_blank" href="'.$lp_url.'">'.get_lang('Theory link').'</a><br />';

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

            $answer_delineation_destination = $objAnswerTmp->selectDestination(1);

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

    $num_value_array = array_keys($questionList, $questionId);

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

                'ch-tool-icon',

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

    $lp_url = api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?'.api_get_cidreq().'&action=view&lp_id='.$lp;

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

            $num_value_array = array_keys($questionList, $destinationId);

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

    $extraUrl = '&loaded=1&exerciseId='.$exerciseId.'&num='.$questionNum.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id;

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

        $links .= '<a onclick="SendEx('.$num_value_array[0].');" href="#">'.

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

                StateIcon::COMPLETE,

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

            ).'<a onclick="SendEx(-1);" href="#">'.get_lang('End of activity').'</a><br /><br />';

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

                'width:22px; height:22px; padding-left:0px;padding-right:5px;',

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

                'ch-tool-icon',

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

                ICON_SIZE_SMALL

There are no issues that match your filters.

Category
Status