Add type hinting to get_course_time()
This commit is contained in:
parent
54be90f5c4
commit
52be3400f7
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class certificate {
|
|||
* @param int $userid
|
||||
* @return int the total time spent in seconds
|
||||
*/
|
||||
public static function get_course_time($courseid, $userid = 0) {
|
||||
public static function get_course_time(int $courseid, int $userid = 0): int {
|
||||
global $CFG, $DB, $USER;
|
||||
|
||||
if (empty($userid)) {
|
||||
|
|
Loading…
Reference in a new issue