Minor - format code

pull/3607/head
Julio Montoya 5 years ago
parent f0234a63de
commit e65dbf49c7
  1. 1
      main/exercise/MatchingDraggable.php
  2. 2
      main/exercise/exercise_show.php
  3. 1
      main/exercise/question.class.php
  4. 2
      main/survey/fillsurvey.php

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**

@ -972,7 +972,7 @@ if ($isFeedbackAllowed) {
}
}
if ($isFeedbackAllowed && $origin != 'learnpath' && $origin != 'student_progress') {
if ($isFeedbackAllowed && $origin !== 'learnpath' && $origin !== 'student_progress') {
if (in_array($origin, ['tracking_course', 'user_course', 'correct_exercise_in_lp'])) {
$formUrl = api_get_path(WEB_CODE_PATH).'exercise/exercise_report.php?'.api_get_cidreq().'&';
$formUrl .= http_build_query([

@ -169,6 +169,7 @@ abstract class Question
$objQuestion->feedback = isset($object->feedback) ? $object->feedback : '';
$objQuestion->code = isset($object->code) ? $object->code : '';
$categoryInfo = TestCategory::getCategoryInfoForQuestion($id, $course_id);
if (!empty($categoryInfo)) {
if (isset($categoryInfo['category_id'])) {
$objQuestion->category = (int) $categoryInfo['category_id'];

@ -655,7 +655,7 @@ if (isset($_POST['finish_survey'])) {
);
if ($courseInfo && !api_is_anonymous()) {
echo '<br />';
echo '<br /><br />';
echo Display::toolbarButton(
get_lang('ReturnToCourseHomepage'),
api_get_course_url($courseInfo['code']),

Loading…
Cancel
Save