@@ -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(); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * |
196 | 196 | * @param string $cache_key |
197 | 197 | * @param bool $custom_key |
198 | - * @param mixed $query_args |
|
198 | + * @param string $query_args |
|
199 | 199 | * |
200 | 200 | * @return mixed |
201 | 201 | */ |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * |
314 | 314 | * @param bool $force If set to true then all cached values will be delete instead of only expired |
315 | 315 | * |
316 | - * @return bool |
|
316 | + * @return false|null |
|
317 | 317 | */ |
318 | 318 | public static function delete_all_expired( $force = false ) { |
319 | 319 | global $wpdb; |
@@ -754,7 +754,7 @@ discard block |
||
754 | 754 | * @since 2.0 |
755 | 755 | * @access private |
756 | 756 | * |
757 | - * @param $group |
|
757 | + * @param string $group |
|
758 | 758 | * |
759 | 759 | * @return mixed |
760 | 760 | */ |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | * @param int $comment_id |
440 | 440 | * @param WP_Comment $comment |
441 | 441 | * |
442 | - * @return mixed |
|
442 | + * @return string |
|
443 | 443 | */ |
444 | 444 | public function __get_comment_author( $author, $comment_id, $comment ) { |
445 | 445 | if ( in_array( $comment->comment_type, $this->comment_types ) ) { |
@@ -462,6 +462,7 @@ discard block |
||
462 | 462 | * @access public |
463 | 463 | * |
464 | 464 | * @param array @comment_types |
465 | + * @param string[] $comment_types |
|
465 | 466 | * |
466 | 467 | * @return array |
467 | 468 | */ |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * NOTE: This should not be called directly as it does not make necessary changes to |
209 | 209 | * the payment meta and logs. Use give_donor_delete() instead. |
210 | 210 | * |
211 | - * @param bool|string|int $_id_or_email ID or Email of Donor. |
|
211 | + * @param integer $_id_or_email ID or Email of Donor. |
|
212 | 212 | * |
213 | 213 | * @since 1.0 |
214 | 214 | * @access public |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | * @access public |
409 | 409 | * |
410 | 410 | * @param string $field ID or email. Default is 'id'. |
411 | - * @param mixed $value The Customer ID or email to search. Default is 0. |
|
411 | + * @param integer $value The Customer ID or email to search. Default is 0. |
|
412 | 412 | * |
413 | 413 | * @return mixed Upon success, an object of the donor. Upon failure, NULL |
414 | 414 | */ |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | /** |
280 | 280 | * Rename query clauses for new meta table |
281 | 281 | * |
282 | - * @param $clause |
|
282 | + * @param string $clause |
|
283 | 283 | * @param $filter |
284 | 284 | * |
285 | 285 | * @return mixed |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | * @since 2.0.4 |
516 | 516 | * @access public |
517 | 517 | * |
518 | - * @return string |
|
518 | + * @return boolean |
|
519 | 519 | */ |
520 | 520 | public function get_meta_type() { |
521 | 521 | return $this->meta_type; |