@@ -242,7 +242,7 @@ |
||
| 242 | 242 | * @since 1.0 |
| 243 | 243 | * @access public |
| 244 | 244 | * |
| 245 | - * @return bool |
|
| 245 | + * @return boolean|null |
|
| 246 | 246 | */ |
| 247 | 247 | public function check_for_token() { |
| 248 | 248 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @since 1.0 |
| 110 | 110 | * @access public |
| 111 | 111 | * |
| 112 | - * @param $query_var |
|
| 112 | + * @param string $query_var |
|
| 113 | 113 | * @param $value |
| 114 | 114 | */ |
| 115 | 115 | public function __set( $query_var, $value ) { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @since 1.0 |
| 127 | 127 | * @access public |
| 128 | 128 | * |
| 129 | - * @param $query_var |
|
| 129 | + * @param string $query_var |
|
| 130 | 130 | */ |
| 131 | 131 | public function __unset( $query_var ) { |
| 132 | 132 | unset( $this->args[ $query_var ] ); |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | * @param string $order |
| 468 | 468 | * @param WP_Query $query |
| 469 | 469 | * |
| 470 | - * @return mixed |
|
| 470 | + * @return string |
|
| 471 | 471 | */ |
| 472 | 472 | public function custom_orderby( $order, $query ) { |
| 473 | 473 | |
@@ -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; |
@@ -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(); |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @param $url |
| 74 | 74 | * |
| 75 | - * @return mixed |
|
| 75 | + * @return string |
|
| 76 | 76 | */ |
| 77 | 77 | public function give_update_cmb_meta_box_url( $url ) { |
| 78 | 78 | // Path to Give's CMB |
@@ -1009,7 +1009,7 @@ discard block |
||
| 1009 | 1009 | * @since 1.0 |
| 1010 | 1010 | * |
| 1011 | 1011 | * @param array $field_arr |
| 1012 | - * @param array $saved_value |
|
| 1012 | + * @param string|boolean $saved_value |
|
| 1013 | 1013 | * |
| 1014 | 1014 | * @return void |
| 1015 | 1015 | */ |
@@ -1163,7 +1163,7 @@ discard block |
||
| 1163 | 1163 | * @params $string text |
| 1164 | 1164 | * @params $filter array |
| 1165 | 1165 | * |
| 1166 | - * @return text $string |
|
| 1166 | + * @return string $string |
|
| 1167 | 1167 | */ |
| 1168 | 1168 | function give_slug_to_title( $string, $filters = array() ) { |
| 1169 | 1169 | |
@@ -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 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @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`. |
| 84 | 84 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe'. |
| 85 | 85 | * |
| 86 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 86 | + * @return string Total amount of donations based on the passed arguments. |
|
| 87 | 87 | */ |
| 88 | 88 | public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 89 | 89 | global $wpdb; |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * @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` |
| 188 | 188 | * @param $gateway_id string|bool The gateway to get earnings for such as 'paypal' or 'stripe' |
| 189 | 189 | * |
| 190 | - * @return float|int Total amount of donations based on the passed arguments. |
|
| 190 | + * @return string Total amount of donations based on the passed arguments. |
|
| 191 | 191 | */ |
| 192 | 192 | public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) { |
| 193 | 193 | |
@@ -487,7 +487,7 @@ |
||
| 487 | 487 | * |
| 488 | 488 | * @param string $main_file Plugin Main File. |
| 489 | 489 | * |
| 490 | - * @return bool|mixed|string |
|
| 490 | + * @return string |
|
| 491 | 491 | */ |
| 492 | 492 | public function get_plugin_folder_name( $main_file ) { |
| 493 | 493 | // Remove plugin file and get the Add-on's folder name only. |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @see http://wordpress.stackexchange.com/questions/58834/echo-all-meta-keys-of-a-custom-post-type |
| 11 | 11 | * |
| 12 | - * @return string |
|
| 12 | + * @return false|null |
|
| 13 | 13 | */ |
| 14 | 14 | function give_export_donations_get_custom_fields() { |
| 15 | 15 | |
@@ -999,7 +999,7 @@ |
||
| 999 | 999 | * @access public |
| 1000 | 1000 | * |
| 1001 | 1001 | * @param string $meta_key Metadata name. Default is empty. |
| 1002 | - * @param mixed $meta_value Optional. Metadata value. Default is empty. |
|
| 1002 | + * @param string $meta_value Optional. Metadata value. Default is empty. |
|
| 1003 | 1003 | * |
| 1004 | 1004 | * @return bool False for failure. True for success. |
| 1005 | 1005 | */ |