Completed
Pull Request — 1.11.x (#1296)
by José
132:18 queued 93:54
created
main/inc/lib/MoodleImport.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
         if ($weighting > 0) {
682 682
             $questionWeighting += $weighting;
683 683
         }
684
-        $goodAnswer =  $correct ? true : false;
684
+        $goodAnswer = $correct ? true : false;
685 685
 
686 686
         $objAnswer->createAnswer(
687 687
             $answer,
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
         if ($weighting > 0) {
715 715
             $questionWeighting += $weighting;
716 716
         }
717
-        $goodAnswer =  $correct ? true : false;
717
+        $goodAnswer = $correct ? true : false;
718 718
 
719 719
         $objAnswer->createAnswer(
720 720
             $answer,
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
                     $currentAnswers = $correctAnswer.$othersAnswers;
810 810
                     $currentAnswers = '['.substr($currentAnswers, 0, -1).'] ';
811 811
 
812
-                    $placeholder .= '<p> ' . strip_tags($answer['questiontext']).' '.$currentAnswers . ' </p>';
812
+                    $placeholder .= '<p> '.strip_tags($answer['questiontext']).' '.$currentAnswers.' </p>';
813 813
                 }
814 814
 
815 815
                 return $optionsValues;
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
             if (is_array($value)) {
835 835
                 $this->traverseArray($value, $keys);
836 836
             } else {
837
-                if (in_array($key, $keys)){
837
+                if (in_array($key, $keys)) {
838 838
                     unset($array[$key]);
839 839
                 }
840 840
             }
Please login to merge, or discard this patch.
main/coursecopy/import_moodle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     } else {
48 48
         Display::addFlash(Display::return_message(get_lang('ErrorImportingFile'), 'error'));
49 49
     }
50
-    header('Location: ' . api_get_self() . '?' . api_get_cidreq());
50
+    header('Location: '.api_get_self().'?'.api_get_cidreq());
51 51
 }
52 52
 
53 53
 $templateName = get_lang('ImportFromMoodle');
Please login to merge, or discard this patch.