Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,081 changes: 2,081 additions & 0 deletions src/CoreBundle/Controller/AbstractCourseMaintenanceController.php

Large diffs are not rendered by default.

3,254 changes: 395 additions & 2,859 deletions src/CoreBundle/Controller/CourseMaintenanceController.php

Large diffs are not rendered by default.

195 changes: 115 additions & 80 deletions src/CourseBundle/Component/CourseCopy/Course.php

Large diffs are not rendered by default.

24 changes: 8 additions & 16 deletions src/CourseBundle/Component/CourseCopy/CourseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,6 @@ public function set_tools_specific_id_list(array $array): void
$this->specific_id_list = $array;
}

/**
* Get legacy Course container.
*/
public function get_course(): Course
{
return $this->course;
}

/**
* Build the course (documents already repo-based; other tools preserved).
*
Expand Down Expand Up @@ -1628,14 +1620,6 @@ public function build_quizzes(
return array_keys($neededQuestionIds);
}

/**
* Safe count helper for mixed values.
*/
private function safeCount(mixed $v): int
{
return (\is_array($v) || $v instanceof Countable) ? \count($v) : 0;
}

/**
* Export Quiz Questions (answers and options promoted).
*
Expand Down Expand Up @@ -1761,6 +1745,14 @@ private function exportQuestionsWithAnswers(object $legacyCourse, array $questio
}
}

/**
* Safe count helper for mixed values.
*/
private function safeCount(mixed $v): int
{
return (\is_array($v) || $v instanceof Countable) ? \count($v) : 0;
}

/**
* Export Link category as legacy item.
*/
Expand Down
Loading
Loading