@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | |
| 453 | 453 | /** |
| 454 | 454 | * @param $option_value |
| 455 | - * @param $value |
|
| 455 | + * @param boolean $value |
|
| 456 | 456 | * |
| 457 | 457 | * @return string |
| 458 | 458 | */ |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | * |
| 530 | 530 | * @since 1.8.14 |
| 531 | 531 | * |
| 532 | - * @param $file_id |
|
| 532 | + * @param integer $file_id |
|
| 533 | 533 | * |
| 534 | 534 | * @return bool|int |
| 535 | 535 | */ |
@@ -902,7 +902,7 @@ discard block |
||
| 902 | 902 | * @access public |
| 903 | 903 | * |
| 904 | 904 | * @param string $meta_key Metadata key. Default is empty. |
| 905 | - * @param mixed $meta_value Metadata value. |
|
| 905 | + * @param integer $meta_value Metadata value. |
|
| 906 | 906 | * @param mixed $prev_value Optional. Previous value to check before removing. Default is empty. |
| 907 | 907 | * |
| 908 | 908 | * @return bool False on failure, true if success. |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | * @access public |
| 919 | 919 | * |
| 920 | 920 | * @param string $meta_key Metadata name. Default is empty. |
| 921 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
| 921 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
| 922 | 922 | * |
| 923 | 923 | * @return bool False for failure. True for success. |
| 924 | 924 | */ |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * |
| 65 | 65 | * @param string $value |
| 66 | 66 | * |
| 67 | - * @return mixed |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | function __give_validate_decimal_separator_setting_field( $value ) { |
| 70 | 70 | $thousand_separator = give_clean( $_POST['thousands_separator'] ); |
@@ -666,6 +666,7 @@ |
||
| 666 | 666 | * Check if Import donation is duplicate |
| 667 | 667 | * |
| 668 | 668 | * @since 1.8.13 |
| 669 | + * @param Give_Donate_Form $form |
|
| 669 | 670 | */ |
| 670 | 671 | function give_check_import_donation_duplicate( $payment_data, $data, $form, $donor_data ) { |
| 671 | 672 | $return = false; |
@@ -1157,7 +1157,7 @@ discard block |
||
| 1157 | 1157 | * |
| 1158 | 1158 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
| 1159 | 1159 | * |
| 1160 | - * @return bool |
|
| 1160 | + * @return false|null |
|
| 1161 | 1161 | */ |
| 1162 | 1162 | function give_donation_metabox_menu() { |
| 1163 | 1163 | |
@@ -1540,7 +1540,7 @@ discard block |
||
| 1540 | 1540 | * @param int $id |
| 1541 | 1541 | * @param string $meta_key |
| 1542 | 1542 | * @param mixed $meta_value |
| 1543 | - * @param mixed $prev_value |
|
| 1543 | + * @param string $prev_value |
|
| 1544 | 1544 | * |
| 1545 | 1545 | * @return mixed |
| 1546 | 1546 | */ |
@@ -1747,7 +1747,7 @@ discard block |
||
| 1747 | 1747 | * @since 1.8.13 |
| 1748 | 1748 | * |
| 1749 | 1749 | * @param array $list List of objects or arrays |
| 1750 | - * @param int|string $field Field from the object to place instead of the entire object |
|
| 1750 | + * @param string $field Field from the object to place instead of the entire object |
|
| 1751 | 1751 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
| 1752 | 1752 | * Default null. |
| 1753 | 1753 | * |
@@ -258,7 +258,7 @@ |
||
| 258 | 258 | * @access public |
| 259 | 259 | * @since 1.0 |
| 260 | 260 | * |
| 261 | - * @return mixed string If search is present, false otherwise. |
|
| 261 | + * @return string|false string If search is present, false otherwise. |
|
| 262 | 262 | */ |
| 263 | 263 | public function get_search() { |
| 264 | 264 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * |
| 224 | 224 | * @since 1.0 |
| 225 | 225 | * |
| 226 | - * @return int Whether it was a successful deletion. |
|
| 226 | + * @return false|null Whether it was a successful deletion. |
|
| 227 | 227 | */ |
| 228 | 228 | function give_donor_delete( $args ) { |
| 229 | 229 | |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | * |
| 518 | 518 | * @since 1.7 |
| 519 | 519 | * |
| 520 | - * @return bool|null |
|
| 520 | + * @return false|null |
|
| 521 | 521 | */ |
| 522 | 522 | function give_remove_donor_email() { |
| 523 | 523 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |
@@ -561,7 +561,7 @@ discard block |
||
| 561 | 561 | * |
| 562 | 562 | * @since 1.7 |
| 563 | 563 | * |
| 564 | - * @return bool|null |
|
| 564 | + * @return false|null |
|
| 565 | 565 | */ |
| 566 | 566 | function give_set_donor_primary_email() { |
| 567 | 567 | if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) { |