public/main/exercise/hotspot_admin.inc.php
Variable "hotspot_type" is not in valid camel caps format Open
Open
$hotspot_type = UnserializeApi::unserialize('not_allowed_classes', $hotspot_type);
- Exclude checks
Variable "threadhold2_str" is not in valid camel caps format Open
Open
$threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;
- Exclude checks
Variable "try_str" is not in valid camel caps format Open
Open
$try_str = 1;
- Exclude checks
Variable "try_str" is not in valid camel caps format Open
Open
$destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "try_str" is not in valid camel caps format Open
Open
$try_str = 0;
- Exclude checks
Variable "lp_noerror" is not in valid camel caps format Open
Open
$lp_str = $lp_noerror;
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$hotspot_coordinates[$i],
- Exclude checks
Variable "hotspot_admin_url" is not in valid camel caps format Open
Open
echo '<script type="text/javascript">window.location.href="'.$hotspot_admin_url
- Exclude checks
Variable "try_str" is not in valid camel caps format Open
Open
$try_str = 0;
- Exclude checks
Variable "threadhold_total" is not in valid camel caps format Open
Open
$threadhold_total = '0;0;0';
- Exclude checks
Variable "question_str" is not in valid camel caps format Open
Open
$question_str = 0;
- Exclude checks
Variable "question_str" is not in valid camel caps format Open
Open
$question_str = $selectQuestionNoError;
- Exclude checks
Variable "hotspot_admin_url" is not in valid camel caps format Open
Open
$hotspot_admin_url = api_get_path(WEB_CODE_PATH).'exercise/admin.php?'.api_get_cidreq().'&exerciseId='.$exerciseId;
- Exclude checks
Variable "url_str" is not in valid camel caps format Open
Open
$destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "lp_str" is not in valid camel caps format Open
Open
$lp_str = $lp[$i];
- Exclude checks
Variable "question_str" is not in valid camel caps format Open
Open
$question_str = $select_question[$i];
- Exclude checks
Variable "try_noerror" is not in valid camel caps format Open
Open
if ('on' == $try_noerror) {
- Exclude checks
Variable "lp_noerror" is not in valid camel caps format Open
Open
if (empty($lp_noerror)) {
- Exclude checks
Variable "destination_noerror" is not in valid camel caps format Open
Open
$destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
$hotspot_type = $_REQUEST['hotspot_type'] ?? null;
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
$question_str = $select_question[$i];
- Exclude checks
Variable "lp_noerror" is not in valid camel caps format Open
Open
$lp_noerror = isset($_POST['lp_noerror']) ? Security::remove_XSS($_POST['lp_noerror']) : '';
- Exclude checks
Variable "threadhold_total" is not in valid camel caps format Open
Open
$destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "lp_str" is not in valid camel caps format Open
Open
$destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$hotspot_coordinates = UnserializeApi::unserialize('not_allowed_classes', $hotspot_coordinates);
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
$hotspot_type = UnserializeApi::unserialize('not_allowed_classes', $hotspot_type);
- Exclude checks
Variable "threadhold3_str" is not in valid camel caps format Open
Open
$threadhold3_str = 0;
- Exclude checks
Variable "lp_str" is not in valid camel caps format Open
Open
$lp_str = 0;
- Exclude checks
Variable "url_str" is not in valid camel caps format Open
Open
$url_str = '';
- Exclude checks
Variable "comment_noerror" is not in valid camel caps format Open
Open
$comment_noerror,
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$hotspot_coordinates = UnserializeApi::unserialize('not_allowed_classes', $hotspot_coordinates);
- Exclude checks
Variable "threadhold3_str" is not in valid camel caps format Open
Open
$threadhold3_str = (int) $threadhold3[$i];
- Exclude checks
Variable "threadhold_total" is not in valid camel caps format Open
Open
$threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;
- Exclude checks
Variable "lp_str" is not in valid camel caps format Open
Open
$destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "try_str" is not in valid camel caps format Open
Open
$try_str = 1;
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$hotspot_coordinates[$i],
- Exclude checks
Variable "threadhold2_str" is not in valid camel caps format Open
Open
$threadhold2_str = 0;
- Exclude checks
Variable "url_str" is not in valid camel caps format Open
Open
$url_str = $url[$i];
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {
- Exclude checks
Variable "url_str" is not in valid camel caps format Open
Open
$url_str = $url_noerror;
- Exclude checks
Variable "threadhold2_str" is not in valid camel caps format Open
Open
$threadhold2_str = (int) $threadhold2[$i];
- Exclude checks
Variable "question_str" is not in valid camel caps format Open
Open
$destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$hotspot_coordinates = $_REQUEST['hotspot_coordinates'] ?? null;
- Exclude checks
Variable "question_str" is not in valid camel caps format Open
Open
$destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "comment_noerror" is not in valid camel caps format Open
Open
$comment_noerror = isset($_POST['comment_noerror']) ? Security::remove_XSS($_POST['comment_noerror']) : null;
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
$hotspot_type[$i],
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
$hotspot_type[$i]
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
$select_question = isset($_POST['select_question']) ? $_POST['select_question'] : null;
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
if (isset($select_question[$i]) && !empty($select_question[$i])) {
- Exclude checks
Variable "try_str" is not in valid camel caps format Open
Open
$destination_noerror = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {
- Exclude checks
Variable "threadhold1_str" is not in valid camel caps format Open
Open
$threadhold1_str = 0;
- Exclude checks
Variable "threadhold1_str" is not in valid camel caps format Open
Open
$threadhold1_str = (int) $threadhold1[$i];
- Exclude checks
Variable "threadhold1_str" is not in valid camel caps format Open
Open
$threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;
- Exclude checks
Variable "question_str" is not in valid camel caps format Open
Open
$question_str = 0;
- Exclude checks
Variable "lp_str" is not in valid camel caps format Open
Open
$lp_str = $lp_noerror;
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
if (isset($select_question[$i]) && !empty($select_question[$i])) {
- Exclude checks
Variable "url_str" is not in valid camel caps format Open
Open
$destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "url_noerror" is not in valid camel caps format Open
Open
$url_noerror = isset($_POST['url_noerror']) ? Security::remove_XSS($_POST['url_noerror']) : null;
- Exclude checks
Variable "lp_str" is not in valid camel caps format Open
Open
$lp_str = 0;
- Exclude checks
Variable "url_noerror" is not in valid camel caps format Open
Open
if ('' == $url_noerror) {
- Exclude checks
Variable "url_str" is not in valid camel caps format Open
Open
$url_str = '';
- Exclude checks
Variable "destination_noerror" is not in valid camel caps format Open
Open
$destination_noerror
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
if ('0;0|0|0' === $hotspot_coordinates[$i] || empty($hotspot_coordinates[$i])) {
- Exclude checks
Variable "threadhold3_str" is not in valid camel caps format Open
Open
$threadhold_total = $threadhold1_str.';'.$threadhold2_str.';'.$threadhold3_str;
- Exclude checks
Variable "threadhold_total" is not in valid camel caps format Open
Open
$destination[$i] = $threadhold_total.'@@'.$try_str.'@@'.$lp_str.'@@'.$question_str.'@@'.$url_str;
- Exclude checks
Variable "try_noerror" is not in valid camel caps format Open
Open
$try_noerror = isset($_POST['try_noerror']) ? Security::remove_XSS($_POST['try_noerror']) : null;
- Exclude checks
Variable "url_noerror" is not in valid camel caps format Open
Open
$url_str = $url_noerror;
- Exclude checks
Variable "try_noerror" is not in valid camel caps format Open
Open
$try_noerror = 1;
- Exclude checks
Variable "lp_noerror" is not in valid camel caps format Open
Open
$lp_noerror = $destination_items[2];
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$selectQuestionNoError = $destination_items[3];
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$destination_items = [];
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$hotspot_coordinates[$i] = $objAnswer->selectHotspotCoordinates($i);
- Exclude checks
Variable "hotspot_admin_url" is not in valid camel caps format Open
Open
$hotspot_admin_url = api_get_path(WEB_CODE_PATH).'exercise/admin.php?'.api_get_cidreq().'&'
- Exclude checks
Variable "threadhold_items" is not in valid camel caps format Open
Open
$threadhold_items = explode(';', $threadhold_total);
- Exclude checks
Variable "threadhold_items" is not in valid camel caps format Open
Open
$threadhold2[$i] = $threadhold_items[1];
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$destination_items = explode('@@', $destination_noerror_list);
- Exclude checks
Variable "hotspot_colors" is not in valid camel caps format Open
Open
$hotspot_colors = [
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
<?php echo $option_lp; ?>
- Exclude checks
Variable "hotspot_admin_url" is not in valid camel caps format Open
Open
echo '<script type="text/javascript">window.location.href="'.$hotspot_admin_url
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$threadhold_total = $destination_items[0];
- Exclude checks
Closing brace indented incorrectly; expected 16 spaces, found 8 Open
Open
} else {
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
if (isset($select_question[$i]) && $questionid == $select_question[$i]) {
- Exclude checks
Variable "comment_noerror" is not in valid camel caps format Open
Open
$comment_noerror = $objAnswer->selectComment($nbrAnswers + 1);
- Exclude checks
Variable "destination_noerror_list" is not in valid camel caps format Open
Open
if (empty($destination_noerror_list)) {
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
<?php echo $option_lp; ?>
- Exclude checks
Variable "threadhold_items" is not in valid camel caps format Open
Open
$threadhold3[$i] = $threadhold_items[2];
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$lp[$i] = $destination_items[2];
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$_SESSION['tmp_answers']['hotspot_coordinates'] = $hotspot_coordinates;
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '';
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$url_noerror = $destination_items[4];
- Exclude checks
Variable "destination_noerror_list" is not in valid camel caps format Open
Open
$destination_noerror_list = $objAnswer->selectDestination($nbrAnswers + 1);
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
Open
$flat_list = $list->get_flat_list();
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
Open
foreach ($flat_list as $id => $details) {
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course')
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
.'</option>'.$option_lp;
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
if (isset($select_question[$i]) && -1 == $select_question[$i]) {
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
<?php echo $option_feed; ?>
- Exclude checks
Variable "try_noerror" is not in valid camel caps format Open
Open
$try_noerror = 0;
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
$select_question[$i] = $destination_items[3];
- Exclude checks
Variable "url_noerror" is not in valid camel caps format Open
Open
$url_noerror = $destination_items[4];
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';
- Exclude checks
Variable "threadhold_total" is not in valid camel caps format Open
Open
$threadhold_total = $destination_items[0];
- Exclude checks
Variable "destination_noerror_list" is not in valid camel caps format Open
Open
$destination_items = explode('@@', $destination_noerror_list);
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$try_noerror = $destination_items[1];
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$lp_noerror = $destination_items[2];
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
$_SESSION['tmp_answers']['hotspot_type'] = $hotspot_type;
- Exclude checks
Variable "lest_answer" is not in valid camel caps format Open
Open
$lest_answer = 1;
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed = '';
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
if (isset($select_question[$i]) && $questionid == $select_question[$i]) {
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>
- Exclude checks
Variable "threadhold_total" is not in valid camel caps format Open
Open
$threadhold_items = explode(';', $threadhold_total);
- Exclude checks
Variable "try_noerror" is not in valid camel caps format Open
Open
$try_noerror = $destination_items[1];
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';
- Exclude checks
Closing brace indented incorrectly; expected 32 spaces, found 16 Open
Open
} else {
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
$hotspot_type[$i] = $objAnswer->selectHotspotType($i);
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$select_question[$i] = $destination_items[3];
- Exclude checks
Variable "destination_noerror_list" is not in valid camel caps format Open
Open
$destination_noerror_list = '@@@@@@@@';
- Exclude checks
Variable "hotspot_admin_url" is not in valid camel caps format Open
Open
<form method="post" action="<?php echo $hotspot_admin_url; ?>" class="form-horizontal" id="frm_exercise"
- Exclude checks
Variable "select_question" is not in valid camel caps format Open
Open
if (isset($select_question[$i]) && -1 == $select_question[$i]) {
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
$hotspot_coordinates = [];
- Exclude checks
Variable "threadhold_items" is not in valid camel caps format Open
Open
$threadhold1[$i] = $threadhold_items[0];
- Exclude checks
Variable "question_list" is not in valid camel caps format Open
Open
foreach ($question_list as $key => $questionid) {
- Exclude checks
Variable "hotspot_colors" is not in valid camel caps format Open
Open
style="color: <?php echo $hotspot_colors[$i]; ?>;"></span>
- Exclude checks
Closing brace indented incorrectly; expected 48 spaces, found 36 Open
Open
} ?> />
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
$hotspot_type = [];
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$destination_items = explode('@@', $destination[$i]);
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$url[$i] = $destination_items[4];
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
<?php echo $option_feed; ?>
- Exclude checks
Variable "destination_items" is not in valid camel caps format Open
Open
$try[$i] = $destination_items[1];
- Exclude checks
Variable "lest_answer" is not in valid camel caps format Open
Open
if ($nbrAnswers > $lest_answer) {
- Exclude checks
Variable "hotspot_colors" is not in valid camel caps format Open
Open
$hotspot_colors = [
- Exclude checks
Variable "question_list" is not in valid camel caps format Open
Open
$question_list = $objExercise->selectQuestionList();
- Exclude checks
Closing brace indented incorrectly; expected 28 spaces, found 32 Open
Open
} else {
- Exclude checks
Variable "hotspot_colors" is not in valid camel caps format Open
Open
style="color: <?php echo $hotspot_colors[$i]; ?>"></span>
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>
- Exclude checks
Closing brace indented incorrectly; expected 54 spaces, found 36 Open
Open
} ?> />
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed = '';
- Exclude checks
Variable "lp_noerror" is not in valid camel caps format Open
Open
if (isset($lp_noerror) && $id == $lp_noerror) {
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
echo empty($hotspot_coordinates[$i]) ? '0;0|0|0' : $hotspot_coordinates[$i]; ?>"/>
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course').'</option>'
- Exclude checks
Variable "question_list" is not in valid camel caps format Open
Open
$question_list = $objExercise->selectQuestionList();
- Exclude checks
Closing brace indented incorrectly; expected 50 spaces, found 12 Open
Open
} ?> />
- Exclude checks
Variable "form_template" is not in valid camel caps format Open
Open
$renderer->setFormTemplate($form_template);
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';
- Exclude checks
Variable "hotspot_colors" is not in valid camel caps format Open
Open
<span class="fa fa-square fa-2x" style="color: <?php echo $hotspot_colors[$i]; ?>"
- Exclude checks
Variable "lp_noerror" is not in valid camel caps format Open
Open
if (isset($lp_noerror) && $id == $lp_noerror) {
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
<?php echo $option_lp; ?>
- Exclude checks
Variable "form_template" is not in valid camel caps format Open
Open
$form_template = '{content}';
- Exclude checks
Closing brace indented incorrectly; expected 24 spaces, found 8 Open
Open
} else {
- Exclude checks
Variable "element_template" is not in valid camel caps format Open
Open
$element_template = '{label} {element}';
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
value="<?php echo empty($hotspot_coordinates[$i])
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
value="<?php echo empty($hotspot_type[$i]) ? 'square' : $hotspot_type[$i]; ?>"/>
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
.$option_lp;
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
<?php echo $option_feed; ?>
- Exclude checks
Closing brace indented incorrectly; expected 24 spaces, found 8 Open
Open
} else {
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
<?php echo $option_lp; ?>
- Exclude checks
Variable "element_template" is not in valid camel caps format Open
Open
$renderer->setElementTemplate($element_template);
- Exclude checks
Variable "hotspot_type" is not in valid camel caps format Open
Open
value="<?php echo empty($hotspot_type[$i]) ? 'square' : $hotspot_type[$i]; ?>"/>
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '';
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';
- Exclude checks
Closing brace indented incorrectly; expected 39 spaces, found 24 Open
Open
} ?></th>
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
<?php echo $option_feed; ?>
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
Open
$flat_list = $list->get_flat_list();
- Exclude checks
Closing brace indented incorrectly; expected 36 spaces, found 20 Open
Open
} else {
- Exclude checks
Closing brace indented incorrectly; expected 28 spaces, found 32 Open
Open
} else {
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
Open
foreach ($flat_list as $id => $details) {
- Exclude checks
Variable "comment_noerror" is not in valid camel caps format Open
Open
name="comment_noerror"><?php echo Security::remove_XSS($comment_noerror); ?></textarea>
- Exclude checks
Closing brace indented incorrectly; expected 12 spaces, found 4 Open
Open
} else {
- Exclude checks
Variable "option_feed" is not in valid camel caps format Open
Open
$option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';
- Exclude checks
Variable "try_noerror" is not in valid camel caps format Open
Open
name="try_noerror" <?php if (1 == $try_noerror) {
- Exclude checks
Variable "url_noerror" is not in valid camel caps format Open
Open
<input class="form-control" name="url_noerror" value="<?php echo $url_noerror; ?>">
- Exclude checks
Variable "option_lp" is not in valid camel caps format Open
Open
$option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;
- Exclude checks
Variable "question_list" is not in valid camel caps format Open
Open
foreach ($question_list as $key => $questionid) {
- Exclude checks
Variable "hotspot_coordinates" is not in valid camel caps format Open
Open
: $hotspot_coordinates[$i]; ?>"/>
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';
- Exclude checks
Line indented incorrectly; expected 36 spaces, found 24 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 32 spaces, found 20 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 40 spaces, found 28 Open
Open
$selected2 = 'selected="selected"';
- Exclude checks
Line indented incorrectly; expected 36 spaces, found 24 Open
Open
if ($k == $threadhold3[$i]) {
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
if ($isSelected) {
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$question = Question::read($questionid);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
for ($i = 1; $i <= $nbrAnswers; $i++) {
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
if (isset($lp[$i]) && $id == $lp[$i]) {
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 32 spaces, found 20 Open
Open
$selected1 = $selected2 = $selected3 = '';
- Exclude checks
Line indented incorrectly; expected at least 32 spaces, found 20 Open
Open
$selected = 'selected="selected"';
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
if (isset($select_question[$i]) && -1 == $select_question[$i]) {
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$option1 = $option2 = $option3 = '';
- Exclude checks
Line indented incorrectly; expected at least 32 spaces, found 20 Open
Open
$option2 .= '<option '.$selected2.' >'.$k.' % </option>';
- Exclude checks
Line indented incorrectly; expected at least 52 spaces, found 40 Open
Open
echo 'checked';
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 32 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 24 Open
Open
} ?></th>
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 8 Open
Open
if (HOT_SPOT_DELINEATION == $answerType) {
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$val = "Q$key: $questionTitle";
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
if (isset($select_question[$i]) && $questionid == $select_question[$i]) {
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
if ('delineation' == $_SESSION['tmp_answers']['hotspot_type'][$i]) {
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
for ($k = 1; $k <= 100; $k++) {
- Exclude checks
Line indented incorrectly; expected 36 spaces, found 24 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 32 spaces, found 20 Open
Open
if (isset($threadhold3[$i])) {
- Exclude checks
Closing brace indented incorrectly; expected 48 spaces, found 36 Open
Open
} ?> />
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$flat_list = $list->get_flat_list();
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';
- Exclude checks
Line indented incorrectly; expected at least 40 spaces, found 28 Open
Open
$selected1 = 'selected="selected"';
- Exclude checks
Line indented incorrectly; expected 32 spaces, found 20 Open
Open
if (isset($threadhold2[$i])) {
- Exclude checks
Line indented incorrectly; expected at least 40 spaces, found 28 Open
Open
$selected3 = 'selected="selected"';
- Exclude checks
Line indented incorrectly; expected 36 spaces, found 24 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 32 Open
Open
} else {
- Exclude checks
Closing brace indented incorrectly; expected 28 spaces, found 32 Open
Open
} else {
- Exclude checks
Closing brace indented incorrectly; expected 32 spaces, found 16 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$option_feed = '';
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 16 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 36 spaces, found 24 Open
Open
if ($k == $threadhold1[$i]) {
- Exclude checks
Line indented incorrectly; expected 36 spaces, found 24 Open
Open
if ($k == $threadhold2[$i]) {
- Exclude checks
Closing brace indented incorrectly; expected 16 spaces, found 8 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
if (2 == $i) {
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$option_lp = '';
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
foreach ($flat_list as $id => $details) {
- Exclude checks
Line indented incorrectly; expected at least 32 spaces, found 20 Open
Open
$isSelected = true;
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$selected = '';
- Exclude checks
Line indented incorrectly; expected 76 spaces, found 75 Open
Open
} ?> />
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
} elseif ('oar' == $_SESSION['tmp_answers']['hotspot_type'][$i]) {
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course')
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$questionTitle = strip_tags($question->selectTitle());
- Exclude checks
Line indented incorrectly; expected 32 spaces, found 20 Open
Open
if (isset($threadhold1[$i])) {
- Exclude checks
Line indented incorrectly; expected at least 32 spaces, found 20 Open
Open
$selected = 'selected="selected"';
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
foreach ($question_list as $key => $questionid) {
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 32 spaces, found 20 Open
Open
$option3 .= '<option '.$selected3.'>'.$k.' %</option>';
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 36 Open
Open
} ?> />
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
} elseif (false) {
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$question_list = $objExercise->selectQuestionList();
- Exclude checks
Line indented incorrectly; expected at least 44 spaces, found 28 Open
Open
echo get_lang('Scenario');
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$selected = '';
- Exclude checks
Line indented incorrectly; expected 32 spaces, found 20 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 32 spaces, found 20 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 32 spaces, found 20 Open
Open
$option1 .= '<option '.$selected1.' >'.$k.' % </option>';
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 16 Open
Open
} ?>
- Exclude checks
Closing brace indented incorrectly; expected 44 spaces, found 24 Open
Open
} ?></th>
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$isSelected = false;
- Exclude checks
Line indented incorrectly; expected at least 28 spaces, found 16 Open
Open
$option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 32 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$question_list = $objExercise->selectQuestionList();
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 24 Open
Open
$form = new FormValidator('form_'.$i);
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$option_feed .= '<option value="-1" selected="selected" >'.get_lang('Exit test').'</option>';
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 28 Open
Open
'cols-size' => [0, 12, 0],
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 8 Open
Open
} ?>
- Exclude checks
Closing brace indented incorrectly; expected 24 spaces, found 8 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$isSelected = false;
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
} ?>
- Exclude checks
Closing brace indented incorrectly; expected 24 spaces, found 8 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$form->setDefaults(['comment['.$i.']' => $commentValue]);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$option_feed = '';
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$val = "Q$key: $questionTitle";
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$selected = 'selected="selected"';
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 12 Open
Open
} ?> />
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$list = new LearnpathList(api_get_user_id());
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$selected = 'selected="selected"';
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$questionTitle = $question->selectTitle();
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$option_lp .= '<option value="'.$id.'" '.$selected.'>'.$details['lp_name'].'</option>';
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$config = [
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$renderer->setElementTemplate($element_template);
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$isSelected = true;
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$selected = '';
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
} else {
- Exclude checks
Closing brace indented incorrectly; expected 12 spaces, found 4 Open
Open
} else {
- Exclude checks
Closing brace indented incorrectly; expected 36 spaces, found 20 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$form_template = '{content}';
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$question = Question::read($questionid);
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 20 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 28 spaces, found 16 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 8 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 28 Open
Open
'ToolbarSet' => 'TestProposedAnswer',
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 8 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$responseValue = isset($reponse[$i]) ? $reponse[$i] : null; ?>
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$return = $form->returnForm(); ?>
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$option_lp = '';
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 8 Open
Open
}
- Exclude checks
Closing brace indented incorrectly; expected 70 spaces, found 12 Open
Open
} ?> />
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 36 Open
Open
} ?> />
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 32 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$selected = '';
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$option_lp = '<option value="0" selected="selected" >'.get_lang('Select target course').'</option>'
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$selectQuestionNoError = isset($selectQuestionNoError) ? $selectQuestionNoError : null;
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 20 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 12 Open
Open
$commentValue = isset($comment[$i]) ? $comment[$i] : null;
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
if ($isSelected) {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$option_feed .= '<option value="'.$questionid.'" '.$selected.' >'.$val.'</option>';
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 24 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$renderer = $form->defaultRenderer();
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 8 Open
Open
if (HOT_SPOT == $answerType) {
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$flat_list = $list->get_flat_list();
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$option_lp = '<option value="0">'.get_lang('Select target course').'</option>'.$option_lp;
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 8 Open
Open
if ($questionid == $selectQuestionNoError) {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
} ?>
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$relPath = api_get_path(WEB_CODE_PATH); ?>
- Exclude checks
Line indented incorrectly; expected at least 60 spaces, found 40 Open
Open
echo 'checked';
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
if (HOT_SPOT_DELINEATION == $answerType) {
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$element_template = '{label} {element}';
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 4 Open
Open
$option_feed .= '<option value="0">'.get_lang('Select target question').'</option>';
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
foreach ($question_list as $key => $questionid) {
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
if (-1 == $selectQuestionNoError) {
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$form->addHtmlEditor('comment['.$i.']', null, false, false, $config);
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 8 Open
Open
if (isset($lp_noerror) && $id == $lp_noerror) {
- Exclude checks
Line indented incorrectly; expected at least 56 spaces, found 16 Open
Open
echo 'checked';
- Exclude checks
Closing brace indented incorrectly; expected 61 spaces, found 36 Open
Open
} ?> />
- Exclude checks
Closing brace indented incorrectly; expected 28 spaces, found 32 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected at least 36 spaces, found 12 Open
Open
$renderer->setFormTemplate($form_template);
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 4 Open
Open
foreach ($flat_list as $id => $details) {
- Exclude checks
Line indented incorrectly; expected at least 20 spaces, found 8 Open
Open
$option_feed .= '<option value="-1">'.get_lang('Exit test').'</option>';
- Exclude checks