Made code compliant with moodle coding guidelines (again!)

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>
2.5.7 (Build - 2013120200) ready for release.

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>