@@ -523,7 +523,7 @@ |
||
| 523 | 523 | * @since 1.7 |
| 524 | 524 | * @access public |
| 525 | 525 | * |
| 526 | - * @return bool |
|
| 526 | + * @return false|null |
|
| 527 | 527 | */ |
| 528 | 528 | public function delete_cache() { |
| 529 | 529 | // Add log related keys to delete. |
@@ -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 | |