Non-functional: reformat code to minimise CodeSniffer warnings (Moodle code style).