Completed
Pull Request — master (#2472)
by Kevin
10:40
created
drupal/sites/default/boinc/modules/contrib/filefield/filefield.module 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -540,7 +540,7 @@
 block discarded – undo
540 540
  * @param $file
541 541
  *   A file object.
542 542
  * @return
543
- *   The URL of the icon image file, or FALSE if no icon could be found.
543
+ string|false   The URL of the icon image file, or FALSE if no icon could be found.
544 544
  */
545 545
 function filefield_icon_url($file) {
546 546
   module_load_include('inc', 'filefield', 'filefield.theme');
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/filefield/filefield_widget.inc 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
  * @param $account
152 152
  *   The user account object to calculate the file path for.
153 153
  * @return
154
- *   The files directory path, with any tokens replaced.
154
+ string   The files directory path, with any tokens replaced.
155 155
  */
156 156
 function filefield_widget_file_path($field, $account = NULL) {
157 157
   $account = isset($account) ? $account : $GLOBALS['user'];
Please login to merge, or discard this patch.
html/inc/token.inc 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -25,6 +25,10 @@  discard block
 block discarded – undo
25 25
 // Constants for token durations
26 26
 define("TOKEN_DURATION_ONE_DAY", 86400);
27 27
 
28
+/**
29
+ * @param string $type
30
+ * @param integer $duration
31
+ */
28 32
 function create_token($userid, $type, $duration) {
29 33
     $token = random_string();
30 34
     $now = time();
@@ -37,6 +41,9 @@  discard block
 block discarded – undo
37 41
     return $token;
38 42
 }
39 43
 
44
+/**
45
+ * @param string $type
46
+ */
40 47
 function is_valid_token($userid, $token, $type) {
41 48
     $boincToken = BoincToken::lookup_valid_token($userid, $token, $type);
42 49
     if ( $boincToken == null ) {
Please login to merge, or discard this patch.
html/inc/user_util.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
 // return true if the passwd hash (old format)
37 37
 // matches the user's passwd hash (possibly new format)
38 38
 //
39
+/**
40
+ * @param string $passwd_hash
41
+ */
39 42
 function check_passwd_hash($user, $passwd_hash) {
40 43
     if (password_verify($passwd_hash, $user->passwd_hash)) {
41 44
         // on valid login, rehash password to upgrade hash overtime
Please login to merge, or discard this patch.