Part of MDL-55611 epic.
// so the old implementation must remain here.
$module = get_coursemodule_from_instance($modulename, $instance);
- if($module === false) return false;
- if(!calendar_get_course_cached($coursecache, $module->course)) {
+ if ($module === false) {
+ return false;
+ }
+ if (!calendar_get_course_cached($coursecache, $module->course)) {
return false;
}
return $module;
* @param array $courseids the list of course ids to filter by
* @return array
*/
-function enrol_get_my_courses($fields = NULL, $sort = 'visible DESC,sortorder ASC',
+function enrol_get_my_courses($fields = null, $sort = 'visible DESC,sortorder ASC',
$limit = 0, $courseids = []) {
global $DB, $USER;
*
* @Given /^I am on "(?P<coursefullname_string>(?:[^"]|\\")*)" course homepage$/
* @throws coding_exception
- * @param $coursefullname string The full name of the course.
+ * @param string $coursefullname The full name of the course.
* @return void
*/
public function i_am_on_course_homepage($coursefullname) {
*
* @Given /^I am on "(?P<coursefullname_string>(?:[^"]|\\")*)" course homepage with editing mode on$/
* @throws coding_exception
- * @param $coursefullname string The course full name of the course.
+ * @param string $coursefullname The course full name of the course.
* @return void
*/
public function i_am_on_course_homepage_with_editing_mode_on($coursefullname) {