@@ -98,7 +98,7 @@ |
||
98 | 98 | * |
99 | 99 | * @since 1.8 |
100 | 100 | * |
101 | - * @return bool |
|
101 | + * @return false|null |
|
102 | 102 | */ |
103 | 103 | function give_redirect_to_clean_url_admin_pages() { |
104 | 104 | // Give admin pages. |
@@ -388,6 +388,9 @@ discard block |
||
388 | 388 | } |
389 | 389 | } |
390 | 390 | |
391 | + /** |
|
392 | + * @param boolean $value |
|
393 | + */ |
|
391 | 394 | static function selected( $option_value, $value ) { |
392 | 395 | $selected = ''; |
393 | 396 | if ( stristr( $value, $option_value ) ) { |
@@ -456,6 +459,9 @@ discard block |
||
456 | 459 | <?php |
457 | 460 | } |
458 | 461 | |
462 | + /** |
|
463 | + * @param integer $file_id |
|
464 | + */ |
|
459 | 465 | static function get_csv_total( $file_id ) { |
460 | 466 | $total = false; |
461 | 467 | if ( $file_id ) { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * @since 1.0 |
165 | 165 | * @access public |
166 | 166 | * |
167 | - * @param bool|string|int $_id_or_email |
|
167 | + * @param integer $_id_or_email |
|
168 | 168 | * |
169 | 169 | * @return bool|int |
170 | 170 | */ |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * @param int $user_id User ID. |
360 | 360 | * @param WP_User|bool $old_user_data User data. |
361 | 361 | * |
362 | - * @return bool |
|
362 | + * @return false|null |
|
363 | 363 | */ |
364 | 364 | public function update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) { |
365 | 365 | |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | * @access public |
417 | 417 | * |
418 | 418 | * @param string $field ID or email. Default is 'id'. |
419 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
419 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
420 | 420 | * |
421 | 421 | * @return mixed Upon success, an object of the donor. Upon failure, NULL |
422 | 422 | */ |
@@ -918,7 +918,7 @@ |
||
918 | 918 | * @access public |
919 | 919 | * |
920 | 920 | * @param string $meta_key Metadata name. Default is empty. |
921 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
921 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
922 | 922 | * |
923 | 923 | * @return bool False for failure. True for success. |
924 | 924 | */ |
@@ -1481,6 +1481,7 @@ discard block |
||
1481 | 1481 | * Check if Import donation is duplicate |
1482 | 1482 | * |
1483 | 1483 | * @since 1.8.13 |
1484 | + * @param Give_Donate_Form $form |
|
1484 | 1485 | */ |
1485 | 1486 | function give_check_import_donation_duplicate( $payment_data, $data, $form, $donor_data ) { |
1486 | 1487 | $return = false; |
@@ -1566,7 +1567,6 @@ discard block |
||
1566 | 1567 | * Import CSV in DB |
1567 | 1568 | * |
1568 | 1569 | * @param int $file_id CSV id |
1569 | - * @param array $mapto Map csv to meta key. |
|
1570 | 1570 | * @param int $start Start from which csv line. |
1571 | 1571 | * @param int $end End from which csv line. |
1572 | 1572 | */ |
@@ -2055,7 +2055,7 @@ discard block |
||
2055 | 2055 | * @since 1.8.13 |
2056 | 2056 | * |
2057 | 2057 | * @param array $list List of objects or arrays |
2058 | - * @param int|string $field Field from the object to place instead of the entire object |
|
2058 | + * @param string $field Field from the object to place instead of the entire object |
|
2059 | 2059 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
2060 | 2060 | * Default null. |
2061 | 2061 | * |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | * @param int $year Year number. Default is null. |
698 | 698 | * @param int $hour Hour number. Default is null. |
699 | 699 | * |
700 | - * @return int $earnings Earnings |
|
700 | + * @return double $earnings Earnings |
|
701 | 701 | */ |
702 | 702 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
703 | 703 | |
@@ -986,7 +986,7 @@ discard block |
||
986 | 986 | * |
987 | 987 | * @param int $payment_id Payment ID. |
988 | 988 | * |
989 | - * @return array $user_info User Info Meta Values. |
|
989 | + * @return string $user_info User Info Meta Values. |
|
990 | 990 | */ |
991 | 991 | function give_get_payment_meta_user_info( $payment_id ) { |
992 | 992 | $payment = new Give_Payment( $payment_id ); |
@@ -1003,7 +1003,7 @@ discard block |
||
1003 | 1003 | * |
1004 | 1004 | * @param int $payment_id Payment ID. |
1005 | 1005 | * |
1006 | - * @return int $form_id Form ID. |
|
1006 | + * @return string $form_id Form ID. |
|
1007 | 1007 | */ |
1008 | 1008 | function give_get_payment_form_id( $payment_id ) { |
1009 | 1009 | $payment = new Give_Payment( $payment_id ); |
@@ -671,7 +671,7 @@ |
||
671 | 671 | /** |
672 | 672 | * This function will check whether the donor email is primary or additional. |
673 | 673 | * |
674 | - * @param $email Donor Email. |
|
674 | + * @param string $email Donor Email. |
|
675 | 675 | * |
676 | 676 | * @since 1.8.13 |
677 | 677 | * |