@@ -456,7 +456,7 @@ |
||
| 456 | 456 | * |
| 457 | 457 | * @param WP_Post $payment |
| 458 | 458 | * |
| 459 | - * @return mixed |
|
| 459 | + * @return false|null |
|
| 460 | 460 | */ |
| 461 | 461 | function give_offline_payment_receipt_after( $payment ) { |
| 462 | 462 | // Get payment object. |
@@ -339,7 +339,7 @@ |
||
| 339 | 339 | * |
| 340 | 340 | * @since 1.0 |
| 341 | 341 | * @uses Give()->session->get() |
| 342 | - * @return mixed array | false |
|
| 342 | + * @return string array | false |
|
| 343 | 343 | */ |
| 344 | 344 | function give_get_purchase_session() { |
| 345 | 345 | return Give()->session->get( 'give_purchase' ); |
@@ -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. |
@@ -1283,7 +1283,7 @@ |
||
| 1283 | 1283 | * |
| 1284 | 1284 | * @param $field |
| 1285 | 1285 | * |
| 1286 | - * @return string |
|
| 1286 | + * @return integer |
|
| 1287 | 1287 | */ |
| 1288 | 1288 | function _give_set_field_give_id_default_value( $field ) { |
| 1289 | 1289 | return 0; |
@@ -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; |