classes/log/store.php
Showing 4 of 4 total issues
Method get_event_id
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_event_id($event) { global $DB; $sqlparams = array(); $where = array('1 = 1');
- Create a ticketCreate a ticket
Method get_handler_config
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_handler_config() { global $DB, $CFG; $plugin = core_plugin_manager::instance()->get_plugin_info('logstore_xapi');
- Create a ticketCreate a ticket
Function get_event_id
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function get_event_id($event) { global $DB; $sqlparams = array(); $where = array('1 = 1');
- Read upRead up
- Create a ticketCreate a ticket
Function convert_array_to_objects
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function convert_array_to_objects($events) { $return = array(); if (!empty($events)) { foreach ($events as $event) {
- Read upRead up
- Create a ticketCreate a ticket