Skip to content

Commit

Permalink
remove type arg from course module object builder
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Oct 9, 2024
1 parent 8a29118 commit fa602c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/transformer/utils/get_activity/course_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@
* @param array $config The transformer config settings.
* @param \stdClass $course The course object.
* @param int $cmid The id of the context.
* @param ?string $xapitype The type of xAPI object.
* @return array
*/
function course_module(array $config, \stdClass $course, int $cmid, ?string $xapitype = null) {
function course_module(array $config, \stdClass $course, int $cmid) {
$repo = $config['repo'];
$coursemodule = $repo->read_record_by_id('course_modules', $cmid);
$module = $repo->read_record_by_id('modules', $coursemodule->module);
Expand Down

0 comments on commit fa602c3

Please sign in to comment.