Browse Source

Merge pull request #2060 from chamilo/scrutinizer-patch-2

Scrutinizer Auto-Fixes
Yannick Warnier 7 years ago
parent
commit
4884c4f9f0
1 changed files with 8 additions and 0 deletions
  1. 8 0
      main/inc/lib/online.inc.php

+ 8 - 0
main/inc/lib/online.inc.php

@@ -163,6 +163,7 @@ function online_logout($user_id = null, $logout_redirect = false)
 /**
  * Remove all login records from the track_e_online stats table, for the given user ID.
  * @param int User ID
+ * @param integer $user_id
  * @return void
  */
 function LoginDelete($user_id)
@@ -322,6 +323,9 @@ function who_is_online($from, $number_of_items, $column = null, $direction = nul
     }
 }
 
+/**
+ * @param string $time_limit
+ */
 function who_is_online_count($time_limit = null, $friends = false)
 {
     if (empty($time_limit)) {
@@ -438,6 +442,10 @@ function who_is_online_in_this_course($from, $number_of_items, $uid, $time_limit
 	}
 }
 
+/**
+ * @param integer $uid
+ * @param string $time_limit
+ */
 function who_is_online_in_this_course_count($uid, $time_limit, $coursecode = null)
 {
 	if (empty($coursecode)) {