@@ -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 | |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * |
| 156 | 156 | * Used to redirect a user back to the donation form if there are errors present. |
| 157 | 157 | * |
| 158 | - * @param array|string $args |
|
| 158 | + * @param string $args |
|
| 159 | 159 | * |
| 160 | 160 | * @access public |
| 161 | 161 | * @since 1.0 |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * @since 1.0 |
| 302 | 302 | * @since 1.8.16 Add security check |
| 303 | 303 | * |
| 304 | - * @return bool |
|
| 304 | + * @return false|null |
|
| 305 | 305 | */ |
| 306 | 306 | function give_listen_for_failed_payments() { |
| 307 | 307 | |
@@ -1292,7 +1292,7 @@ discard block |
||
| 1292 | 1292 | * @since 2.2.0 |
| 1293 | 1293 | * |
| 1294 | 1294 | * @param array|integer $price_or_level_id Price level data. |
| 1295 | - * @param boolean|integer $form_id Donation Form ID. |
|
| 1295 | + * @param integer $form_id Donation Form ID. |
|
| 1296 | 1296 | * |
| 1297 | 1297 | * @return boolean |
| 1298 | 1298 | */ |
@@ -1396,7 +1396,7 @@ discard block |
||
| 1396 | 1396 | * |
| 1397 | 1397 | * @since 2.2.0 |
| 1398 | 1398 | * |
| 1399 | - * @return object |
|
| 1399 | + * @return Give_Donor |
|
| 1400 | 1400 | */ |
| 1401 | 1401 | function give_get_name_with_title_prefixes( $donor ) { |
| 1402 | 1402 | |
@@ -1441,7 +1441,7 @@ discard block |
||
| 1441 | 1441 | * |
| 1442 | 1442 | * @since 2.2.0 |
| 1443 | 1443 | * |
| 1444 | - * @return array |
|
| 1444 | + * @return string|boolean |
|
| 1445 | 1445 | */ |
| 1446 | 1446 | function give_get_default_title_prefixes() { |
| 1447 | 1447 | /** |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * |
| 229 | 229 | * @since 1.8.17 |
| 230 | 230 | * |
| 231 | - * @return array|string |
|
| 231 | + * @return boolean |
|
| 232 | 232 | */ |
| 233 | 233 | function give_get_history_session() { |
| 234 | 234 | return (bool) Give()->session->get( 'history_access' ); |
@@ -704,7 +704,7 @@ discard block |
||
| 704 | 704 | * |
| 705 | 705 | * @todo Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828). |
| 706 | 706 | * |
| 707 | - * @return bool |
|
| 707 | + * @return false|null |
|
| 708 | 708 | */ |
| 709 | 709 | function give_donation_metabox_menu() { |
| 710 | 710 | |
@@ -982,7 +982,7 @@ discard block |
||
| 982 | 982 | * |
| 983 | 983 | * @since 1.8 |
| 984 | 984 | * |
| 985 | - * @param $form_id |
|
| 985 | + * @param integer $form_id |
|
| 986 | 986 | * |
| 987 | 987 | * @return bool |
| 988 | 988 | */ |
@@ -1089,7 +1089,7 @@ discard block |
||
| 1089 | 1089 | * @param int $id |
| 1090 | 1090 | * @param string $meta_key |
| 1091 | 1091 | * @param mixed $meta_value |
| 1092 | - * @param mixed $prev_value |
|
| 1092 | + * @param string $prev_value |
|
| 1093 | 1093 | * |
| 1094 | 1094 | * @return mixed |
| 1095 | 1095 | */ |
@@ -1348,7 +1348,7 @@ discard block |
||
| 1348 | 1348 | * @since 1.8.13 |
| 1349 | 1349 | * |
| 1350 | 1350 | * @param array $list List of objects or arrays |
| 1351 | - * @param int|string $field Field from the object to place instead of the entire object |
|
| 1351 | + * @param string $field Field from the object to place instead of the entire object |
|
| 1352 | 1352 | * @param int|string $index_key Optional. Field from the object to use as keys for the new array. |
| 1353 | 1353 | * Default null. |
| 1354 | 1354 | * |
@@ -1782,7 +1782,7 @@ discard block |
||
| 1782 | 1782 | * |
| 1783 | 1783 | * @since 2.1 |
| 1784 | 1784 | * |
| 1785 | - * @param $form_id |
|
| 1785 | + * @param integer $form_id |
|
| 1786 | 1786 | * |
| 1787 | 1787 | * @return bool |
| 1788 | 1788 | */ |
@@ -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; |
@@ -546,7 +546,7 @@ |
||
| 546 | 546 | |
| 547 | 547 | /** |
| 548 | 548 | * @param $option_value |
| 549 | - * @param $value |
|
| 549 | + * @param boolean $value |
|
| 550 | 550 | * |
| 551 | 551 | * @return string |
| 552 | 552 | */ |