@@ -463,7 +463,7 @@ |
||
| 463 | 463 | * @since 1.7 |
| 464 | 464 | * @access public |
| 465 | 465 | * |
| 466 | - * @return bool |
|
| 466 | + * @return false|null |
|
| 467 | 467 | */ |
| 468 | 468 | public function delete_cache() { |
| 469 | 469 | global $wpdb; |
@@ -530,7 +530,7 @@ |
||
| 530 | 530 | * |
| 531 | 531 | * @param int $payment_id |
| 532 | 532 | * |
| 533 | - * @return int payment_id |
|
| 533 | + * @return string payment_id |
|
| 534 | 534 | */ |
| 535 | 535 | function give_email_tag_payment_id( $payment_id ) { |
| 536 | 536 | $payment = new Give_Payment( $payment_id ); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * |
| 156 | 156 | * Used to redirect a user back to the donation form if there are errors present. |
| 157 | 157 | * |
| 158 | - * @param array $args |
|
| 158 | + * @param string $args |
|
| 159 | 159 | * |
| 160 | 160 | * @access public |
| 161 | 161 | * @since 1.0 |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | * |
| 438 | 438 | * @param int $form_id Give Form ID |
| 439 | 439 | * |
| 440 | - * @return int $earnings Earnings for a certain form |
|
| 440 | + * @return double $earnings Earnings for a certain form |
|
| 441 | 441 | */ |
| 442 | 442 | function give_get_form_earnings_stats( $form_id = 0 ) { |
| 443 | 443 | $give_form = new Give_Donate_Form( $form_id ); |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * |
| 393 | 393 | * @param int|bool $payment_id A given payment |
| 394 | 394 | * |
| 395 | - * @return mixed void|false |
|
| 395 | + * @return false|null void|false |
|
| 396 | 396 | */ |
| 397 | 397 | public function __construct( $payment_id = false ) { |
| 398 | 398 | |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | * |
| 464 | 464 | * @param string $name The attribute to get |
| 465 | 465 | * |
| 466 | - * @return boolean If the item is set or not |
|
| 466 | + * @return boolean|null If the item is set or not |
|
| 467 | 467 | */ |
| 468 | 468 | public function __isset( $name ) { |
| 469 | 469 | if ( property_exists( $this, $name ) ) { |
@@ -1302,7 +1302,7 @@ discard block |
||
| 1302 | 1302 | * |
| 1303 | 1303 | * @param string $note The note to add |
| 1304 | 1304 | * |
| 1305 | - * @return void |
|
| 1305 | + * @return false|null |
|
| 1306 | 1306 | */ |
| 1307 | 1307 | public function add_note( $note = false ) { |
| 1308 | 1308 | // Bail if no note specified. |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * |
| 144 | 144 | * @access public |
| 145 | 145 | * @since 1.0 |
| 146 | - * @return mixed string If search is present, false otherwise |
|
| 146 | + * @return string|false string If search is present, false otherwise |
|
| 147 | 147 | */ |
| 148 | 148 | public function get_search() { |
| 149 | 149 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -253,7 +253,7 @@ |
||
| 253 | 253 | * |
| 254 | 254 | * @access public |
| 255 | 255 | * @since 1.0 |
| 256 | - * @return mixed string If search is present, false otherwise. |
|
| 256 | + * @return string|false string If search is present, false otherwise. |
|
| 257 | 257 | */ |
| 258 | 258 | public function get_search() { |
| 259 | 259 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @param array $args An array of form arguments. |
| 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 | |
@@ -1473,7 +1473,7 @@ discard block |
||
| 1473 | 1473 | * |
| 1474 | 1474 | * @param int $form_id The form ID. |
| 1475 | 1475 | * |
| 1476 | - * @return bool |
|
| 1476 | + * @return false|null |
|
| 1477 | 1477 | */ |
| 1478 | 1478 | function give_terms_agreement( $form_id ) { |
| 1479 | 1479 | $form_option = get_post_meta( $form_id, '_give_terms_option', true ); |
@@ -1683,7 +1683,7 @@ discard block |
||
| 1683 | 1683 | * @param int $form_id The form ID. |
| 1684 | 1684 | * @param array $args An array of form arguments. |
| 1685 | 1685 | * |
| 1686 | - * @return mixed |
|
| 1686 | + * @return boolean |
|
| 1687 | 1687 | */ |
| 1688 | 1688 | function give_show_goal_progress( $form_id, $args ) { |
| 1689 | 1689 | |
@@ -1703,7 +1703,7 @@ discard block |
||
| 1703 | 1703 | * |
| 1704 | 1704 | * @since 1.8 |
| 1705 | 1705 | * |
| 1706 | - * @param $form_id |
|
| 1706 | + * @param integer $form_id |
|
| 1707 | 1707 | * @param $args |
| 1708 | 1708 | * |
| 1709 | 1709 | * @return mixed|string |
@@ -1744,7 +1744,7 @@ discard block |
||
| 1744 | 1744 | * @param int $form_id The form ID. |
| 1745 | 1745 | * @param array $args An array of form arguments. |
| 1746 | 1746 | * |
| 1747 | - * @return void|bool |
|
| 1747 | + * @return false|null |
|
| 1748 | 1748 | */ |
| 1749 | 1749 | function give_form_content( $form_id, $args ) { |
| 1750 | 1750 | |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | * @since 1.0 |
| 233 | 233 | * @access public |
| 234 | 234 | * |
| 235 | - * @return bool |
|
| 235 | + * @return null|boolean |
|
| 236 | 236 | */ |
| 237 | 237 | public function check_for_token() { |
| 238 | 238 | |
@@ -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 | |