@@ -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 |
@@ -513,7 +513,7 @@ |
||
513 | 513 | * @since 1.7 |
514 | 514 | * @access public |
515 | 515 | * |
516 | - * @return bool |
|
516 | + * @return false|null |
|
517 | 517 | */ |
518 | 518 | public function delete_cache() { |
519 | 519 | // Add log related keys to delete. |
@@ -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; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @since 1.0 |
23 | 23 | * |
24 | - * @return string Donation form. |
|
24 | + * @return false|null Donation form. |
|
25 | 25 | */ |
26 | 26 | function give_get_donation_form( $args = array() ) { |
27 | 27 | |
@@ -1681,7 +1681,7 @@ discard block |
||
1681 | 1681 | * |
1682 | 1682 | * @param int $form_id The form ID. |
1683 | 1683 | * |
1684 | - * @return bool |
|
1684 | + * @return false|null |
|
1685 | 1685 | */ |
1686 | 1686 | function give_terms_agreement( $form_id ) { |
1687 | 1687 | $form_option = give_get_meta( $form_id, '_give_terms_option', true ); |
@@ -1891,7 +1891,7 @@ discard block |
||
1891 | 1891 | * @param int $form_id The form ID. |
1892 | 1892 | * @param array $args An array of form arguments. |
1893 | 1893 | * |
1894 | - * @return mixed |
|
1894 | + * @return boolean |
|
1895 | 1895 | */ |
1896 | 1896 | function give_show_goal_progress( $form_id, $args = array() ) { |
1897 | 1897 | |
@@ -1923,7 +1923,7 @@ discard block |
||
1923 | 1923 | * @param int $total Total amount based on shortcode parameter. |
1924 | 1924 | * @param int $total_goal Total Goal amount passed by Admin. |
1925 | 1925 | * |
1926 | - * @return mixed |
|
1926 | + * @return boolean |
|
1927 | 1927 | */ |
1928 | 1928 | function give_show_goal_totals_progress( $total, $total_goal ) { |
1929 | 1929 | |
@@ -1952,7 +1952,7 @@ discard block |
||
1952 | 1952 | * |
1953 | 1953 | * @since 1.8 |
1954 | 1954 | * |
1955 | - * @param $form_id |
|
1955 | + * @param integer $form_id |
|
1956 | 1956 | * @param $args |
1957 | 1957 | * |
1958 | 1958 | * @return mixed|string |
@@ -1993,7 +1993,7 @@ discard block |
||
1993 | 1993 | * @param int $form_id The form ID. |
1994 | 1994 | * @param array $args An array of form arguments. |
1995 | 1995 | * |
1996 | - * @return void|bool |
|
1996 | + * @return false|null |
|
1997 | 1997 | */ |
1998 | 1998 | function give_form_content( $form_id, $args ) { |
1999 | 1999 | |
@@ -2297,7 +2297,7 @@ discard block |
||
2297 | 2297 | * |
2298 | 2298 | * @since 2.1 |
2299 | 2299 | * |
2300 | - * @return array |
|
2300 | + * @return string[] |
|
2301 | 2301 | */ |
2302 | 2302 | function add_class_for_form_grid( $class, $id, $args ) { |
2303 | 2303 | $class[] = 'give-form-grid-wrap'; |
@@ -2314,7 +2314,6 @@ discard block |
||
2314 | 2314 | /** |
2315 | 2315 | * Add hidden field to Form Grid page |
2316 | 2316 | * |
2317 | - * @param int $form_id The form ID. |
|
2318 | 2317 | * @param array $args An array of form arguments. |
2319 | 2318 | * @param Give_Donate_Form $form Form object. |
2320 | 2319 | * |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * @param string $user_login Username |
182 | 182 | * @param string $user_pass Password |
183 | 183 | * |
184 | - * @return bool |
|
184 | + * @return false|null |
|
185 | 185 | */ |
186 | 186 | function give_log_user_in( $user_id, $user_login, $user_pass ) { |
187 | 187 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @param array $data Data sent from the register form |
224 | 224 | * |
225 | - * @return bool |
|
225 | + * @return false|null |
|
226 | 226 | */ |
227 | 227 | function give_process_register_form( $data ) { |
228 | 228 | |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | * |
309 | 309 | * @since 1.8.17 |
310 | 310 | * |
311 | - * @return bool |
|
311 | + * @return boolean|null |
|
312 | 312 | */ |
313 | 313 | function give_email_access_login() { |
314 | 314 |
@@ -207,7 +207,7 @@ |
||
207 | 207 | * metadata entries with the specified value. |
208 | 208 | * Otherwise, update all entries. |
209 | 209 | * |
210 | - * @return mixed |
|
210 | + * @return null|boolean |
|
211 | 211 | */ |
212 | 212 | function _give_20_bc_saving_old_payment_meta( $check, $object_id, $meta_key, $meta_value, $prev_value ) { |
213 | 213 | // Bailout. |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | * |
406 | 406 | * @param int|bool $payment_id A given payment. |
407 | 407 | * |
408 | - * @return mixed void|false |
|
408 | + * @return false|null void|false |
|
409 | 409 | */ |
410 | 410 | public function __construct( $payment_id = false ) { |
411 | 411 | |
@@ -1175,7 +1175,7 @@ discard block |
||
1175 | 1175 | * |
1176 | 1176 | * @param string|bool $note The note to add. |
1177 | 1177 | * |
1178 | - * @return bool If the note was specified or not |
|
1178 | + * @return false|null If the note was specified or not |
|
1179 | 1179 | */ |
1180 | 1180 | public function add_note( $note = false ) { |
1181 | 1181 | // Bail if no note specified. |
@@ -197,7 +197,7 @@ |
||
197 | 197 | * @since |
198 | 198 | * @access public |
199 | 199 | * |
200 | - * @param $serial_number |
|
200 | + * @param integer $serial_number |
|
201 | 201 | * |
202 | 202 | * @return string |
203 | 203 | */ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param $end_date string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month` |
37 | 37 | * @param $status string|array The sale status(es) to count. Only valid when retrieving global stats |
38 | 38 | * |
39 | - * @return float|int Total amount of donations based on the passed arguments. |
|
39 | + * @return string Total amount of donations based on the passed arguments. |
|
40 | 40 | */ |
41 | 41 | public function get_sales( $form_id = 0, $start_date = false, $end_date = false, $status = 'publish' ) { |
42 | 42 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param $end_date string|bool The end date for which we'd like to filter the donations stats. If false, method will use the default end date of `this_month`. |
85 | 85 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe'. |
86 | 86 | * |
87 | - * @return float|int Total amount of donations based on the passed arguments. |
|
87 | + * @return string Total amount of donations based on the passed arguments. |
|
88 | 88 | */ |
89 | 89 | public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
90 | 90 | global $wpdb; |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | * @param $end_date string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month` |
211 | 211 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe' |
212 | 212 | * |
213 | - * @return float|int Total amount of donations based on the passed arguments. |
|
213 | + * @return string Total amount of donations based on the passed arguments. |
|
214 | 214 | */ |
215 | 215 | public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
216 | 216 |