I am currently taking on the (huge) task of making the Questionnaire plugin fully compliant with the Moodle Coding style.
The Code checker throws this error: "No scope modifier specified for function ...". The Code Style says: "Methods inside classes must always declare their visibility by using one of the private, protected, or public modifiers. "
If I declare those functions' visibility using one of those 3 modifiers, it keeps the Code checker happy. However, and this is the reason for my question, I have not the faintest idea which of those 3 modifiers I should use in my functions.