chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    if (!empty($exercise_stat_info) && isset($exercise_stat_info['exe_exo_id'])) {

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

if (!empty($learnpath_id) && $saveResults) {

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

        .'&lp_item_id='.$learnpath_item_id.'&exeId='.$exeId

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

    $total_score = $exercise_stat_info['score'];

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

$this_section = SECTION_COURSES;

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

$learnpath_item_id = $exercise_stat_info['orig_lp_item_id'] ?? 0;

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

            <input type="hidden" name="learnpath_item_view_id" value="'.$learnpath_item_view_id.'"/>

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

$oldResultDisabled = $objExercise->results_disabled;

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

$current_course_tool = TOOL_QUIZ;

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

$exercise_stat_info = $objExercise->get_stat_track_exercise_info_by_exe_id($exeId);

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

        $attempt_count++;

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

$objExercise->results_disabled = $oldResultDisabled;

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

    if (!empty($exercise_stat_info) && isset($exercise_stat_info['exe_exo_id'])) {

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

        header('Location: overview.php?exerciseId='.$exercise_stat_info['exe_exo_id'].'&'.api_get_cidreq());

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

$learnpath_item_view_id = $exercise_stat_info['orig_lp_item_view_id'] ?? 0;

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

    $href = 'fullscreen' === $lp_mode ? ' window.opener.location.href="'.$url.'" ' : ' top.location.href="'.$url.'"';

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

$learnpath_id = $exercise_stat_info['orig_lp_id'] ?? 0;

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

$learnpath_item_id = $exercise_stat_info['orig_lp_item_id'] ?? 0;

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

            <input type="hidden" name="learnpath_id" value="'.$learnpath_id.'"/>

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

    (int) $learnpath_item_id,

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

    Exercise::saveExerciseInLp($learnpath_item_id, $exeId);

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

    $lp_mode = Session::read('lp_mode');

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

    if ($attempt_count >= $objExercise->selectAttempts()) {

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

            'warning',

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

$objExercise->results_disabled = RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS;

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

    $attempt_count++,

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

$learnpath_id = $exercise_stat_info['orig_lp_id'] ?? 0;

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

$learnpath_item_view_id = $exercise_stat_info['orig_lp_item_view_id'] ?? 0;

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

            <input type="hidden" name="learnpath_item_id" value="'.$learnpath_item_id.'"/>

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

            'learnpath_item_id' => $learnpath_item_id,

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

    (int) $learnpath_id,

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

    $total_score = $exercise_stat_info['score'];

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

    $learnpath_item_id

Consider putting global function "showEmbeddableFinishButton" in a static class
Open

function showEmbeddableFinishButton()

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

$i = $total_score = $maxScore = 0;

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

if (!empty($exercise_stat_info)) {

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

    $exercise_stat_info,

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

    $url = '../lp/lp_controller.php?'.api_get_cidreq().'&action=view&lp_id='.$learnpath_id

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

    Exercise::saveExerciseInLp($learnpath_item_id, $exeId, $courseId);

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

            'learnpath_id' => $learnpath_id,

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

            'learnpath_item_view_id' => $learnpath_item_view_id,

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

$attempt_count = Event::get_attempt_count(

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

    $exercise_stat_info = $objExercise->get_stat_track_exercise_info_by_exe_id($exeId);

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

    'action_details' => $learnpath_id,

Missing function doc comment
Open

function showEmbeddableFinishButton()

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

    (int) $learnpath_item_view_id

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

            false

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

$total_score = 0;

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

    'action' => $learnpath_id,

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

        $remainingAttempts = $objExercise->selectAttempts() - $attempt_count;

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

    $learnpath_id,

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

        .'&fb_type='.$objExercise->getFeedbackType().'#atoc_'.$learnpath_item_id;

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

    $pageBottom .= "<script>window.parent.API.void_save_asset('$total_score', '$maxScore', 0, 'completed');</script>";

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

            false

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

            'warning',

There are no issues that match your filters.

Category
Status