Showing 8 of 8 total issues
File replayevents.js
has 318 lines of code (exceeds 250 allowed). Consider refactoring. Open
// 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// the Free Software Foundation, either version 3 of the License, or
- Create a ticketCreate a ticket
Function registerResendEvent
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
registerResendEvent: function() { var self = this; if (selectorChanged) { return;
- Create a ticketCreate a ticket
Function doReplayEvent
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
doReplayEvent: function(eventId) { var url = mdlcfg.wwwroot + '/admin/tool/log/store/xapi/ajax/moveback_to_log.php'; var eventIds = [eventId]; var self = this; var element = $('#' + REPLAY_EVENT_ID_PREFIX + eventId);
- Create a ticketCreate a ticket
Similar blocks of code found in 3 locations. Consider refactoring. Open
generateLoadHTML: function() { str.get_strings([ { key: 'loadinghelp', component: 'moodle'
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 3 locations. Consider refactoring. Open
generateFailedHTML: function() { str.get_strings([ { key: 'failed', component: 'logstore_xapi'
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 3 locations. Consider refactoring. Open
generateDoneHTML: function() { str.get_strings([ { key: 'success', component: 'moodle'
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
enableFormControls: function() { this.enableFormCheckboxes(); this.enableFormSelects(); this.enableFormSubmit(); this.enableResend();
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
disableFormControls: function() { this.disableFormSubmit(); this.disableFormCheckboxes(); this.disableFormSelects(); this.disableResend();
- Read upRead up
- Create a ticketCreate a ticket