KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

Refactoring - Simplify and Modernise Code #222

Open hgeorgsch opened 1 year ago

hgeorgsch commented 1 year ago

The code should be reviewed with the following goals

  1. Harmonise the code with the core quiz, using similar patterns where possible.
  2. Benefit fully from the Moodle 4 qbank API.
  3. Avoid redundant code.
sebastsg commented 1 month ago

Mentioning #231 here due to new qbank api usage, but it also modernizes a lot of code with return and param types, shortened array syntax, and removing/cleaning weird code - f.ex checking if new doesn't return false/null...)