chamilo/chamilo-lms

View on GitHub
public/main/exercise/hotspot_admin.inc.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    $hotspot_type = UnserializeApi::unserialize('not_allowed_classes', $hotspot_type);

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

            $threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;

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

                $try_str = 1;

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

            $destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

            $try_str = 0;

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

            $lp_str = $lp_noerror;

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

                    $hotspot_coordinates[$i],

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

            echo '<script type="text/javascript">window.location.href="'.$hotspot_admin_url

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

                $try_str = 0;

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

        $threadhold_total = '0;0;0';

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

            $question_str = 0;

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

            $question_str = $selectQuestionNoError;

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

$hotspot_admin_url = api_get_path(WEB_CODE_PATH).'exercise/admin.php?'.api_get_cidreq().'&exerciseId='.$exerciseId;

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

        $destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

                $lp_str = $lp[$i];

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

                $question_str = $select_question[$i];

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

        if ('on' == $try_noerror) {

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

        if (empty($lp_noerror)) {

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

        $destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

$hotspot_type = $_REQUEST['hotspot_type'] ?? null;

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

                $question_str = $select_question[$i];

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

        $lp_noerror = isset($_POST['lp_noerror']) ? Security::remove_XSS($_POST['lp_noerror']) : '';

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

        $destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

        $destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

    $hotspot_coordinates = UnserializeApi::unserialize('not_allowed_classes', $hotspot_coordinates);

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

    $hotspot_type = UnserializeApi::unserialize('not_allowed_classes', $hotspot_type);

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

                $threadhold3_str = 0;

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

                $lp_str = 0;

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

            $url_str = '';

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

                $comment_noerror,

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

    $hotspot_coordinates = UnserializeApi::unserialize('not_allowed_classes', $hotspot_coordinates);

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

                $threadhold3_str = (int) $threadhold3[$i];

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

            $threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;

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

            $destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

            $try_str = 1;

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

                    $hotspot_coordinates[$i],

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

                $threadhold2_str = 0;

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

                $url_str = $url[$i];

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

            if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {

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

            if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {

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

            $url_str = $url_noerror;

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

                $threadhold2_str = (int) $threadhold2[$i];

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

        $destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

$hotspot_coordinates = $_REQUEST['hotspot_coordinates'] ?? null;

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

            $destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

        $comment_noerror = isset($_POST['comment_noerror']) ? Security::remove_XSS($_POST['comment_noerror']) : null;

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

                    $hotspot_type[$i],

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

                    $hotspot_type[$i]

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

        $select_question = isset($_POST['select_question']) ? $_POST['select_question'] : null;

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

            if (isset($select_question[$i]) && !empty($select_question[$i])) {

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

        $destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

            if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {

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

                $threadhold1_str = 0;

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

                $threadhold1_str = (int) $threadhold1[$i];

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

            $threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;

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

            $question_str = 0;

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

            $lp_str = $lp_noerror;

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

            if (isset($select_question[$i]) && !empty($select_question[$i])) {

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

            $destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

        $url_noerror = isset($_POST['url_noerror']) ? Security::remove_XSS($_POST['url_noerror']) : null;

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

            $lp_str = 0;

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

        if ('' == $url_noerror) {

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

            $url_str = '';

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

                $destination_noerror

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

            if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {

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

            $threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;

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

            $destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;

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

        $try_noerror = isset($_POST['try_noerror']) ? Security::remove_XSS($_POST['try_noerror']) : null;

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

            $url_str = $url_noerror;

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

            $try_noerror = 1;

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

        $lp_noerror = $destination_items[2];

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

        $selectQuestionNoError = $destination_items[3];

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

        $destination_items = [];

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

            $hotspot_coordinates[$i] = $objAnswer->selectHotspotCoordinates($i);

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

    $hotspot_admin_url = api_get_path(WEB_CODE_PATH).'exercise/admin.php?'.api_get_cidreq().'&'

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

                $threadhold_items = explode(';', $threadhold_total);

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

                $threadhold2[$i] = $threadhold_items[1];

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

        $destination_items = explode('@@', $destination_noerror_list);

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

        $hotspot_colors = [

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

                                            <?php echo $option_lp; ?>

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

            echo '<script type="text/javascript">window.location.href="'.$hotspot_admin_url

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

                $threadhold_total = $destination_items[0];

Closing brace indented incorrectly; expected 16 spaces, found 8
Open

        } else {

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

                if (isset($select_question[$i]) && $questionid == $select_question[$i]) {

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

        $comment_noerror = $objAnswer->selectComment($nbrAnswers + 1);

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

        if (empty($destination_noerror_list)) {

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

                                                            <?php echo $option_lp; ?>

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

                $threadhold3[$i] = $threadhold_items[2];

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

                $lp[$i] = $destination_items[2];

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

    $_SESSION['tmp_answers']['hotspot_coordinates'] = $hotspot_coordinates;

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

            $option_lp = '';

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

        $url_noerror = $destination_items[4];

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

        $destination_noerror_list = $objAnswer->selectDestination($nbrAnswers + 1);

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

    $flat_list = $list->get_flat_list();

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

            foreach ($flat_list as $id => $details) {

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

                $option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;

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

                $option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course')

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

                $option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';

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

                                .'</option>'.$option_lp;

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

                                echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>

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

            if (isset($select_question[$i]) && -1 == $select_question[$i]) {

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

                                                            <?php echo $option_feed; ?>

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

            $try_noerror = 0;

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

                $select_question[$i] = $destination_items[3];

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

        $url_noerror = $destination_items[4];

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

                $option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;

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

            $option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';

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

                $threadhold_total = $destination_items[0];

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

        $destination_items = explode('@@', $destination_noerror_list);

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

        $try_noerror = $destination_items[1];

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

        $lp_noerror = $destination_items[2];

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

    $_SESSION['tmp_answers']['hotspot_type'] = $hotspot_type;

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

            $lest_answer = 1;

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

                $option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';

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

            $option_feed = '';

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

                if (isset($select_question[$i]) && $questionid == $select_question[$i]) {

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

                                echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>

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

                $threadhold_items = explode(';', $threadhold_total);

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

        $try_noerror = $destination_items[1];

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

                $option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';

Closing brace indented incorrectly; expected 32 spaces, found 16
Open

                } else {

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

            $hotspot_type[$i] = $objAnswer->selectHotspotType($i);

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

                $select_question[$i] = $destination_items[3];

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

            $destination_noerror_list = '@@@@@@@@';

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

    <form method="post" action="<?php echo $hotspot_admin_url; ?>" class="form-horizontal" id="frm_exercise"

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

            if (isset($select_question[$i]) && -1 == $select_question[$i]) {

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

                $option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';

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

        $hotspot_coordinates = [];

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

                $threadhold1[$i] = $threadhold_items[0];

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

            foreach ($question_list as $key => $questionid) {

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

                                      style="color: <?php echo $hotspot_colors[$i]; ?>;"></span>

Closing brace indented incorrectly; expected 48 spaces, found 36
Open

                                    } ?> />

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

        $hotspot_type = [];

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

                $destination_items = explode('@@', $destination[$i]);

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

                $url[$i] = $destination_items[4];

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

                                            <?php echo $option_feed; ?>

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

                $try[$i] = $destination_items[1];

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

            if ($nbrAnswers > $lest_answer) {

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

        $hotspot_colors = [

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

            $question_list = $objExercise->selectQuestionList();

Closing brace indented incorrectly; expected 28 spaces, found 32
Open

                                } else {

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

                                      style="color: <?php echo $hotspot_colors[$i]; ?>"></span>

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

                                echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>

Closing brace indented incorrectly; expected 54 spaces, found 36
Open

                                    } ?> />

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

    $option_feed = '';

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

        if (isset($lp_noerror) && $id == $lp_noerror) {

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

        $option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';

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

                                echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>

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

        $option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;

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

        $option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course').'</option>'

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

    $question_list = $objExercise->selectQuestionList();

Closing brace indented incorrectly; expected 50 spaces, found 12
Open

            } ?> />

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

            $renderer->setFormTemplate($form_template);

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

    $option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';

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

        $option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';

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

                            <span class="fa fa-square fa-2x" style="color: <?php echo $hotspot_colors[$i]; ?>"

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

        if (isset($lp_noerror) && $id == $lp_noerror) {

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

                                        <?php echo $option_lp; ?>

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

            $form_template = '{content}';

Closing brace indented incorrectly; expected 24 spaces, found 8
Open

        } else {

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

            $element_template = '{label} {element}';

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

                                   value="<?php echo empty($hotspot_coordinates[$i])

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

                                   value="<?php echo empty($hotspot_type[$i]) ? 'square' : $hotspot_type[$i]; ?>"/>

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

                        .$option_lp;

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

                                        <?php echo $option_feed; ?>

Closing brace indented incorrectly; expected 24 spaces, found 8
Open

        } else {

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

                                            <?php echo $option_lp; ?>

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

            $renderer->setElementTemplate($element_template);

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

                                   value="<?php echo empty($hotspot_type[$i]) ? 'square' : $hotspot_type[$i]; ?>"/>

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

    $option_lp = '';

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

        $option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';

Closing brace indented incorrectly; expected 39 spaces, found 24
Open

                        } ?></th>

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

                                            <?php echo $option_feed; ?>

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

    $flat_list = $list->get_flat_list();

Closing brace indented incorrectly; expected 36 spaces, found 20
Open

                    } else {

Closing brace indented incorrectly; expected 28 spaces, found 32
Open

                                } else {

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

    foreach ($flat_list as $id => $details) {

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

                                      name="comment_noerror"><?php echo Security::remove_XSS($comment_noerror); ?></textarea>

Closing brace indented incorrectly; expected 12 spaces, found 4
Open

    } else {

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

        $option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';

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

                                                   name="try_noerror" <?php if (1 == $try_noerror) {

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

                                    <input class="form-control" name="url_noerror" value="<?php echo $url_noerror; ?>">

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

        $option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;

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

    foreach ($question_list as $key => $questionid) {

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

                                       : $hotspot_coordinates[$i]; ?>"/>

Line indented incorrectly; expected 24 spaces, found 12
Open

            }

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';

Line indented incorrectly; expected 36 spaces, found 24
Open

                        }

Line indented incorrectly; expected 32 spaces, found 20
Open

                    }

Line indented incorrectly; expected at least 40 spaces, found 28
Open

                            $selected2 = 'selected="selected"';

Line indented incorrectly; expected 36 spaces, found 24
Open

                        if ($k == $threadhold3[$i]) {

Line indented incorrectly; expected 28 spaces, found 16
Open

                } ?>

Line indented incorrectly; expected 24 spaces, found 12
Open

            if ($isSelected) {

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $question = Question::read($questionid);

Line indented incorrectly; expected 16 spaces, found 4
Open

    for ($i = 1; $i <= $nbrAnswers; $i++) {

Line indented incorrectly; expected 28 spaces, found 16
Open

                if (isset($lp[$i]) && $id == $lp[$i]) {

Line indented incorrectly; expected 28 spaces, found 16
Open

                }

Line indented incorrectly; expected 24 spaces, found 12
Open

            } else {

Line indented incorrectly; expected at least 32 spaces, found 20
Open

                    $selected1 = $selected2 = $selected3 = '';

Line indented incorrectly; expected at least 32 spaces, found 20
Open

                    $selected = 'selected="selected"';

Line indented incorrectly; expected 24 spaces, found 12
Open

            if (isset($select_question[$i]) && -1 == $select_question[$i]) {

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $option1 = $option2 = $option3 = '';

Line indented incorrectly; expected at least 32 spaces, found 20
Open

                    $option2 .= '<option '.$selected2.' >'.$k.' % </option>';

Line indented incorrectly; expected at least 52 spaces, found 40
Open

                                        echo 'checked';

Line indented incorrectly; expected 0 spaces, found 32
Open

                                }

Line indented incorrectly; expected 0 spaces, found 24
Open

                        } ?></th>

Line indented incorrectly; expected 20 spaces, found 8
Open

        if (HOT_SPOT_DELINEATION == $answerType) {

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $val = "Q$key: $questionTitle";

Line indented incorrectly; expected 28 spaces, found 16
Open

                if (isset($select_question[$i]) && $questionid == $select_question[$i]) {

Line indented incorrectly; expected 24 spaces, found 12
Open

            if ('delineation' == $_SESSION['tmp_answers']['hotspot_type'][$i]) {

Line indented incorrectly; expected 28 spaces, found 16
Open

                for ($k = 1; $k <= 100; $k++) {

Line indented incorrectly; expected 36 spaces, found 24
Open

                        }

Line indented incorrectly; expected 32 spaces, found 20
Open

                    if (isset($threadhold3[$i])) {

Closing brace indented incorrectly; expected 48 spaces, found 36
Open

                                    } ?> />

Line indented incorrectly; expected 0 spaces, found 8
Open

        } else {

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $flat_list = $list->get_flat_list();

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';

Line indented incorrectly; expected at least 40 spaces, found 28
Open

                            $selected1 = 'selected="selected"';

Line indented incorrectly; expected 32 spaces, found 20
Open

                    if (isset($threadhold2[$i])) {

Line indented incorrectly; expected at least 40 spaces, found 28
Open

                            $selected3 = 'selected="selected"';

Line indented incorrectly; expected 36 spaces, found 24
Open

                        }

Line indented incorrectly; expected 0 spaces, found 32
Open

                                } else {

Closing brace indented incorrectly; expected 28 spaces, found 32
Open

                                } else {

Closing brace indented incorrectly; expected 32 spaces, found 16
Open

                } else {

Line indented incorrectly; expected 0 spaces, found 8
Open

        } ?>

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $option_feed = '';

Line indented incorrectly; expected 0 spaces, found 16
Open

                } else {

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';

Line indented incorrectly; expected 24 spaces, found 12
Open

            }

Line indented incorrectly; expected 24 spaces, found 12
Open

            } else {

Line indented incorrectly; expected 36 spaces, found 24
Open

                        if ($k == $threadhold1[$i]) {

Line indented incorrectly; expected 36 spaces, found 24
Open

                        if ($k == $threadhold2[$i]) {

Closing brace indented incorrectly; expected 16 spaces, found 8
Open

        } else {

Line indented incorrectly; expected 24 spaces, found 12
Open

            }

Line indented incorrectly; expected 28 spaces, found 16
Open

                if (2 == $i) {

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $option_lp = '';

Line indented incorrectly; expected 24 spaces, found 12
Open

            foreach ($flat_list as $id => $details) {

Line indented incorrectly; expected at least 32 spaces, found 20
Open

                    $isSelected = true;

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $selected = '';

Line indented incorrectly; expected 76 spaces, found 75
Open

                                                                           } ?> />

Line indented incorrectly; expected 24 spaces, found 12
Open

            } elseif ('oar' == $_SESSION['tmp_answers']['hotspot_type'][$i]) {

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course')

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $questionTitle = strip_tags($question->selectTitle());

Line indented incorrectly; expected 32 spaces, found 20
Open

                    if (isset($threadhold1[$i])) {

Line indented incorrectly; expected at least 32 spaces, found 20
Open

                    $selected = 'selected="selected"';

Line indented incorrectly; expected 24 spaces, found 12
Open

            foreach ($question_list as $key => $questionid) {

Line indented incorrectly; expected 28 spaces, found 16
Open

                }

Line indented incorrectly; expected 24 spaces, found 12
Open

            }

Line indented incorrectly; expected at least 32 spaces, found 20
Open

                    $option3 .= '<option '.$selected3.'>'.$k.' %</option>';

Line indented incorrectly; expected 0 spaces, found 36
Open

                                    } ?> />

Line indented incorrectly; expected 24 spaces, found 12
Open

            } elseif (false) {

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $question_list = $objExercise->selectQuestionList();

Line indented incorrectly; expected at least 44 spaces, found 28
Open

                            echo get_lang('Scenario');

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $selected = '';

Line indented incorrectly; expected 32 spaces, found 20
Open

                    }

Line indented incorrectly; expected 32 spaces, found 20
Open

                    }

Line indented incorrectly; expected at least 32 spaces, found 20
Open

                    $option1 .= '<option '.$selected1.' >'.$k.' % </option>';

Line indented incorrectly; expected 0 spaces, found 16
Open

                } ?>

Closing brace indented incorrectly; expected 44 spaces, found 24
Open

                        } ?></th>

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $isSelected = false;

Line indented incorrectly; expected at least 28 spaces, found 16
Open

                $option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;

Line indented incorrectly; expected 16 spaces, found 4
Open

    }

Line indented incorrectly; expected 0 spaces, found 32
Open

                                } else {

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $question_list = $objExercise->selectQuestionList();

Line indented incorrectly; expected at least 36 spaces, found 24
Open

                        $form = new FormValidator('form_'.$i);

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';

Line indented incorrectly; expected at least 36 spaces, found 28
Open

                            'cols-size' => [0, 12, 0],

Line indented incorrectly; expected 20 spaces, found 8
Open

        } ?>

Closing brace indented incorrectly; expected 24 spaces, found 8
Open

        } else {

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $isSelected = false;

Line indented incorrectly; expected 0 spaces, found 4
Open

    } ?>

Closing brace indented incorrectly; expected 24 spaces, found 8
Open

        } else {

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $form->setDefaults(['comment['.$i.']' => $commentValue]);

Line indented incorrectly; expected 16 spaces, found 4
Open

    }

Line indented incorrectly; expected 16 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $option_feed = '';

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $val = "Q$key: $questionTitle";

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $selected = 'selected="selected"';

Line indented incorrectly; expected 0 spaces, found 12
Open

            } ?> />

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $list = new LearnpathList(api_get_user_id());

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $selected = 'selected="selected"';

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $questionTitle = $question->selectTitle();

Line indented incorrectly; expected 0 spaces, found 8
Open

        } ?>

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';

Line indented incorrectly; expected 16 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $config = [

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $renderer->setElementTemplate($element_template);

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $isSelected = true;

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $selected = '';

Line indented incorrectly; expected 0 spaces, found 8
Open

        } else {

Closing brace indented incorrectly; expected 12 spaces, found 4
Open

    } else {

Closing brace indented incorrectly; expected 36 spaces, found 20
Open

                    } else {

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $form_template = '{content}';

Line indented incorrectly; expected 20 spaces, found 8
Open

        }

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $question = Question::read($questionid);

Line indented incorrectly; expected 0 spaces, found 8
Open

        } else {

Line indented incorrectly; expected 0 spaces, found 20
Open

                    } else {

Line indented incorrectly; expected 28 spaces, found 16
Open

                } ?>

Line indented incorrectly; expected 20 spaces, found 8
Open

        } else {

Line indented incorrectly; expected at least 36 spaces, found 28
Open

                            'ToolbarSet' => 'TestProposedAnswer',

Line indented incorrectly; expected 24 spaces, found 8
Open

        } ?>

Line indented incorrectly; expected 16 spaces, found 4
Open

    }

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $responseValue = isset($reponse[$i]) ? $reponse[$i] : null; ?>

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $return = $form->returnForm(); ?>

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $option_lp = '';

Line indented incorrectly; expected 20 spaces, found 8
Open

        }

Closing brace indented incorrectly; expected 70 spaces, found 12
Open

            } ?> />

Line indented incorrectly; expected 0 spaces, found 8
Open

        } ?>

Line indented incorrectly; expected 0 spaces, found 4
Open

    } else {

Line indented incorrectly; expected 0 spaces, found 36
Open

                                    } ?> />

Line indented incorrectly; expected 0 spaces, found 32
Open

                                }

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $selected = '';

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course').'</option>'

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $selectQuestionNoError = isset($selectQuestionNoError) ? $selectQuestionNoError : null;

Line indented incorrectly; expected 0 spaces, found 20
Open

                    } ?>

Line indented incorrectly; expected at least 24 spaces, found 12
Open

            $commentValue = isset($comment[$i]) ? $comment[$i] : null;

Line indented incorrectly; expected 16 spaces, found 4
Open

    if ($isSelected) {

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';

Line indented incorrectly; expected 16 spaces, found 4
Open

    } else {

Line indented incorrectly; expected 24 spaces, found 12
Open

            }

Line indented incorrectly; expected at least 36 spaces, found 24
Open

                        ];

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $renderer = $form->defaultRenderer();

