MDL-46576 Gradebook: Fix coding style in lib/ and local/