xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/events/mod_facetoface/signup_success.php

Summary

Maintainability
C
7 hrs
Test Coverage

Showing 2 of 2 total issues

Method signup_success has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function signup_success(array $config, \stdClass $event) {
$repo = $config['repo'];
$user = $repo->read_record_by_id('user', $event->userid);
$course = $repo->read_record_by_id('course', $event->courseid);
$lang = utils\get_course_lang($course);
Severity: Minor
Found in src/transformer/events/mod_facetoface/signup_success.php - About 1 hr to fix

Similar blocks of code found in 5 locations. Consider refactoring.
Open

<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Severity: Major
Found in src/transformer/events/mod_facetoface/signup_success.php and 4 other locations - About 6 hrs to fix
src/transformer/events/core/course_module_created.php on lines 1..68
src/transformer/events/mod_facetoface/cancel_booking.php on lines 1..70
src/transformer/events/mod_forum/subscription_created.php on lines 1..65
src/transformer/events/mod_forum/subscription_deleted.php on lines 1..65

There are no issues that match your filters.

Category
Status