Minor - Reformat code
Minor - reformat code
Fixing SQL queries when creating a course with contents
Adding course info array in the function api_set_default_visibility()