@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @since: 1.4 |
| 46 | 46 | * |
| 47 | - * @return bool |
|
| 47 | + * @return boolean|null |
|
| 48 | 48 | */ |
| 49 | 49 | function give_allow_sessions_for_sysinfo() { |
| 50 | 50 | if ( is_admin() && ( isset( $_GET['page'] ) && isset( $_GET['tab'] ) ) && ( $_GET['tab'] == 'system_info' && $_GET['page'] == 'give-settings' ) ) { |
@@ -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 ); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * |
| 66 | 66 | * @since 1.0 |
| 67 | 67 | * @uses Give_Session::get() |
| 68 | - * @return mixed array if errors are present, false if none found |
|
| 68 | + * @return string array if errors are present, false if none found |
|
| 69 | 69 | */ |
| 70 | 70 | function give_get_errors() { |
| 71 | 71 | return Give()->session->get( 'give_errors' ); |
@@ -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 ); |
@@ -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; |