@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | /** |
535 | 535 | * Get donor email html. |
536 | 536 | * |
537 | - * @param object $payment Contains all the data of the payment. |
|
537 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
538 | 538 | * |
539 | 539 | * @access public |
540 | 540 | * @since 1.0 |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | /** |
563 | 563 | * Get Row Actions |
564 | 564 | * |
565 | - * @param object $payment Payment Data. |
|
565 | + * @param Give_Payment $payment Payment Data. |
|
566 | 566 | * |
567 | 567 | * @since 1.6 |
568 | 568 | * |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | /** |
684 | 684 | * Get donor html. |
685 | 685 | * |
686 | - * @param object $payment Contains all the data of the payment. |
|
686 | + * @param Give_Payment $payment Contains all the data of the payment. |
|
687 | 687 | * |
688 | 688 | * @access public |
689 | 689 | * @since 1.0 |
@@ -265,7 +265,7 @@ |
||
265 | 265 | * |
266 | 266 | * @access public |
267 | 267 | * @since 1.0 |
268 | - * @return mixed string If search is present, false otherwise |
|
268 | + * @return string|false string If search is present, false otherwise |
|
269 | 269 | */ |
270 | 270 | public function get_search() { |
271 | 271 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | /** |
67 | 67 | * Constructor. |
68 | 68 | * |
69 | - * @param number $_step Step ID of the currenct batch. |
|
69 | + * @param integer $_step Step ID of the currenct batch. |
|
70 | 70 | */ |
71 | 71 | public function __construct( $_step = 1 ) { |
72 | 72 | parent::__construct( $_step ); |
@@ -290,7 +290,7 @@ |
||
290 | 290 | * |
291 | 291 | * @since 1.8.12 |
292 | 292 | * |
293 | - * @return int |
|
293 | + * @return double |
|
294 | 294 | */ |
295 | 295 | public function get_percentage_complete() { |
296 | 296 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * Return the calculated completion percentage. |
226 | 226 | * |
227 | 227 | * @since 1.8.12 |
228 | - * @return int |
|
228 | + * @return double |
|
229 | 229 | */ |
230 | 230 | public function get_percentage_complete() { |
231 | 231 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -361,6 +361,9 @@ discard block |
||
361 | 361 | return true; |
362 | 362 | } |
363 | 363 | |
364 | + /** |
|
365 | + * @param integer $page |
|
366 | + */ |
|
364 | 367 | public function get_delete_ids( $donation_ids, $page ) { |
365 | 368 | $index = $page --; |
366 | 369 | $count = count( $donation_ids ); |
@@ -187,7 +187,7 @@ |
||
187 | 187 | * @access public |
188 | 188 | * @since 1.0 |
189 | 189 | * |
190 | - * @return string|bool String if search is present, false otherwise |
|
190 | + * @return string|false String if search is present, false otherwise |
|
191 | 191 | */ |
192 | 192 | public function get_search() { |
193 | 193 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -670,7 +670,7 @@ |
||
670 | 670 | * |
671 | 671 | * @since 1.8.17 |
672 | 672 | * |
673 | - * @return bool |
|
673 | + * @return false|null |
|
674 | 674 | */ |
675 | 675 | function give_confirm_email_for_donation_access() { |
676 | 676 |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @param WP_REST_Request $request |
154 | 154 | * |
155 | 155 | * @access public |
156 | - * @return array|mixed|object |
|
156 | + * @return string|null |
|
157 | 157 | */ |
158 | 158 | public function get_donation_grid( $request ) { |
159 | 159 | $parameters = $request->get_params(); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * @param WP_REST_Request $request |
168 | 168 | * |
169 | 169 | * @access public |
170 | - * @return array|mixed|object |
|
170 | + * @return string|boolean |
|
171 | 171 | */ |
172 | 172 | public function get_donor_wall( $request ) { |
173 | 173 | $parameters = $request->get_params(); |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * @uses Give_API::invalid_key() |
327 | 327 | * @uses Give_API::invalid_auth() |
328 | 328 | * @since 1.1 |
329 | - * @return bool |
|
329 | + * @return false|null |
|
330 | 330 | */ |
331 | 331 | private function validate_request() { |
332 | 332 | global $wp_query; |
@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | * |
723 | 723 | * @param array $args Arguments to override defaults |
724 | 724 | * |
725 | - * @return array $dates |
|
725 | + * @return integer|null $dates |
|
726 | 726 | */ |
727 | 727 | public function get_dates( $args = array() ) { |
728 | 728 | $dates = array(); |