@@ -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 | */ |
@@ -1077,7 +1077,7 @@ |
||
1077 | 1077 | * @access public |
1078 | 1078 | * |
1079 | 1079 | * @param string $meta_key Metadata name. Default is empty. |
1080 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
1080 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
1081 | 1081 | * |
1082 | 1082 | * @return bool False for failure. True for success. |
1083 | 1083 | */ |
@@ -204,7 +204,7 @@ |
||
204 | 204 | * @since 1.0 |
205 | 205 | * @access public |
206 | 206 | * |
207 | - * @return bool |
|
207 | + * @return boolean|null |
|
208 | 208 | */ |
209 | 209 | public function check_for_token() { |
210 | 210 |