@@ -435,7 +435,7 @@ |
||
| 435 | 435 | * @since 1.8.9 |
| 436 | 436 | * @access public |
| 437 | 437 | * |
| 438 | - * @param $errors |
|
| 438 | + * @param string $errors |
|
| 439 | 439 | */ |
| 440 | 440 | static function print_frontend_errors( $errors ) { |
| 441 | 441 | if ( ! $errors ) { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param $end_date string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month` |
| 37 | 37 | * @param $status string|array The sale status(es) to count. Only valid when retrieving global stats |
| 38 | 38 | * |
| 39 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 39 | + * @return string Total amount of donations based on the passed arguments. |
|
| 40 | 40 | */ |
| 41 | 41 | public function get_sales( $form_id = 0, $start_date = false, $end_date = false, $status = 'publish' ) { |
| 42 | 42 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @param $end_date string|bool The end date for which we'd like to filter the donations stats. If false, method will use the default end date of `this_month`. |
| 84 | 84 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe'. |
| 85 | 85 | * |
| 86 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 86 | + * @return string Total amount of donations based on the passed arguments. |
|
| 87 | 87 | */ |
| 88 | 88 | public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 89 | 89 | $this->setup_dates( $start_date, $end_date ); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * @param $end_date string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month` |
| 169 | 169 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe' |
| 170 | 170 | * |
| 171 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 171 | + * @return string Total amount of donations based on the passed arguments. |
|
| 172 | 172 | */ |
| 173 | 173 | public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 174 | 174 | |
@@ -681,7 +681,7 @@ discard block |
||
| 681 | 681 | * @param int $year Year number. Default is null. |
| 682 | 682 | * @param int $hour Hour number. Default is null. |
| 683 | 683 | * |
| 684 | - * @return int $earnings Earnings |
|
| 684 | + * @return double $earnings Earnings |
|
| 685 | 685 | */ |
| 686 | 686 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 687 | 687 | |
@@ -970,7 +970,7 @@ discard block |
||
| 970 | 970 | * |
| 971 | 971 | * @param int $payment_id Payment ID. |
| 972 | 972 | * |
| 973 | - * @return array $user_info User Info Meta Values. |
|
| 973 | + * @return string $user_info User Info Meta Values. |
|
| 974 | 974 | */ |
| 975 | 975 | function give_get_payment_meta_user_info( $payment_id ) { |
| 976 | 976 | $payment = new Give_Payment( $payment_id ); |
@@ -987,7 +987,7 @@ discard block |
||
| 987 | 987 | * |
| 988 | 988 | * @param int $payment_id Payment ID. |
| 989 | 989 | * |
| 990 | - * @return int $form_id Form ID. |
|
| 990 | + * @return string $form_id Form ID. |
|
| 991 | 991 | */ |
| 992 | 992 | function give_get_payment_form_id( $payment_id ) { |
| 993 | 993 | $payment = new Give_Payment( $payment_id ); |