chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

$extra_params = '';

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

    api_get_cidreq().'&exerciseId='.$objExercise->id.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id.'&learnpath_item_view_id='.$learnpathItemViewId.$extra_params;

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

if (false == $visible_return['value']) {

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

        if (0 == $attempt_result['attempt_revised']) {

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

            $objExercise->results_disabled,

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

            'learnpath_id' => $learnpath_id,

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

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

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

if (0 != $objExercise->expired_time && !empty($clock_expired_time)) {

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

if ($time_control) {

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

    $time_left = api_strtotime($clock_expired_time, 'UTC') - time();

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

    $extra_params = '&preview=1';

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

        $message = $visible_return['message'];

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

    $learnpath_id,

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

        $attempt_url .= $url_suffix;

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

    foreach ($header_names as $item) {

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

    if (!empty($my_attempt_array)) {

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

$current_course_tool = TOOL_QUIZ;

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

    $time_left = api_strtotime($clock_expired_time, 'UTC') - time();

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

if ($time_control && !empty($clock_expired_time) || isset($exercise_stat_info['exe_id'])) {

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

    $learnpath_item_id,

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

    $learnpath_item_id,

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

        $attempt_url .= http_build_query(['id' => $attempt_result['exe_id']]);

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

                $header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP'), get_lang('Score')];

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

        foreach ($my_attempt_array as $data) {

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

    $table_content,

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

    $htmlHeadXtra[] = $objExercise->showTimeControlJS($time_left);

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

if ($is_allowed_to_edit) {

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

$exercise_stat_info = $objExercise->get_stat_track_exercise_info(

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

    $objExercise->results_disabled,

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

        $score = ExerciseLib::show_score($attempt_result['score'], $attempt_result['max_score']);

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

        $attempt_url .= api_get_cidreq().'&show_headers=1&';

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

                'class' => $btn_class.'btn btn--plain',

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

        $attempt_message = Display::return_message($attempt_message, 'error');

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

    if (true == $visible_return['value']) {

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

$clock_expired_time = ExerciseLib::get_session_time_control_key($objExercise->id, $learnpath_id, $learnpath_item_id);

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

$clock_expired_time = ExerciseLib::get_session_time_control_key($objExercise->id, $learnpath_id, $learnpath_item_id);

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

$visible_return = $objExercise->is_visible(

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

$url_suffix = '';

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

    ])

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

        $attempt_link .= PHP_EOL.$teacher_revised;

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

if (!empty($exercise_url_button) && !$isLimitReached) {

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

            'exerciseId' => $exercise_id,

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

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

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

$is_allowed_to_edit = api_is_allowed_to_edit(null, true);

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

            'quiz_check_request_button',

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

                $attempt_link = '';

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

                RESULT_DISABLE_DONT_SHOW_SCORE_ONLY_IF_USER_FINISHES_ATTEMPTS_SHOW_ALWAYS_FEEDBACK == $objExercise->results_disabled

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

                if (!$objExercise->hasResultsAccess($attempt_result)) {

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

    $exercise_url_button = Display::return_message(get_lang('The portal do not allowed to start new test for the moment, please come back later.'));

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

            $exercise_url_button,

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

    'tool_id' => $exercise_id,

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

    $learnpath_item_id,

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

    api_get_cidreq().'&exerciseId='.$objExercise->id.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id.'&learnpath_item_view_id='.$learnpathItemViewId.$extra_params;

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

if ($time_control) {

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

$exercise_url_button = Display::url(

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

    $exercise_url,

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

            $attempt_url,

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

                RESULT_DISABLE_DONT_SHOW_SCORE_ONLY_IF_USER_FINISHES_ATTEMPTS_SHOW_ALWAYS_FEEDBACK != $objExercise->results_disabled

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

                $header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP'), get_lang('Details')];

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

                $header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP'), get_lang('Score')];

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

        $attempt_message = Display::return_message($attempt_message, 'error');

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

if (0 != $objExercise->expired_time && !empty($clock_expired_time)) {

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

if ($disable && empty($exercise_stat_info)) {

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

    api_get_cidreq().'&exerciseId='.$objExercise->id.'&learnpath_id='.$learnpath_id.'&learnpath_item_id='.$learnpath_item_id.'&learnpath_item_view_id='.$learnpathItemViewId.$extra_params;

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

    $exercise_url_button = null;

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

        $attempt_url .= http_build_query(['id' => $attempt_result['exe_id']]);

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

        $attempt_link = Display::url(

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

                $header_names = [

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

    if ($plugin->blockFinalExercise(api_get_user_id(), $exercise_id, $courseId, $sessionId)) {

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

        $attempt_url = api_get_path(WEB_CODE_PATH).'exercise/result.php?';

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

                    $attempt_link = '';

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

            $row['attempt_link'] = $attempt_link;

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

        $my_attempt_array[] = $row;

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

    $table_content = $table->toHtml();

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

$result = $objExercise->read($exercise_id, true);

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

$clock_expired_time = ExerciseLib::get_session_time_control_key($objExercise->id, $learnpath_id, $learnpath_item_id);

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

if ($time_control && !empty($clock_expired_time) || isset($exercise_stat_info['exe_id'])) {

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

if (isset($exercise_stat_info['exe_id'])) {

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

        $exercise_url_button = null;

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

                $attempt_result['exe_user_id'],

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

        $attempt_url .= $url_suffix;

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

        $teacher_revised = Display::label(get_lang('Validated'), 'success');

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

            RESULT_DISABLE_SHOW_SCORE_ONLY == $objExercise->results_disabled &&

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

    switch ($objExercise->results_disabled) {

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

    $attempt_message = get_lang('Attempts').' '.$counter.' / '.$selectAttempts;

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

        $attempt_message = Display::return_message($attempt_message, 'info');

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

$time_control = false;

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

    $time_control = true;

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

    $learnpath_id,

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

            [

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

                $attempt_result['score'],

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

            'date' => api_convert_and_format_date($attempt_result['start_date'], DATE_TIME_FORMAT_LONG),

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

            $header_names = [

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'] : null;

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

$exercise_url = api_get_path(WEB_CODE_PATH).'exercise/exercise_submit.php?'.

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

            $objExercise->results_disabled,

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

                $header_names = [

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

        $message .= $attempt_message;

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

    if ($is_allowed_to_edit) {

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

                $attempt_result['max_score'],

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

            'userIp' => $attempt_result['user_ip'],

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

            $header_names = [get_lang('Attempt'), get_lang('Start Date'), get_lang('IP')];

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

        $attempt_message = Display::return_message($attempt_message, 'info');

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

if ($time_control && !empty($clock_expired_time) || isset($exercise_stat_info['exe_id'])) {

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

    $learnpath_id,

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

$my_attempt_array = [];

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

$btn_class = ' ';

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

        $attempt_link .= PHP_EOL.$teacher_revised;

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

    $header_names = [];

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

                $header_names = [

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

            Display::getMdiIcon('loading', 'animate-spin hidden').' '.get_lang('TestYourBrowser'),

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

        ).PHP_EOL.'<strong id="quiz-check-request-text"></strong>';

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

$table_content = '';

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

    foreach ($attempts as $attempt_result) {

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

        $score = ExerciseLib::show_score($attempt_result['score'], $attempt_result['max_score']);

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

            $teacher_revised = Display::label(get_lang('Not validated'), 'info');

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

            'learnpath_item_id' => $learnpath_item_id,

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

    ])

Closing parenthesis of a multi-line function call must be on a line by itself
Open

    ])

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

            Display::getMdiIcon('loading', 'animate-spin hidden').' '.get_lang('TestYourBrowser'),

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

        ).PHP_EOL.'<strong id="quiz-check-request-text"></strong>';

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

            [

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

            'quiz_check_request_button',

There are no issues that match your filters.

Category
Status