Minor - clean code from codacy - refs BT#20060

pull/4420/head
Christian 3 years ago
parent e02d332c61
commit b48c87a317
  1. 8
      main/inc/lib/MoodleImport.php

@ -1787,8 +1787,7 @@ class MoodleImport
$qtype, $qtype,
$subQuestion['plugin_qtype_'.$qtype.'_question'], $subQuestion['plugin_qtype_'.$qtype.'_question'],
$placeholder, $placeholder,
$slot + 1, $slot + 1
$importedFiles
); );
} }
@ -1828,7 +1827,6 @@ class MoodleImport
$questionList, $questionList,
$placeholder, $placeholder,
0, 0,
$importedFiles,
$sectionPath $sectionPath
); );
@ -2026,7 +2024,6 @@ class MoodleImport
* @param array $answerValues * @param array $answerValues
* @param string $placeholder * @param string $placeholder
* @param int $position * @param int $position
* @param array $importedFiles
* *
* @return int db response * @return int db response
*/ */
@ -2036,11 +2033,8 @@ class MoodleImport
$answerValues, $answerValues,
&$placeholder, &$placeholder,
$position, $position,
$importedFiles = [],
$sectionPath = '' $sectionPath = ''
) { ) {
$coursePath = api_get_course_path();
switch ($questionType) { switch ($questionType) {
case 'multichoice': case 'multichoice':
$optionsValues = []; $optionsValues = [];

Loading…
Cancel
Save