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
|
* @param int $userid
|
||||||
* @return int the total time spent in seconds
|
* @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;
|
global $CFG, $DB, $USER;
|
||||||
|
|
||||||
if (empty($userid)) {
|
if (empty($userid)) {
|
||||||
|
|
Loading…
Reference in a new issue