@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * metadata entries with the specified value. |
| 17 | 17 | * Otherwise, update all entries. |
| 18 | 18 | * |
| 19 | - * @return mixed |
|
| 19 | + * @return null|boolean |
|
| 20 | 20 | */ |
| 21 | 21 | function _give_20_bc_saving_old_payment_meta( $check, $object_id, $meta_key, $meta_value, $prev_value ) { |
| 22 | 22 | // Bailout. |
@@ -523,7 +523,7 @@ |
||
| 523 | 523 | * @since 1.7 |
| 524 | 524 | * @access public |
| 525 | 525 | * |
| 526 | - * @return bool |
|
| 526 | + * @return false|null |
|
| 527 | 527 | */ |
| 528 | 528 | public function delete_cache() { |
| 529 | 529 | // Add log related keys to delete. |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | * |
| 158 | 158 | * @access public |
| 159 | 159 | * @since 1.0 |
| 160 | - * @return mixed 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; |
@@ -283,7 +283,7 @@ |
||
| 283 | 283 | * @since 1.0 |
| 284 | 284 | * |
| 285 | 285 | * @param int|float|string $amount Formatted or sanitized price |
| 286 | - * @param int|bool $dp number of decimals |
|
| 286 | + * @param boolean $dp number of decimals |
|
| 287 | 287 | * @param bool $sanitize Whether or not sanitize number |
| 288 | 288 | * |
| 289 | 289 | * @return string $amount Newly formatted amount or Price Not Available |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * Return the calculated completion percentage. |
| 217 | 217 | * |
| 218 | 218 | * @since 1.8.12 |
| 219 | - * @return int |
|
| 219 | + * @return double |
|
| 220 | 220 | */ |
| 221 | 221 | public function get_percentage_complete() { |
| 222 | 222 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -353,6 +353,9 @@ discard block |
||
| 353 | 353 | return true; |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | + /** |
|
| 357 | + * @param integer $page |
|
| 358 | + */ |
|
| 356 | 359 | public function get_delete_ids( $donation_ids, $page ) { |
| 357 | 360 | $index = $page --; |
| 358 | 361 | $count = count( $donation_ids ); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * Return the calculated completion percentage. |
| 217 | 217 | * |
| 218 | 218 | * @since 1.8.12 |
| 219 | - * @return int |
|
| 219 | + * @return double |
|
| 220 | 220 | */ |
| 221 | 221 | public function get_percentage_complete() { |
| 222 | 222 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -353,6 +353,9 @@ discard block |
||
| 353 | 353 | return true; |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | + /** |
|
| 357 | + * @param integer $page |
|
| 358 | + */ |
|
| 356 | 359 | public function get_delete_ids( $donation_ids, $page ) { |
| 357 | 360 | $index = $page --; |
| 358 | 361 | $count = count( $donation_ids ); |
@@ -918,7 +918,7 @@ |
||
| 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 | */ |
@@ -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 | */ |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * Connect and Reconnect Donor with User profile. |
| 90 | 90 | * @todo $address is unnecessary param because we are store address to user. |
| 91 | 91 | * |
| 92 | - * @param object $donor Donor Object. |
|
| 92 | + * @param Give_Donor $donor Donor Object. |
|
| 93 | 93 | * @param array $donor_data Donor Post Variables. |
| 94 | 94 | * @param array $address Address Information. |
| 95 | 95 | * |