@@ -675,7 +675,7 @@ |
||
| 675 | 675 | /** |
| 676 | 676 | * This function will check whether the donor email is primary or additional. |
| 677 | 677 | * |
| 678 | - * @param $email Donor Email. |
|
| 678 | + * @param string $email Donor Email. |
|
| 679 | 679 | * |
| 680 | 680 | * @since 1.8.13 |
| 681 | 681 | * |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * Return the calculated completion percentage. |
| 217 | 217 | * |
| 218 | 218 | * @since 1.8.12 |
| 219 | - * @return int |
|
| 219 | + * @return double |
|
| 220 | 220 | */ |
| 221 | 221 | public function get_percentage_complete() { |
| 222 | 222 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -353,6 +353,9 @@ discard block |
||
| 353 | 353 | return true; |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | + /** |
|
| 357 | + * @param integer $page |
|
| 358 | + */ |
|
| 356 | 359 | public function get_delete_ids( $donation_ids, $page ) { |
| 357 | 360 | $index = $page --; |
| 358 | 361 | $count = count( $donation_ids ); |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | |
| 453 | 453 | /** |
| 454 | 454 | * @param $option_value |
| 455 | - * @param $value |
|
| 455 | + * @param boolean $value |
|
| 456 | 456 | * |
| 457 | 457 | * @return string |
| 458 | 458 | */ |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | * |
| 530 | 530 | * @since 1.8.14 |
| 531 | 531 | * |
| 532 | - * @param $file_id |
|
| 532 | + * @param integer $file_id |
|
| 533 | 533 | * |
| 534 | 534 | * @return bool|int |
| 535 | 535 | */ |
@@ -902,7 +902,7 @@ discard block |
||
| 902 | 902 | * @access public |
| 903 | 903 | * |
| 904 | 904 | * @param string $meta_key Metadata key. Default is empty. |
| 905 | - * @param mixed $meta_value Metadata value. |
|
| 905 | + * @param integer $meta_value Metadata value. |
|
| 906 | 906 | * @param mixed $prev_value Optional. Previous value to check before removing. Default is empty. |
| 907 | 907 | * |
| 908 | 908 | * @return bool False on failure, true if success. |
@@ -918,7 +918,7 @@ discard block |
||
| 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 | */ |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * |
| 65 | 65 | * @param string $value |
| 66 | 66 | * |
| 67 | - * @return mixed |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | function __give_validate_decimal_separator_setting_field( $value ) { |
| 70 | 70 | $thousand_separator = give_clean( $_POST['thousands_separator'] ); |
@@ -666,6 +666,7 @@ |
||
| 666 | 666 | * Check if Import donation is duplicate |
| 667 | 667 | * |
| 668 | 668 | * @since 1.8.13 |
| 669 | + * @param Give_Donate_Form $form |
|
| 669 | 670 | */ |
| 670 | 671 | function give_check_import_donation_duplicate( $payment_data, $data, $form, $donor_data ) { |
| 671 | 672 | $return = false; |
@@ -258,7 +258,7 @@ |
||
| 258 | 258 | * @access public |
| 259 | 259 | * @since 1.0 |
| 260 | 260 | * |
| 261 | - * @return mixed string If search is present, false otherwise. |
|
| 261 | + * @return string|false string If search is present, false otherwise. |
|
| 262 | 262 | */ |
| 263 | 263 | public function get_search() { |
| 264 | 264 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @since 1.0 |
| 23 | 23 | * |
| 24 | - * @return array|bool $output Response messages |
|
| 24 | + * @return false|null $output Response messages |
|
| 25 | 25 | */ |
| 26 | 26 | function give_edit_donor( $args ) { |
| 27 | 27 | |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | * |
| 228 | 228 | * @since 1.0 |
| 229 | 229 | * |
| 230 | - * @return int Whether it was a successful deletion. |
|
| 230 | + * @return false|null Whether it was a successful deletion. |
|
| 231 | 231 | */ |
| 232 | 232 | function give_donor_delete( $args ) { |
| 233 | 233 | |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | * |
| 522 | 522 | * @since 1.7 |
| 523 | 523 | * |
| 524 | - * @return bool|null |
|
| 524 | + * @return false|null |
|
| 525 | 525 | */ |
| 526 | 526 | function give_remove_donor_email() { |
| 527 | 527 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -565,7 +565,7 @@ discard block |
||
| 565 | 565 | * |
| 566 | 566 | * @since 1.7 |
| 567 | 567 | * |
| 568 | - * @return bool|null |
|
| 568 | + * @return false|null |
|
| 569 | 569 | */ |
| 570 | 570 | function give_set_donor_primary_email() { |
| 571 | 571 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | * |
| 706 | 706 | * @since 1.0 |
| 707 | 707 | * |
| 708 | - * @return int $earnings Earnings |
|
| 708 | + * @return double $earnings Earnings |
|
| 709 | 709 | */ |
| 710 | 710 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 711 | 711 | |
@@ -993,7 +993,7 @@ discard block |
||
| 993 | 993 | * |
| 994 | 994 | * @since 1.0 |
| 995 | 995 | * |
| 996 | - * @return array $user_info User Info Meta Values. |
|
| 996 | + * @return string $user_info User Info Meta Values. |
|
| 997 | 997 | */ |
| 998 | 998 | function give_get_payment_meta_user_info( $payment_id ) { |
| 999 | 999 | $payment = new Give_Payment( $payment_id ); |
@@ -1010,7 +1010,7 @@ discard block |
||
| 1010 | 1010 | * |
| 1011 | 1011 | * @since 1.0 |
| 1012 | 1012 | * |
| 1013 | - * @return int $form_id Form ID. |
|
| 1013 | + * @return string $form_id Form ID. |
|
| 1014 | 1014 | */ |
| 1015 | 1015 | function give_get_payment_form_id( $payment_id ) { |
| 1016 | 1016 | $payment = new Give_Payment( $payment_id ); |