Non-functional: reformat code to minimise CodeSniffer warnings (Moodle code style).
Merge pull request #1 from throup/master

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