Completed
Pull Request — master (#2472)
by Kevin
23:34 queued 05:01
created
html/inc/token.inc 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@  discard block
 block discarded – undo
27 27
 define("TOKEN_DURATION_ONE_DAY", 86400);
28 28
 define("TOKEN_DURATION_ONE_WEEK", 604800);
29 29
 
30
+/**
31
+ * @param string $type
32
+ * @param integer $duration
33
+ */
30 34
 function create_token($userid, $type, $duration) {
31 35
     $token = random_string();
32 36
     $now = time();
@@ -46,6 +50,9 @@  discard block
 block discarded – undo
46 50
     return $result;
47 51
 }
48 52
 
53
+/**
54
+ * @param string $type
55
+ */
49 56
 function is_valid_token($userid, $token, $type) {
50 57
     $boincToken = BoincToken::lookup_valid_token($userid, $token, $type);
51 58
     if ( $boincToken == null ) {
Please login to merge, or discard this patch.
html/inc/user.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@
 block discarded – undo
113 113
     return ($a->expavg_credit < $b->expavg_credit) ? 1 : -1;
114 114
 }
115 115
 
116
+/**
117
+ * @param boolean $personal
118
+ */
116 119
 function show_other_projects($user, $personal) {
117 120
     if (!isset($user->projects)) return;
118 121
     if (count($user->projects) < 2) return;
Please login to merge, or discard this patch.