@@ -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 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * @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`. |
| 100 | 100 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe'. |
| 101 | 101 | * |
| 102 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 102 | + * @return string Total amount of donations based on the passed arguments. |
|
| 103 | 103 | */ |
| 104 | 104 | public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 105 | 105 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | * @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` |
| 220 | 220 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe' |
| 221 | 221 | * |
| 222 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 222 | + * @return string Total amount of donations based on the passed arguments. |
|
| 223 | 223 | */ |
| 224 | 224 | public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 225 | 225 | |
@@ -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. |
@@ -565,7 +565,7 @@ discard block |
||
| 565 | 565 | * |
| 566 | 566 | * @since 1.6.3 |
| 567 | 567 | * |
| 568 | - * @param $pending_reason |
|
| 568 | + * @param string $pending_reason |
|
| 569 | 569 | * |
| 570 | 570 | * @return string |
| 571 | 571 | */ |
@@ -642,7 +642,7 @@ discard block |
||
| 642 | 642 | * @param int $payment_id Payment ID |
| 643 | 643 | * @param array $payment_data Array of payment data. |
| 644 | 644 | * |
| 645 | - * @return mixed|string |
|
| 645 | + * @return string |
|
| 646 | 646 | */ |
| 647 | 647 | function give_build_paypal_url( $payment_id, $payment_data ) { |
| 648 | 648 | // Only send to PayPal if the pending payment is created successfully. |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | * |
| 158 | 158 | * @access public |
| 159 | 159 | * @since 1.0 |
| 160 | - * @return mixed string If search is present, false otherwise |
|
| 160 | + * @return string|false string If search is present, false otherwise |
|
| 161 | 161 | */ |
| 162 | 162 | public function get_search() { |
| 163 | 163 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | * @since 1.0 |
| 233 | 233 | * @access public |
| 234 | 234 | * |
| 235 | - * @return bool |
|
| 235 | + * @return null|boolean |
|
| 236 | 236 | */ |
| 237 | 237 | public function check_for_token() { |
| 238 | 238 | |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * @uses api_request() |
| 78 | 78 | * |
| 79 | 79 | * @param array $_transient_data Update array build by WordPress. |
| 80 | - * @return array Modified update array with custom plugin data. |
|
| 80 | + * @return stdClass Modified update array with custom plugin data. |
|
| 81 | 81 | */ |
| 82 | 82 | public function check_update( $_transient_data ) { |
| 83 | 83 | |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | * |
| 391 | 391 | * @since 2.0 |
| 392 | 392 | * @access public |
| 393 | - * @return bool|null |
|
| 393 | + * @return false|null |
|
| 394 | 394 | */ |
| 395 | 395 | public function preview_email() { |
| 396 | 396 | // Bailout. |
@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | * |
| 527 | 527 | * @since 2.0 |
| 528 | 528 | * @access public |
| 529 | - * @return bool|null |
|
| 529 | + * @return false|null |
|
| 530 | 530 | */ |
| 531 | 531 | public function send_preview_email() { |
| 532 | 532 | // Bailout. |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | * @param Give_Email_Notification $email |
| 135 | 135 | * @param int $form_id |
| 136 | 136 | * |
| 137 | - * @return string |
|
| 137 | + * @return boolean |
|
| 138 | 138 | */ |
| 139 | 139 | public static function is_email_notification_active( Give_Email_Notification $email, $form_id = null ) { |
| 140 | 140 | $notification_status = $email->get_notification_status( $form_id ); |
@@ -553,7 +553,7 @@ |
||
| 553 | 553 | * |
| 554 | 554 | * @param int $form_id |
| 555 | 555 | * |
| 556 | - * @return array|string |
|
| 556 | + * @return string |
|
| 557 | 557 | */ |
| 558 | 558 | public function get_preview_email_recipient( $form_id = null ) { |
| 559 | 559 | $recipients = $this->get_recipient( $form_id ); |