@@ -327,7 +327,7 @@ |
||
327 | 327 | * @since 2.1 |
328 | 328 | * @access public |
329 | 329 | * |
330 | - * @return void |
|
330 | + * @return false|null |
|
331 | 331 | */ |
332 | 332 | public function attach_source() { |
333 | 333 |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * Retrieve Payment Key of the History Access Session. |
225 | 225 | * |
226 | - * @return array|string |
|
226 | + * @return boolean |
|
227 | 227 | * @since 1.8.17 |
228 | 228 | */ |
229 | 229 | function give_get_history_session() { |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | /** |
521 | 521 | * Show Donation Forms Post Type in Appearance > Menus by default on fresh install. |
522 | 522 | * |
523 | - * @return bool |
|
523 | + * @return false|null |
|
524 | 524 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
525 | 525 | * |
526 | 526 | * @since 1.8.14 |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | /** |
837 | 837 | * Check if terms enabled or not for form. |
838 | 838 | * |
839 | - * @param $form_id |
|
839 | + * @param integer $form_id |
|
840 | 840 | * |
841 | 841 | * @return bool |
842 | 842 | * @since 1.8 |
@@ -958,7 +958,7 @@ discard block |
||
958 | 958 | * @param int $id |
959 | 959 | * @param string $meta_key |
960 | 960 | * @param mixed $meta_value |
961 | - * @param mixed $prev_value |
|
961 | + * @param string $prev_value |
|
962 | 962 | * @param string $meta_type |
963 | 963 | * |
964 | 964 | * @return mixed |
@@ -1245,7 +1245,7 @@ discard block |
||
1245 | 1245 | * array_column() (PHP 5.5) but also supports objects. |
1246 | 1246 | * |
1247 | 1247 | * @param array $list List of objects or arrays |
1248 | - * @param int|string $field Field from the object to place instead of the entire object |
|
1248 | + * @param string $field Field from the object to place instead of the entire object |
|
1249 | 1249 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
1250 | 1250 | * Default null. |
1251 | 1251 | * |
@@ -2195,7 +2195,7 @@ discard block |
||
2195 | 2195 | * |
2196 | 2196 | * @param $args |
2197 | 2197 | * |
2198 | - * @return bool|mixed |
|
2198 | + * @return string|null |
|
2199 | 2199 | * @since 2.4.1 |
2200 | 2200 | */ |
2201 | 2201 | function give_display_donation_receipt( $args ) { |
@@ -2298,7 +2298,7 @@ discard block |
||
2298 | 2298 | * @param $plugin_slug |
2299 | 2299 | * @param bool $by_plugin_name |
2300 | 2300 | * |
2301 | - * @return mixed|void |
|
2301 | + * @return string |
|
2302 | 2302 | * @since 2.5.0 |
2303 | 2303 | */ |
2304 | 2304 | function give_get_addon_readme_url( $plugin_slug, $by_plugin_name = false ) { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * Redirect admin to clean url give admin pages. |
40 | 40 | * |
41 | - * @return bool |
|
41 | + * @return false|null |
|
42 | 42 | * @since 1.8 |
43 | 43 | */ |
44 | 44 | function give_redirect_to_clean_url_admin_pages() { |
@@ -1189,7 +1189,7 @@ discard block |
||
1189 | 1189 | * @param int $user_id |
1190 | 1190 | * |
1191 | 1191 | * @access public |
1192 | - * @return bool |
|
1192 | + * @return false|null |
|
1193 | 1193 | * @since 2.0 |
1194 | 1194 | */ |
1195 | 1195 | function give_update_donor_name_on_user_update( $user_id = 0 ) { |
@@ -1232,7 +1232,7 @@ discard block |
||
1232 | 1232 | * @param int $user_id User ID. |
1233 | 1233 | * @param WP_User|bool $old_user_data User data. |
1234 | 1234 | * |
1235 | - * @return bool |
|
1235 | + * @return false|null |
|
1236 | 1236 | * @since 1.4.3 |
1237 | 1237 | * @access public |
1238 | 1238 | */ |
@@ -199,7 +199,7 @@ |
||
199 | 199 | * @access public |
200 | 200 | * @since 2.5.14 |
201 | 201 | * |
202 | - * @return string|bool String if search is present, false otherwise |
|
202 | + * @return string|false String if search is present, false otherwise |
|
203 | 203 | */ |
204 | 204 | public function get_search() { |
205 | 205 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -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; |
@@ -136,7 +136,7 @@ |
||
136 | 136 | * @since 2.5.0 |
137 | 137 | * @access public |
138 | 138 | * |
139 | - * @return void |
|
139 | + * @return null|false |
|
140 | 140 | */ |
141 | 141 | public function process_payment( $donation_data ) { |
142 | 142 |
@@ -403,7 +403,7 @@ |
||
403 | 403 | * @since 2.2.0 |
404 | 404 | * @access public |
405 | 405 | * |
406 | - * @return string|bool Formatted expiration date string. |
|
406 | + * @return string|false Formatted expiration date string. |
|
407 | 407 | */ |
408 | 408 | public function get_session_expiration() { |
409 | 409 | return $this->has_session() ? $this->session_expiration : false; |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * |
198 | 198 | * @param string $cache_key |
199 | 199 | * @param bool $custom_key |
200 | - * @param mixed $query_args |
|
200 | + * @param string $query_args |
|
201 | 201 | * |
202 | 202 | * @return mixed |
203 | 203 | */ |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | * |
316 | 316 | * @param bool $force If set to true then all cached values will be delete instead of only expired |
317 | 317 | * |
318 | - * @return bool |
|
318 | + * @return false|null |
|
319 | 319 | */ |
320 | 320 | public static function delete_all_expired( $force = false ) { |
321 | 321 | global $wpdb; |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | * @since 2.0 |
737 | 737 | * @access private |
738 | 738 | * |
739 | - * @param $group |
|
739 | + * @param string $group |
|
740 | 740 | * |
741 | 741 | * @return mixed |
742 | 742 | */ |
@@ -679,7 +679,7 @@ |
||
679 | 679 | * |
680 | 680 | * @param int $form_id |
681 | 681 | * |
682 | - * @return array |
|
682 | + * @return integer|null |
|
683 | 683 | */ |
684 | 684 | public function get_email_attachments( $form_id = null ) { |
685 | 685 | /** |