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 2 patches
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.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
         $x .= ' <a href="'.url_base().'view_profile.php?userid='.$user->id.'"><img title="View the profile of '.$user->name.'" src="'.$img_url.'" alt="Profile"></a>';
339 339
     }
340 340
     $x .= " <a href=\"".url_base()."show_user.php?userid=".$user->id."\">".$user->name."</a>";
341
-    if (function_exists("project_user_links")){
341
+    if (function_exists("project_user_links")) {
342 342
         $x .= project_user_links($user);
343 343
     }
344 344
     if ($badge_height) {
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 // Returns a cacheable community links data object
460 460
 // @param user The user to produce a community links object for
461 461
 
462
-function get_community_links_object($user){
462
+function get_community_links_object($user) {
463 463
     $cache_object = new StdClass;
464 464
     $cache_object->post_count = total_posts($user);
465 465
     $cache_object->user = $user;
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
     return $cache_object;
476 476
 }
477 477
 
478
-function community_links($clo, $logged_in_user){
478
+function community_links($clo, $logged_in_user) {
479 479
     $user = $clo->user;
480 480
     $team = $clo->team;
481 481
     $friends = $clo->friends;
Please login to merge, or discard this patch.