Passed
Push — 7.x-4.0.x-filter-webform-goals... ( 45d508 )
by CammoKing
04:35
created
capwiz_connect/capwiz_connect_js/capwiz_connect_js.module 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -242,6 +242,7 @@  discard block
 block discarded – undo
242 242
  *    The capwiz object to work with, either an action or a user
243 243
  * @param Array
244 244
  *    The full array of data returned from the capwiz form
245
+ * @param string $type
245 246
  * @return Object
246 247
  *    An object of values depending on the type
247 248
  */
@@ -326,6 +327,9 @@  discard block
 block discarded – undo
326 327
   return $values;
327 328
 }
328 329
 
330
+/**
331
+ * @param string $field
332
+ */
329 333
 function _capwiz_connect_js_preg_array_keys($field, $array) {
330 334
   $pattern = '/' . str_replace('%int', '[0-9]+', $field) . '/';
331 335
   $keys = array_keys($array);
Please login to merge, or discard this patch.
capwiz_connect/CapwizConnect.inc 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
   /**
348 348
    * Get the definition of a specific user field
349 349
    *
350
-   * @param $field_name
350
+   * @param string $field_name
351 351
    *   Key of the custom field, matching to the field->name value
352 352
    */
353 353
   public function getSpecificCustomUserField($field_name) {
Please login to merge, or discard this patch.
dsr/dsr.email.inc 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -120,11 +120,17 @@
 block discarded – undo
120 120
 
121 121
 }
122 122
 
123
+/**
124
+ * @param string $type
125
+ */
123 126
 function dsr_email_report_link($type, $start_date, $end_date) {
124 127
   global $base_url;
125 128
   return $base_url . '/' . DSR_RECONCILIATION_PATH . '/report/' . $type . '/' . date('Y-m-d', strtotime($start_date)) . '/' . date('Y-m-d', strtotime($end_date)) . "\n";
126 129
 }
127 130
 
131
+/**
132
+ * @param string $suffix
133
+ */
128 134
 function _dsr_text_results($suffix, $stats) {
129 135
   if (isset($stats["salesforce_$suffix"]['types'])) {
130 136
     foreach ($stats["salesforce_$suffix"]['types'] as $label => $data) {
Please login to merge, or discard this patch.
dsr/dsr.module 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 /**
444 444
  * Runs soql statements to retrieve donations.
445 445
  *
446
- * @param $soql
446
+ * @param string $soql
447 447
  *   The SOQL select statement to run.
448 448
  */
449 449
 function _dsr_run_soql_opportunity_select($soql) {
@@ -551,6 +551,10 @@  discard block
 block discarded – undo
551 551
   return _dsr_compile_dates($date1, $date2);
552 552
 }
553 553
 
554
+/**
555
+ * @param string|null $date1
556
+ * @param string|null $date2
557
+ */
554 558
 function _dsr_compile_dates($date1, $date2) {
555 559
   return array(
556 560
     'start' => $date1,
Please login to merge, or discard this patch.
dsr/includes/dsr.queries.inc 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 /**
73 73
  * Perform aggregate query on Salesforce data by donation status and date range
74 74
  *
75
- * @param type $status
75
+ * @param string $status
76 76
  * @param type $start_date
77 77
  * @param type $end_date
78 78
  * @return type
Please login to merge, or discard this patch.
email_wrappers/email_wrappers.module 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
  * email template node object.
631 631
  *
632 632
  * @return
633
- * returns BCC field values as a comma-separated string.
633
+ string returns BCC field values as a comma-separated string.
634 634
  */
635 635
 function _email_wrappers_concat_bcc($node) {
636 636
   $bccs = array();
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
  * @param $form
651 651
  * form array
652 652
  *
653
- * @param $field_key
653
+ * @param string $field_key
654 654
  * Valid options: subject, from_name, from_address
655 655
  *
656 656
  * @param $value
@@ -672,6 +672,7 @@  discard block
 block discarded – undo
672 672
 
673 673
 /**
674 674
  * Generate modal preview.
675
+ * @param string $op
675 676
  */
676 677
 function _email_wrappers_preview($op, $message, $nid) {
677 678
 
@@ -707,6 +708,7 @@  discard block
 block discarded – undo
707 708
 /**
708 709
  * Quick and dirty helper function to dredge up the cid of a webform component
709 710
  * given the standard array of components and a form key.
711
+ * @param string $form_key
710 712
  */
711 713
 function _email_wrappers_get_cid($components, $form_key) {
712 714
   foreach ($components as $cid => $component) {
Please login to merge, or discard this patch.
fundraiser/fundraiser.module 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
  *    An array of values usually from the field configuration
675 675
  * @param $fieldset Array
676 676
  *    Formapi fieldset
677
- * @param $name String
677
+ * @param string $name String
678 678
  *    Name of the fieldset
679 679
  *
680 680
  * @return Array
@@ -845,6 +845,7 @@  discard block
 block discarded – undo
845 845
 
846 846
 /**
847 847
  * Generate donation ask amount fields, used by donation form
848
+ * @param integer $index
848 849
  */
849 850
 function _fundraiser_ask_form($amount_values = array(), $index, $node) {
850 851
   $form['amount'] = array(
@@ -1247,6 +1248,7 @@  discard block
 block discarded – undo
1247 1248
 /**
1248 1249
  * Process through given submission fields to change their display form on the fly. Recursive.
1249 1250
  * Calling module provides the identity of the display glue module. Usually webform, could be sustainers.
1251
+ * @param string $calling_module
1250 1252
  */
1251 1253
 function fundraiser_display_form_fields($calling_module, &$form, $form_state, $field_info = NULL) {
1252 1254
   if ($field_info == NULL) {
@@ -1499,6 +1501,7 @@  discard block
 block discarded – undo
1499 1501
 
1500 1502
 /**
1501 1503
  * Donation processing, a given donation needs to be commented on.
1504
+ * @param string $comment
1502 1505
  */
1503 1506
 function fundraiser_donation_comment($donation, $comment, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL) {
1504 1507
   // Make a log entry
@@ -2136,6 +2139,7 @@  discard block
 block discarded – undo
2136 2139
 
2137 2140
 /**
2138 2141
  * Create a refund object.
2142
+ * @param stdClass $refund
2139 2143
  */
2140 2144
 function fundraiser_refund_create($refund) {
2141 2145
   // Call hooks to create the donation. The glue module handles everything else once handed fundraisers info.
@@ -2379,6 +2383,7 @@  discard block
 block discarded – undo
2379 2383
 /**
2380 2384
  * Helper function, check if given string is an email format. Generically useful function.
2381 2385
  * Future plans: this may need to be moved to a toolkit module for use by all our modules.
2386
+ * @param string $mail
2382 2387
  */
2383 2388
 function _fundraiser_validate_email($mail) {
2384 2389
   // eregi is depr in PHP 5.3. Replaced with preg_match, adding lower case options.
@@ -2732,6 +2737,7 @@  discard block
 block discarded – undo
2732 2737
 
2733 2738
 /**
2734 2739
  * DB function for updating the stats in fundraiser_tracking.
2740
+ * @param string $field
2735 2741
  */
2736 2742
 function _fundraiser_update_tracking_value($nid, $field) {
2737 2743
   $tracking = _fundraiser_get_tracking_by_nid($nid);
Please login to merge, or discard this patch.
fundraiser/modules/fundraiser_ab/fundraiser_ab.module 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -63,6 +63,7 @@
 block discarded – undo
63 63
 /**
64 64
  * Implements hook_webform_ab_valid_webforms().
65 65
  * Return an array of donation forms that may be included in an A/B Test.
66
+ * @param string $webform_types
66 67
  */
67 68
 function fundraiser_ab_webform_ab_valid_webforms($webform_types) {
68 69
   if ($webform_types == 'fundraiser') {
Please login to merge, or discard this patch.
fundraiser/modules/fundraiser_commerce/fundraiser_commerce.module 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1511,6 +1511,7 @@  discard block
 block discarded – undo
1511 1511
 
1512 1512
 /**
1513 1513
  * Helper function, derives a valid username from an e-mail address.
1514
+ * @param string $email
1514 1515
  */
1515 1516
 function _fundraiser_commerce_email_to_username($email) {
1516 1517
   $name = substr($email, 0, strpos($email, '@'));
@@ -1693,6 +1694,8 @@  discard block
 block discarded – undo
1693 1694
 
1694 1695
 /**
1695 1696
  * Helper function, wrapper for encrypt function.
1697
+ * @param string $input
1698
+ * @return string
1696 1699
  */
1697 1700
 function _fundraiser_commerce_encrypt($input) {
1698 1701
   if (module_exists('encrypt')) {
Please login to merge, or discard this patch.