Add type hinting to get_course_time()
This commit is contained in:
parent
6e89c1d921
commit
47061f8737
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