@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * @since 1.8 |
| 87 | 87 | * |
| 88 | - * @param $setting_tab |
|
| 88 | + * @param string $setting_tab |
|
| 89 | 89 | * |
| 90 | 90 | * @return string |
| 91 | 91 | */ |
@@ -1283,7 +1283,7 @@ |
||
| 1283 | 1283 | * |
| 1284 | 1284 | * @param $field |
| 1285 | 1285 | * |
| 1286 | - * @return string |
|
| 1286 | + * @return integer |
|
| 1287 | 1287 | */ |
| 1288 | 1288 | function _give_set_field_give_id_default_value( $field ) { |
| 1289 | 1289 | return 0; |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | /** |
| 114 | 114 | * Adds the "Donation Form" button above the TinyMCE Editor on add/edit screens. |
| 115 | 115 | * |
| 116 | - * @return string|bool |
|
| 116 | + * @return false|null |
|
| 117 | 117 | * |
| 118 | 118 | * @since 1.0 |
| 119 | 119 | */ |
@@ -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. |
@@ -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 | |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | * |
| 158 | 158 | * @access public |
| 159 | 159 | * @since 1.0 |
| 160 | - * @return string|bool 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; |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * |
| 217 | 217 | * @access public |
| 218 | 218 | * @since 1.1 |
| 219 | - * @return array |
|
| 219 | + * @return string |
|
| 220 | 220 | */ |
| 221 | 221 | public function get_versions() { |
| 222 | 222 | return $this->versions; |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | * @uses Give_API::invalid_key() |
| 303 | 303 | * @uses Give_API::invalid_auth() |
| 304 | 304 | * @since 1.1 |
| 305 | - * @return bool |
|
| 305 | + * @return false|null |
|
| 306 | 306 | */ |
| 307 | 307 | private function validate_request() { |
| 308 | 308 | global $wp_query; |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | * |
| 695 | 695 | * @param array $args Arguments to override defaults |
| 696 | 696 | * |
| 697 | - * @return array $dates |
|
| 697 | + * @return integer|null $dates |
|
| 698 | 698 | */ |
| 699 | 699 | public function get_dates( $args = array() ) { |
| 700 | 700 | $dates = array(); |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | * @access private |
| 704 | 704 | * @since 1.7 |
| 705 | 705 | * |
| 706 | - * @return bool |
|
| 706 | + * @return false|null |
|
| 707 | 707 | */ |
| 708 | 708 | private function __remove_license_key_from_subscriptions() { |
| 709 | 709 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -736,7 +736,7 @@ discard block |
||
| 736 | 736 | * @param $plugin_data |
| 737 | 737 | * @param $status |
| 738 | 738 | * |
| 739 | - * @return bool |
|
| 739 | + * @return false|null |
|
| 740 | 740 | */ |
| 741 | 741 | public function plugin_page_notices( $plugin_file, $plugin_data, $status ) { |
| 742 | 742 | // Bailout. |
@@ -758,7 +758,7 @@ discard block |
||
| 758 | 758 | * |
| 759 | 759 | * @since 1.8.7 |
| 760 | 760 | * @access public |
| 761 | - * @return array |
|
| 761 | + * @return string |
|
| 762 | 762 | */ |
| 763 | 763 | public function license_state_message() { |
| 764 | 764 | $message_data = array(); |
@@ -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 | |