Line indented incorrectly; expected 24 spaces, found 8
Open

        if (HOT_SPOT == $answerType) {

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $flat_list = $list->get_flat_list();

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;

Line indented incorrectly; expected 20 spaces, found 8
Open

        if ($questionid == $selectQuestionNoError) {

Line indented incorrectly; expected 16 spaces, found 4
Open

    } ?>

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $relPath = api_get_path(WEB_CODE_PATH); ?>

Line indented incorrectly; expected at least 60 spaces, found 40
Open

                                        echo 'checked';

Line indented incorrectly; expected 16 spaces, found 4
Open

    } else {

Line indented incorrectly; expected 16 spaces, found 4
Open

    if (HOT_SPOT_DELINEATION == $answerType) {

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $element_template = '{label} {element}';

Line indented incorrectly; expected at least 16 spaces, found 4
Open

    $option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';

Line indented incorrectly; expected 16 spaces, found 4
Open

    foreach ($question_list as $key => $questionid) {

Line indented incorrectly; expected 16 spaces, found 4
Open

    if (-1 == $selectQuestionNoError) {

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $form->addHtmlEditor('comment['.$i.']', null, false, false, $config);

Line indented incorrectly; expected 20 spaces, found 8
Open

        if (isset($lp_noerror) && $id == $lp_noerror) {

Line indented incorrectly; expected at least 56 spaces, found 16
Open

                echo 'checked';

Closing brace indented incorrectly; expected 61 spaces, found 36
Open

                                    } ?> />

Closing brace indented incorrectly; expected 28 spaces, found 32
Open

                                } else {

Line indented incorrectly; expected at least 36 spaces, found 12
Open

            $renderer->setFormTemplate($form_template);

Line indented incorrectly; expected 16 spaces, found 4
Open

    foreach ($flat_list as $id => $details) {

Line indented incorrectly; expected at least 20 spaces, found 8
Open

        $option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';

There are no issues that match your filters.

Category
Status