xAPI-vle/moodle-logstore_xapi

View on GitHub
src/transformer/events/mod_feedback/item_answered/textfield.php

Summary

Maintainability
C
1 day
Test Coverage

Showing 3 of 3 total issues

Method textfield has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function textfield(
array $config,
\stdClass $event,
\stdClass $feedbackvalue,
\stdClass $feedbackitem,
Severity: Minor
Found in src/transformer/events/mod_feedback/item_answered/textfield.php - About 1 hr to fix

Method textfield has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

array $config,
\stdClass $event,
\stdClass $feedbackvalue,
\stdClass $feedbackitem,
array $actor
Severity: Minor
Found in src/transformer/events/mod_feedback/item_answered/textfield.php - About 35 mins to fix

Similar blocks of code found in 2 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
src/transformer/events/mod_feedback/item_answered/textarea.php on lines 1..90
Category
Status