Completed
Pull Request — master (#2513)
by
unknown
11:30
created
drupal/sites/default/boinc/modules/contrib/flag/flag.inc 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
    *   Optional. The user object. If none given, the current user will be used.
431 431
    *
432 432
    * @return
433
-   *   Boolean TRUE if the user is allowed to flag/unflag. FALSE otherwise.
433
+   boolean   Boolean TRUE if the user is allowed to flag/unflag. FALSE otherwise.
434 434
    */
435 435
   function user_access($action = 'flag', $account = NULL) {
436 436
     if (!isset($account)) {
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
    * @param $skip_permission_check
621 621
    *   Flag the item even if the $account user don't have permission to do so.
622 622
    * @return
623
-   *   FALSE if some error occured (e.g., user has no permission, flag isn't
623
+   boolean   FALSE if some error occured (e.g., user has no permission, flag isn't
624 624
    *   applicable to the item, etc.), TRUE otherwise.
625 625
    */
626 626
   function flag($action, $content_id, $account = NULL, $skip_permission_check = FALSE) {
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
    *   current user will be used.
703 703
    *
704 704
    * @return
705
-   *   TRUE if the content is flagged, FALSE otherwise.
705
+   boolean   TRUE if the content is flagged, FALSE otherwise.
706 706
    */
707 707
   function is_flagged($content_id, $uid = NULL, $sid = NULL) {
708 708
     return (bool) $this->get_flagging_record($content_id, $uid, $sid);
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
    * E.g., do `print $flag->get_label('title')` instead of `print
876 876
    * $flag->title`.
877 877
    *
878
-   * @param $label
878
+   * @param string $label
879 879
    *   The label to get, e.g. 'title', 'flag_short', 'unflag_short', etc.
880 880
    * @param $content_id
881 881
    *   The ID in whose context to interpret tokens. If not given, only global
@@ -1147,7 +1147,7 @@  discard block
 block discarded – undo
1147 1147
    * call flag_get_flag($this->name) again.
1148 1148
    *
1149 1149
    * @return
1150
-   *   TRUE if the flag was reverted successfully; FALSE if there was an error;
1150
+   boolean|null   TRUE if the flag was reverted successfully; FALSE if there was an error;
1151 1151
    *   NULL if this flag overrides no default flag.
1152 1152
    */
1153 1153
   function revert() {
@@ -1787,6 +1787,7 @@  discard block
 block discarded – undo
1787 1787
 
1788 1788
   /**
1789 1789
    * Returns the actual storage object compatible with the flag.
1790
+   * @param flag_flag $flag
1790 1791
    */
1791 1792
   static function factory($flag) {
1792 1793
     if ($flag->global) {
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/flag/flag.module 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1204,7 +1204,7 @@  discard block
 block discarded – undo
1204 1204
 /**
1205 1205
  * Get flag counts for all flags on a node.
1206 1206
  *
1207
- * @param $content_type
1207
+ * @param null|string $content_type
1208 1208
  *   The content type (usually 'node').
1209 1209
  * @param $content_id
1210 1210
  *   The content ID (usually the node ID).
@@ -1400,7 +1400,7 @@  discard block
 block discarded – undo
1400 1400
  *   The subtype (node type) being checked.
1401 1401
  *
1402 1402
  * @return
1403
- *   TRUE if the flag is enabled for this type and subtype.
1403
+ boolean   TRUE if the flag is enabled for this type and subtype.
1404 1404
  */
1405 1405
 function _flag_content_enabled($flag, $content_type, $content_subtype = NULL) {
1406 1406
   $return = $flag->content_type == $content_type && (!isset($content_subtype) || in_array($content_subtype, $flag->types));
@@ -1481,7 +1481,7 @@  discard block
 block discarded – undo
1481 1481
 /**
1482 1482
  * Find what a user has flagged, either a single node or on the entire site.
1483 1483
  *
1484
- * @param $content_type
1484
+ * @param null|string $content_type
1485 1485
  *   The type of content that will be retrieved. Usually 'node'.
1486 1486
  * @param $content_id
1487 1487
  *   Optional. The content ID to check for flagging. If none given, all
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/flag/flag_actions.module 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -506,6 +506,7 @@
 block discarded – undo
506 506
  * Execute an action form callback to retrieve form additions.
507 507
  *
508 508
  * This function prevents the form callback from modifying local variables.
509
+ * @param string $callback
509 510
  */
510 511
 function flag_actions_form_additions($callback, $edit) {
511 512
   return $callback($edit);
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/flag/includes/flag.actions.inc 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
  *
179 179
  * @param $context
180 180
  *   The current action context.
181
- * @param $content_type
181
+ * @param string $content_type
182 182
  *   The content type applicable to this action, such as "node" or "comment".
183 183
  */
184 184
 function flag_action_form($context, $content_type) {
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/flag/includes/flag.views.inc 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -258,6 +258,7 @@
 block discarded – undo
258 258
  *
259 259
  * This function is used to select the desired flag when setting up flag
260 260
  * relationships and fields.
261
+ * @param string $form_type
261 262
  */
262 263
 function flag_views_flag_config_form($form_type, $content_type, $current_flag) {
263 264
   $flags = flag_get_flags($content_type);
Please login to merge, or discard this patch.
contrib/flag/includes/flag_plugin_argument_validate_flaggability.inc 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -116,6 +116,8 @@
 block discarded – undo
116 116
    * Returns an option's value.
117 117
    *
118 118
    * Purpose: insulate us from the difference between Views 3 and Views 2.
119
+   * @param string $option
120
+   * @param string $default
119 121
    */
120 122
   function _get_option($option, $default) {
121 123
     if (_flag_is_views3()) {
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/views/includes/handlers.inc 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,6 +30,7 @@  discard block
 block discarded – undo
30 30
  *
31 31
  * This will also attempt to include all parents, though we're maxing the
32 32
  * parent chain to 10 to prevent infinite loops.
33
+ * @param string $type
33 34
  */
34 35
 function views_include_handler($definition, $type, $count = 0) {
35 36
   // Do not proceed if the class already exists.
@@ -912,7 +913,7 @@  discard block
 block discarded – undo
912 913
 /**
913 914
  * Helper function to create cross-database SQL date formatting.
914 915
  *
915
- * @param $format
916
+ * @param string $format
916 917
  *   A format string for the result, like 'Y-m-d H:i:s'.
917 918
  * @param $field
918 919
  *   The real table and field name, like 'tablename.fieldname'.
@@ -978,7 +979,7 @@  discard block
 block discarded – undo
978 979
 /**
979 980
  * Helper function to create cross-database SQL date extraction.
980 981
  *
981
- * @param $extract_type
982
+ * @param string $extract_type
982 983
  *   The type of value to extract from the date, like 'MONTH'.
983 984
  * @param $field
984 985
  *   The real table and field name, like 'tablename.fieldname'.
@@ -1246,6 +1247,8 @@  discard block
 block discarded – undo
1246 1247
 class views_join {
1247 1248
   /**
1248 1249
    * Construct the views_join object.
1250
+   * @param string $table
1251
+   * @param string $field
1249 1252
    */
1250 1253
   function construct($table = NULL, $left_table = NULL, $left_field = NULL, $field = NULL, $extra = array(), $type = 'LEFT') {
1251 1254
     $this->extra_type = 'AND';
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincwork/includes/boincwork.helpers.inc 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -977,6 +977,7 @@  discard block
 block discarded – undo
977 977
 
978 978
 /**
979 979
  * Format a number to be displayed using a maximum number of digits
980
+ * @param double $number
980 981
  */ 
981 982
 function boincwork_format_stats($number, $max_digits = 4) {
982 983
   $suffix = array(
@@ -1187,6 +1188,9 @@  discard block
 block discarded – undo
1187 1188
   //  xml_to_array(): Convert an XML DOM object to array format
1188 1189
   //------------------------------------------------------------------------------------------------
1189 1190
   
1191
+  /**
1192
+   * @param DOMDocument $xml
1193
+   */
1190 1194
   function xml_to_array($xml) {
1191 1195
       $node = $xml->firstChild; //$xml->first_child();
1192 1196
       $result = '';
@@ -1269,6 +1273,7 @@  discard block
 block discarded – undo
1269 1273
 
1270 1274
 /**
1271 1275
   * Determine output for host list views when no hosts are found.
1276
+  * @param string $context
1272 1277
   */
1273 1278
 function boincwork_views_host_list_empty_text($context = NULL) {
1274 1279
   
@@ -1818,6 +1823,7 @@  discard block
 block discarded – undo
1818 1823
 
1819 1824
 /**
1820 1825
  * Function to delete a column from an array.
1826
+ * @param integer $offset
1821 1827
  */
1822 1828
 function delete_col(&$array, $offset) {
1823 1829
   return array_walk($array, function (&$v) use ($offset) {
Please login to merge, or discard this patch.
html/inc/pm.inc 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -48,6 +48,10 @@  discard block
 block discarded – undo
48 48
     return $x;
49 49
 }
50 50
 
51
+/**
52
+ * @param null|integer $teamid
53
+ * @param string $error
54
+ */
51 55
 function pm_team_form($user, $teamid, $error=null) {
52 56
     global $bbcode_html, $bbcode_js;
53 57
     $team = BoincTeam::lookup_id($teamid);
@@ -99,6 +103,9 @@  discard block
 block discarded – undo
99 103
     page_tail();
100 104
 }
101 105
 
106
+/**
107
+ * @param string $error
108
+ */
102 109
 function pm_form($replyto, $userid, $error = null) {
103 110
     global $bbcode_html, $bbcode_js;
104 111
     global $g_logged_in_user;
@@ -217,6 +224,9 @@  discard block
 block discarded – undo
217 224
     return "<a href=pm.php>".tra("Private message%1 from %2, subject:" , "</a>", $from_user->name )." $pm->subject";
218 225
 }
219 226
 
227
+/**
228
+ * @param boolean $send_email
229
+ */
220 230
 function pm_send_msg($from_user, $to_user, $subject, $content, $send_email) {
221 231
     $sql_subject = BoincDb::escape_string(sanitize_tags($subject));
222 232
     $sql_content = BoincDb::escape_string($content);
@@ -245,6 +255,9 @@  discard block
 block discarded – undo
245 255
     BoincNotify::insert("(userid, create_time, type, opaque) values ($to_user->id, ".time().", ".NOTIFY_PM.", $mid)");
246 256
 }
247 257
 
258
+/**
259
+ * @param integer $duration
260
+ */
248 261
 function pm_count($userid, $duration) {
249 262
     $time = time() - $duration;
250 263
 
Please login to merge, or discard this patch.