@@ -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 | */ |
@@ -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; |
@@ -565,7 +565,7 @@ discard block |
||
565 | 565 | * |
566 | 566 | * @since 1.6.3 |
567 | 567 | * |
568 | - * @param $pending_reason |
|
568 | + * @param string $pending_reason |
|
569 | 569 | * |
570 | 570 | * @return string |
571 | 571 | */ |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | * @param int $payment_id Payment ID |
643 | 643 | * @param array $payment_data Array of payment data. |
644 | 644 | * |
645 | - * @return mixed|string |
|
645 | + * @return string |
|
646 | 646 | */ |
647 | 647 | function give_build_paypal_url( $payment_id, $payment_data ) { |
648 | 648 | // Only send to PayPal if the pending payment is created successfully. |
@@ -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; |
@@ -703,7 +703,7 @@ discard block |
||
703 | 703 | * @access private |
704 | 704 | * @since 1.7 |
705 | 705 | * |
706 | - * @return bool |
|
706 | + * @return false|null |
|
707 | 707 | */ |
708 | 708 | private function __remove_license_key_from_subscriptions() { |
709 | 709 | $subscriptions = get_option( 'give_subscriptions', array() ); |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | * @param $plugin_data |
737 | 737 | * @param $status |
738 | 738 | * |
739 | - * @return bool |
|
739 | + * @return false|null |
|
740 | 740 | */ |
741 | 741 | public function plugin_page_notices( $plugin_file, $plugin_data, $status ) { |
742 | 742 | // Bailout. |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | * |
759 | 759 | * @since 1.8.7 |
760 | 760 | * @access public |
761 | - * @return array |
|
761 | + * @return string |
|
762 | 762 | */ |
763 | 763 | public function license_state_message() { |
764 | 764 | $message_data = array(); |
@@ -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; |
@@ -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 ); |
@@ -340,7 +340,7 @@ |
||
340 | 340 | * @since 1.0 |
341 | 341 | * |
342 | 342 | * @param int|float|string $amount Formatted or sanitized price |
343 | - * @param int|bool $dp number of decimals |
|
343 | + * @param boolean $dp number of decimals |
|
344 | 344 | * @param bool $sanitize Whether or not sanitize number |
345 | 345 | * |
346 | 346 | * @return string $amount Newly formatted amount or Price Not Available |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | |
455 | 455 | /** |
456 | 456 | * @param $option_value |
457 | - * @param $value |
|
457 | + * @param boolean $value |
|
458 | 458 | * |
459 | 459 | * @return string |
460 | 460 | */ |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | * |
545 | 545 | * @since 1.8.14 |
546 | 546 | * |
547 | - * @param $file_id |
|
547 | + * @param integer $file_id |
|
548 | 548 | * |
549 | 549 | * @return bool|int |
550 | 550 | */ |