CONTRIB-4027 and made access.php moodle code-style compliant.

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