@@ -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 | */ |
@@ -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 | */ |
@@ -527,7 +527,7 @@ discard block |
||
| 527 | 527 | * and redirect back to the donor interface for feedback |
| 528 | 528 | * |
| 529 | 529 | * @since 1.7 |
| 530 | - * @return bool|null |
|
| 530 | + * @return false|null |
|
| 531 | 531 | */ |
| 532 | 532 | function give_remove_donor_email() { |
| 533 | 533 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -568,7 +568,7 @@ discard block |
||
| 568 | 568 | * and redirect back to the donor interface for feedback |
| 569 | 569 | * |
| 570 | 570 | * @since 1.7 |
| 571 | - * @return bool|null |
|
| 571 | + * @return false|null |
|
| 572 | 572 | */ |
| 573 | 573 | function give_set_donor_primary_email() { |
| 574 | 574 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -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; |
@@ -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; |
@@ -664,7 +664,7 @@ |
||
| 664 | 664 | * |
| 665 | 665 | * @param array $args Arguments to override defaults |
| 666 | 666 | * |
| 667 | - * @return array $dates |
|
| 667 | + * @return integer|null $dates |
|
| 668 | 668 | */ |
| 669 | 669 | public function get_dates( $args = array() ) { |
| 670 | 670 | $dates = 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 | |
@@ -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. |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * @since 1.5 |
| 51 | 51 | * @global object $wpdb Used to query the database using the WordPress |
| 52 | 52 | * Database API |
| 53 | - * @return array $data The data for the CSV file |
|
| 53 | + * @return boolean $data The data for the CSV file |
|
| 54 | 54 | */ |
| 55 | 55 | public function get_data() { |
| 56 | 56 | global $give_logs, $wpdb; |