@@ -339,7 +339,7 @@ |
||
| 339 | 339 | * |
| 340 | 340 | * @since 1.0 |
| 341 | 341 | * @uses Give()->session->get() |
| 342 | - * @return mixed array | false |
|
| 342 | + * @return string array | false |
|
| 343 | 343 | */ |
| 344 | 344 | function give_get_purchase_session() { |
| 345 | 345 | return Give()->session->get( 'give_purchase' ); |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * |
| 393 | 393 | * @param int|bool $payment_id A given payment |
| 394 | 394 | * |
| 395 | - * @return mixed void|false |
|
| 395 | + * @return false|null void|false |
|
| 396 | 396 | */ |
| 397 | 397 | public function __construct( $payment_id = false ) { |
| 398 | 398 | |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | * |
| 464 | 464 | * @param string $name The attribute to get |
| 465 | 465 | * |
| 466 | - * @return boolean If the item is set or not |
|
| 466 | + * @return boolean|null If the item is set or not |
|
| 467 | 467 | */ |
| 468 | 468 | public function __isset( $name ) { |
| 469 | 469 | if ( property_exists( $this, $name ) ) { |
@@ -1302,7 +1302,7 @@ discard block |
||
| 1302 | 1302 | * |
| 1303 | 1303 | * @param string $note The note to add |
| 1304 | 1304 | * |
| 1305 | - * @return void |
|
| 1305 | + * @return false|null |
|
| 1306 | 1306 | */ |
| 1307 | 1307 | public function add_note( $note = false ) { |
| 1308 | 1308 | // Bail if no note specified. |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | * |
| 327 | 327 | * @since 1.0 |
| 328 | 328 | * |
| 329 | - * @param int|bool $form_id Form ID (default: false). |
|
| 329 | + * @param boolean $form_id Form ID (default: false). |
|
| 330 | 330 | * @param int $payment_id Payment ID. |
| 331 | 331 | * |
| 332 | 332 | * @return void |
@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | * @param int $year Year number. Default is null. |
| 650 | 650 | * @param int $hour Hour number. Default is null. |
| 651 | 651 | * |
| 652 | - * @return int $earnings Earnings |
|
| 652 | + * @return double $earnings Earnings |
|
| 653 | 653 | */ |
| 654 | 654 | function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) { |
| 655 | 655 | |
@@ -963,7 +963,7 @@ discard block |
||
| 963 | 963 | * |
| 964 | 964 | * @param int $payment_id Payment ID. |
| 965 | 965 | * |
| 966 | - * @return int $form_id Form ID. |
|
| 966 | + * @return string $form_id Form ID. |
|
| 967 | 967 | */ |
| 968 | 968 | function give_get_payment_form_id( $payment_id ) { |
| 969 | 969 | $payment = new Give_Payment( $payment_id ); |
@@ -463,7 +463,7 @@ |
||
| 463 | 463 | * @since 1.7 |
| 464 | 464 | * @access public |
| 465 | 465 | * |
| 466 | - * @return bool |
|
| 466 | + * @return false|null |
|
| 467 | 467 | */ |
| 468 | 468 | public function delete_cache() { |
| 469 | 469 | global $wpdb; |
@@ -713,7 +713,7 @@ |
||
| 713 | 713 | * |
| 714 | 714 | * @param array $value The form field value array |
| 715 | 715 | * |
| 716 | - * @return array The description and tip as a 2 element array |
|
| 716 | + * @return string The description and tip as a 2 element array |
|
| 717 | 717 | */ |
| 718 | 718 | public static function get_field_description( $value ) { |
| 719 | 719 | $description = ''; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * |
| 76 | 76 | * @param $url |
| 77 | 77 | * |
| 78 | - * @return mixed |
|
| 78 | + * @return string |
|
| 79 | 79 | */ |
| 80 | 80 | public function give_update_cmb_meta_box_url( $url ) {
|
| 81 | 81 | //Path to Give's CMB |
@@ -856,7 +856,7 @@ discard block |
||
| 856 | 856 | * @since 1.0 |
| 857 | 857 | * |
| 858 | 858 | * @param string $key The Key to update |
| 859 | - * @param string|bool|int $value The value to set the key to |
|
| 859 | + * @param integer $value The value to set the key to |
|
| 860 | 860 | * |
| 861 | 861 | * @return boolean True if updated, false if not. |
| 862 | 862 | */ |
@@ -959,7 +959,7 @@ discard block |
||
| 959 | 959 | * @since 1.3.5 |
| 960 | 960 | * |
| 961 | 961 | * @param $array |
| 962 | - * @param $position |int|string Expects an array key or 'id' of the settings field to appear after |
|
| 962 | + * @param string $position |int|string Expects an array key or 'id' of the settings field to appear after |
|
| 963 | 963 | * @param $insert |array a valid array of options to insert |
| 964 | 964 | * |
| 965 | 965 | * @return array |
@@ -997,7 +997,7 @@ discard block |
||
| 997 | 997 | * |
| 998 | 998 | * @since 1.0 |
| 999 | 999 | * @param array $field_arr |
| 1000 | - * @param array $saved_values |
|
| 1000 | + * @param string|boolean $saved_values |
|
| 1001 | 1001 | * @return void |
| 1002 | 1002 | */ |
| 1003 | 1003 | function give_enabled_gateways_callback( $field_arr, $saved_values = array() ) {
|
@@ -1030,7 +1030,7 @@ discard block |
||
| 1030 | 1030 | * |
| 1031 | 1031 | * @since 1.0 |
| 1032 | 1032 | * @param array $field_arr |
| 1033 | - * @param array $saved_value |
|
| 1033 | + * @param string|boolean $saved_value |
|
| 1034 | 1034 | * @return void |
| 1035 | 1035 | */ |
| 1036 | 1036 | function give_default_gateway_callback( $field_arr, $saved_value ) {
|
@@ -1283,7 +1283,7 @@ |
||
| 1283 | 1283 | * |
| 1284 | 1284 | * @param $field |
| 1285 | 1285 | * |
| 1286 | - * @return string |
|
| 1286 | + * @return integer |
|
| 1287 | 1287 | */ |
| 1288 | 1288 | function _give_set_field_give_id_default_value( $field ) { |
| 1289 | 1289 | return 0; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * @since 1.5 |
| 51 | 51 | * @global object $wpdb Used to query the database using the WordPress |
| 52 | 52 | * Database API |
| 53 | - * @return array $data The data for the CSV file |
|
| 53 | + * @return boolean $data The data for the CSV file |
|
| 54 | 54 | */ |
| 55 | 55 | public function get_data() { |
| 56 | 56 | global $wpdb; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * @since 1.5 |
| 51 | 51 | * @global object $wpdb Used to query the database using the WordPress |
| 52 | 52 | * Database API |
| 53 | - * @return array $data The data for the CSV file |
|
| 53 | + * @return boolean $data The data for the CSV file |
|
| 54 | 54 | */ |
| 55 | 55 | public function get_data() { |
| 56 | 56 | global $wpdb; |