@@ -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(); |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | * @access private |
| 684 | 684 | * @since 1.7 |
| 685 | 685 | * |
| 686 | - * @return bool |
|
| 686 | + * @return false|null |
|
| 687 | 687 | */ |
| 688 | 688 | private function __remove_license_key_from_subscriptions() { |
| 689 | 689 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -782,7 +782,7 @@ discard block |
||
| 782 | 782 | * @param $plugin_data |
| 783 | 783 | * @param $status |
| 784 | 784 | * |
| 785 | - * @return bool |
|
| 785 | + * @return false|null |
|
| 786 | 786 | */ |
| 787 | 787 | public function plugin_page_notices( $plugin_file, $plugin_data, $status ) { |
| 788 | 788 | // Bailout. |
@@ -804,7 +804,7 @@ discard block |
||
| 804 | 804 | * |
| 805 | 805 | * @since 1.8.7 |
| 806 | 806 | * @access public |
| 807 | - * @return array |
|
| 807 | + * @return string |
|
| 808 | 808 | */ |
| 809 | 809 | public function license_state_message() { |
| 810 | 810 | $message_data = array(); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * metadata entries with the specified value. |
| 17 | 17 | * Otherwise, update all entries. |
| 18 | 18 | * |
| 19 | - * @return mixed |
|
| 19 | + * @return null|boolean |
|
| 20 | 20 | */ |
| 21 | 21 | function _give_20_bc_saving_old_payment_meta( $check, $object_id, $meta_key, $meta_value, $prev_value ) { |
| 22 | 22 | // Bailout. |
@@ -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 | |
@@ -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; |
@@ -283,7 +283,7 @@ |
||
| 283 | 283 | * @since 1.0 |
| 284 | 284 | * |
| 285 | 285 | * @param int|float|string $amount Formatted or sanitized price |
| 286 | - * @param int|bool $dp number of decimals |
|
| 286 | + * @param boolean $dp number of decimals |
|
| 287 | 287 | * @param bool $sanitize Whether or not sanitize number |
| 288 | 288 | * |
| 289 | 289 | * @return string $amount Newly formatted amount or Price Not Available |
@@ -521,7 +521,7 @@ |
||
| 521 | 521 | * Example: <?php $give = Give(); ?> |
| 522 | 522 | * |
| 523 | 523 | * @since 1.0 |
| 524 | - * @return object|Give |
|
| 524 | + * @return Give |
|
| 525 | 525 | */ |
| 526 | 526 | function Give() { |
| 527 | 527 | return Give::instance(); |
@@ -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 ); |