@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | * @param int $comment_id |
| 426 | 426 | * @param WP_Comment $comment |
| 427 | 427 | * |
| 428 | - * @return mixed |
|
| 428 | + * @return string |
|
| 429 | 429 | */ |
| 430 | 430 | public function __get_comment_author( $author, $comment_id, $comment ) { |
| 431 | 431 | if ( in_array( $comment->comment_type, $this->comment_types ) ) { |
@@ -448,6 +448,7 @@ discard block |
||
| 448 | 448 | * @access public |
| 449 | 449 | * |
| 450 | 450 | * @param array @comment_types |
| 451 | + * @param string[] $comment_types |
|
| 451 | 452 | * |
| 452 | 453 | * @return array |
| 453 | 454 | */ |
@@ -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 | |
@@ -2050,7 +2050,7 @@ discard block |
||
| 2050 | 2050 | * |
| 2051 | 2051 | * @since 2.1 |
| 2052 | 2052 | * |
| 2053 | - * @return array |
|
| 2053 | + * @return string[] |
|
| 2054 | 2054 | */ |
| 2055 | 2055 | function add_class_for_form_grid( $class, $id, $args ) { |
| 2056 | 2056 | $class[] = 'give-form-grid-wrap'; |
@@ -2061,7 +2061,6 @@ discard block |
||
| 2061 | 2061 | /** |
| 2062 | 2062 | * Add hidden field to Form Grid page |
| 2063 | 2063 | * |
| 2064 | - * @param int $form_id The form ID. |
|
| 2065 | 2064 | * @param array $args An array of form arguments. |
| 2066 | 2065 | * @param Give_Donate_Form $form Form object. |
| 2067 | 2066 | * |
@@ -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 | */ |
@@ -569,7 +569,7 @@ |
||
| 569 | 569 | * |
| 570 | 570 | * @since 1.0 |
| 571 | 571 | * |
| 572 | - * @return int $earnings Earnings |
|
| 572 | + * @return double $earnings Earnings |
|
| 573 | 573 | */ |
| 574 | 574 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 575 | 575 | // This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead. |
@@ -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 | |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | * |
| 432 | 432 | * @since 1.7 |
| 433 | 433 | * |
| 434 | - * @return bool|null |
|
| 434 | + * @return false|null |
|
| 435 | 435 | */ |
| 436 | 436 | function give_remove_donor_email() { |
| 437 | 437 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | * |
| 476 | 476 | * @since 1.7 |
| 477 | 477 | * |
| 478 | - * @return bool|null |
|
| 478 | + * @return false|null |
|
| 479 | 479 | */ |
| 480 | 480 | function give_set_donor_primary_email() { |
| 481 | 481 | 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. |
@@ -290,7 +290,7 @@ |
||
| 290 | 290 | * |
| 291 | 291 | * @since 1.8.12 |
| 292 | 292 | * |
| 293 | - * @return int |
|
| 293 | + * @return double |
|
| 294 | 294 | */ |
| 295 | 295 | public function get_percentage_complete() { |
| 296 | 296 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | /** |
| 280 | 280 | * Rename query clauses for new meta table |
| 281 | 281 | * |
| 282 | - * @param $clause |
|
| 282 | + * @param string $clause |
|
| 283 | 283 | * @param $filter |
| 284 | 284 | * |
| 285 | 285 | * @return mixed |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | * @since 2.0.4 |
| 516 | 516 | * @access public |
| 517 | 517 | * |
| 518 | - * @return string |
|
| 518 | + * @return boolean |
|
| 519 | 519 | */ |
| 520 | 520 | public function get_meta_type() { |
| 521 | 521 | return $this->meta_type; |