@@ -162,7 +162,7 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * This function is used to delete donor and related donation without redirection. |
| 164 | 164 | * |
| 165 | - * @param int|Give_Donor $donor Donor ID or List of Donor IDs. |
|
| 165 | + * @param Give_Donor $donor Donor ID or List of Donor IDs. |
|
| 166 | 166 | * @param array $args List of arguments to handle donor and related donation deletion process. |
| 167 | 167 | * |
| 168 | 168 | * @type bool delete_donation Delete donor linked donations if set to true. Default is false. |
@@ -290,7 +290,7 @@ |
||
| 290 | 290 | * |
| 291 | 291 | * @since 1.8.12 |
| 292 | 292 | * |
| 293 | - * @return int |
|
| 293 | + * @return double |
|
| 294 | 294 | */ |
| 295 | 295 | public function get_percentage_complete() { |
| 296 | 296 | return ceil( ( 100 * $this->step_completed ) / $this->total_step ); |
@@ -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; |
@@ -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 | |
@@ -1174,7 +1174,7 @@ discard block |
||
| 1174 | 1174 | * |
| 1175 | 1175 | * @param string|bool $note The note to add. |
| 1176 | 1176 | * |
| 1177 | - * @return bool If the note was specified or not |
|
| 1177 | + * @return false|null If the note was specified or not |
|
| 1178 | 1178 | */ |
| 1179 | 1179 | public function add_note( $note = false ) { |
| 1180 | 1180 | // Bail if no note specified. |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * |
| 25 | 25 | * @throws ReflectionException Exception Handling. |
| 26 | 26 | * |
| 27 | - * @return mixed |
|
| 27 | + * @return false|null |
|
| 28 | 28 | */ |
| 29 | 29 | function give_process_donation_form() { |
| 30 | 30 | |
@@ -1328,7 +1328,7 @@ discard block |
||
| 1328 | 1328 | * |
| 1329 | 1329 | * @param array $valid_data List of Valid Data. |
| 1330 | 1330 | * |
| 1331 | - * @return bool |
|
| 1331 | + * @return boolean|null |
|
| 1332 | 1332 | */ |
| 1333 | 1333 | function give_validate_donation_amount( $valid_data ) { |
| 1334 | 1334 | |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * @uses api_request() |
| 92 | 92 | * |
| 93 | 93 | * @param array $_transient_data Update array build by WordPress. |
| 94 | - * @return array Modified update array with custom plugin data. |
|
| 94 | + * @return stdClass Modified update array with custom plugin data. |
|
| 95 | 95 | */ |
| 96 | 96 | public function check_update( $_transient_data ) { |
| 97 | 97 | |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | /** |
| 67 | 67 | * Constructor. |
| 68 | 68 | * |
| 69 | - * @param number $_step Step ID of the currenct batch. |
|
| 69 | + * @param integer $_step Step ID of the currenct batch. |
|
| 70 | 70 | */ |
| 71 | 71 | public function __construct( $_step = 1 ) { |
| 72 | 72 | parent::__construct( $_step ); |
@@ -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(); |
@@ -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; |