@@ -148,7 +148,7 @@ |
||
| 148 | 148 | * @param WP_REST_Request $request |
| 149 | 149 | * |
| 150 | 150 | * @access public |
| 151 | - * @return array|mixed|object |
|
| 151 | + * @return string|null |
|
| 152 | 152 | */ |
| 153 | 153 | public function get_donation_grid( $request ) { |
| 154 | 154 | $parameters = $request->get_params(); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @since 1.0 |
| 23 | 23 | * |
| 24 | - * @return string Donation form. |
|
| 24 | + * @return false|null Donation form. |
|
| 25 | 25 | */ |
| 26 | 26 | function give_get_donation_form( $args = array() ) { |
| 27 | 27 | |
@@ -1482,7 +1482,7 @@ discard block |
||
| 1482 | 1482 | * |
| 1483 | 1483 | * @param int $form_id The form ID. |
| 1484 | 1484 | * |
| 1485 | - * @return bool |
|
| 1485 | + * @return false|null |
|
| 1486 | 1486 | */ |
| 1487 | 1487 | function give_terms_agreement( $form_id ) { |
| 1488 | 1488 | $form_option = give_get_meta( $form_id, '_give_terms_option', true ); |
@@ -1676,7 +1676,7 @@ discard block |
||
| 1676 | 1676 | * @param int $form_id The form ID. |
| 1677 | 1677 | * @param array $args An array of form arguments. |
| 1678 | 1678 | * |
| 1679 | - * @return mixed |
|
| 1679 | + * @return boolean |
|
| 1680 | 1680 | */ |
| 1681 | 1681 | function give_show_goal_progress( $form_id, $args = array() ) { |
| 1682 | 1682 | |
@@ -1703,7 +1703,7 @@ discard block |
||
| 1703 | 1703 | * @param int $total Total amount based on shortcode parameter. |
| 1704 | 1704 | * @param int $total_goal Total Goal amount passed by Admin. |
| 1705 | 1705 | * |
| 1706 | - * @return mixed |
|
| 1706 | + * @return boolean |
|
| 1707 | 1707 | */ |
| 1708 | 1708 | function give_show_goal_totals_progress( $total, $total_goal ) { |
| 1709 | 1709 | |
@@ -1727,7 +1727,7 @@ discard block |
||
| 1727 | 1727 | * |
| 1728 | 1728 | * @since 1.8 |
| 1729 | 1729 | * |
| 1730 | - * @param $form_id |
|
| 1730 | + * @param integer $form_id |
|
| 1731 | 1731 | * @param $args |
| 1732 | 1732 | * |
| 1733 | 1733 | * @return mixed|string |
@@ -1768,7 +1768,7 @@ discard block |
||
| 1768 | 1768 | * @param int $form_id The form ID. |
| 1769 | 1769 | * @param array $args An array of form arguments. |
| 1770 | 1770 | * |
| 1771 | - * @return void|bool |
|
| 1771 | + * @return false|null |
|
| 1772 | 1772 | */ |
| 1773 | 1773 | function give_form_content( $form_id, $args ) { |
| 1774 | 1774 | |
@@ -2058,7 +2058,7 @@ discard block |
||
| 2058 | 2058 | * |
| 2059 | 2059 | * @since 2.1 |
| 2060 | 2060 | * |
| 2061 | - * @return array |
|
| 2061 | + * @return string[] |
|
| 2062 | 2062 | */ |
| 2063 | 2063 | function add_class_for_form_grid( $class, $id, $args ) { |
| 2064 | 2064 | $class[] = 'give-form-grid-wrap'; |
@@ -2069,7 +2069,6 @@ discard block |
||
| 2069 | 2069 | /** |
| 2070 | 2070 | * Add hidden field to Form Grid page |
| 2071 | 2071 | * |
| 2072 | - * @param int $form_id The form ID. |
|
| 2073 | 2072 | * @param array $args An array of form arguments. |
| 2074 | 2073 | * @param Give_Donate_Form $form Form object. |
| 2075 | 2074 | * |
@@ -555,10 +555,10 @@ discard block |
||
| 555 | 555 | * |
| 556 | 556 | * @since 2.1 |
| 557 | 557 | * |
| 558 | - * @param $file_dir |
|
| 559 | - * @param $start |
|
| 560 | - * @param $end |
|
| 561 | - * @param $delimiter |
|
| 558 | + * @param false|string $file_dir |
|
| 559 | + * @param integer $start |
|
| 560 | + * @param integer $end |
|
| 561 | + * @param string $delimiter |
|
| 562 | 562 | * |
| 563 | 563 | * @return array |
| 564 | 564 | */ |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | * |
| 585 | 585 | * @since 2.1 |
| 586 | 586 | * |
| 587 | - * @param $file_id |
|
| 587 | + * @param integer $file_id |
|
| 588 | 588 | * |
| 589 | 589 | * @return false|string file content |
| 590 | 590 | */ |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | * @since |
| 198 | 198 | * @access public |
| 199 | 199 | * |
| 200 | - * @param $serial_number |
|
| 200 | + * @param integer $serial_number |
|
| 201 | 201 | * |
| 202 | 202 | * @return string |
| 203 | 203 | */ |
@@ -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 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * @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`. |
| 85 | 85 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe'. |
| 86 | 86 | * |
| 87 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 87 | + * @return string Total amount of donations based on the passed arguments. |
|
| 88 | 88 | */ |
| 89 | 89 | public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 90 | 90 | global $wpdb; |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | * @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` |
| 208 | 208 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe' |
| 209 | 209 | * |
| 210 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 210 | + * @return string Total amount of donations based on the passed arguments. |
|
| 211 | 211 | */ |
| 212 | 212 | public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 213 | 213 | |
@@ -571,7 +571,7 @@ |
||
| 571 | 571 | * |
| 572 | 572 | * @since 1.0 |
| 573 | 573 | * |
| 574 | - * @return int $earnings Earnings |
|
| 574 | + * @return double $earnings Earnings |
|
| 575 | 575 | */ |
| 576 | 576 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 577 | 577 | // This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead. |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * |
| 25 | 25 | * @throws ReflectionException Exception Handling. |
| 26 | 26 | * |
| 27 | - * @return mixed |
|
| 27 | + * @return false|null |
|
| 28 | 28 | */ |
| 29 | 29 | function give_process_donation_form() { |
| 30 | 30 | |
@@ -1319,7 +1319,7 @@ discard block |
||
| 1319 | 1319 | * |
| 1320 | 1320 | * @param array $valid_data List of Valid Data. |
| 1321 | 1321 | * |
| 1322 | - * @return bool |
|
| 1322 | + * @return boolean|null |
|
| 1323 | 1323 | */ |
| 1324 | 1324 | function give_validate_donation_amount( $valid_data ) { |
| 1325 | 1325 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @since 1.0 |
| 23 | 23 | * |
| 24 | - * @return array|bool $output Response messages |
|
| 24 | + * @return false|null $output Response messages |
|
| 25 | 25 | */ |
| 26 | 26 | function give_edit_donor( $args ) { |
| 27 | 27 | |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | * |
| 435 | 435 | * @since 1.7 |
| 436 | 436 | * |
| 437 | - * @return bool|null |
|
| 437 | + * @return false|null |
|
| 438 | 438 | */ |
| 439 | 439 | function give_remove_donor_email() { |
| 440 | 440 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | * |
| 479 | 479 | * @since 1.7 |
| 480 | 480 | * |
| 481 | - * @return bool|null |
|
| 481 | + * @return false|null |
|
| 482 | 482 | */ |
| 483 | 483 | function give_set_donor_primary_email() { |
| 484 | 484 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * This function is used to delete donor and related donation without redirection. |
| 164 | 164 | * |
| 165 | - * @param int|Give_Donor $donor Donor ID or List of Donor IDs. |
|
| 165 | + * @param Give_Donor $donor Donor ID or List of Donor IDs. |
|
| 166 | 166 | * @param array $args List of arguments to handle donor and related donation deletion process. |
| 167 | 167 | * |
| 168 | 168 | * @type bool delete_donation Delete donor linked donations if set to true. Default is false. |