@@ -681,7 +681,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -47,7 +47,7 @@ |
||
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'); |