@@ -37,7 +37,7 @@ |
||
37 | 37 | * |
38 | 38 | * Display admin bar when active |
39 | 39 | * |
40 | - * @return bool |
|
40 | + * @return false|null |
|
41 | 41 | */ |
42 | 42 | public function give_admin_bar_menu() { |
43 | 43 | global $wp_admin_bar; |
@@ -576,7 +576,7 @@ |
||
576 | 576 | * selected date-range (if any) |
577 | 577 | * |
578 | 578 | * @since 1.0 |
579 | - * @return array |
|
579 | + * @return integer|null |
|
580 | 580 | */ |
581 | 581 | function give_get_report_dates() { |
582 | 582 | $dates = array(); |
@@ -477,7 +477,7 @@ |
||
477 | 477 | * |
478 | 478 | * @param int $payment_id |
479 | 479 | * |
480 | - * @return int payment_id |
|
480 | + * @return string payment_id |
|
481 | 481 | */ |
482 | 482 | function give_email_tag_payment_id( $payment_id ) { |
483 | 483 | return give_get_payment_number( $payment_id ); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * @param string $text Label for the search box |
82 | 82 | * @param string $input_id ID of the search box |
83 | 83 | * |
84 | - * @return false |
|
84 | + * @return false|null |
|
85 | 85 | */ |
86 | 86 | public function search_box( $text, $input_id ) { |
87 | 87 | return; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | * |
254 | 254 | * @access public |
255 | 255 | * @since 1.0 |
256 | - * @return mixed string If search is present, false otherwise |
|
256 | + * @return string|false string If search is present, false otherwise |
|
257 | 257 | */ |
258 | 258 | public function get_search() { |
259 | 259 | return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @since: 1.4 |
51 | 51 | * |
52 | - * @return bool |
|
52 | + * @return boolean|null |
|
53 | 53 | */ |
54 | 54 | function give_allow_sessions_for_sysinfo() { |
55 | 55 | if ( is_admin() && ( isset( $_GET['page'] ) && isset( $_GET['tab'] ) ) && ( $_GET['tab'] == 'system_info' && $_GET['page'] == 'give-settings' ) ) { |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * |
294 | 294 | * @param int $payment_id A given payment |
295 | 295 | * |
296 | - * @return mixed void|false |
|
296 | + * @return false|null void|false |
|
297 | 297 | */ |
298 | 298 | public function __construct( $payment_id = false ) { |
299 | 299 | |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | * |
362 | 362 | * @param string $name The attribute to get |
363 | 363 | * |
364 | - * @return boolean If the item is set or not |
|
364 | + * @return boolean|null If the item is set or not |
|
365 | 365 | */ |
366 | 366 | public function __isset( $name ) { |
367 | 367 | if ( property_exists( $this, $name ) ) { |
@@ -1149,7 +1149,7 @@ discard block |
||
1149 | 1149 | * |
1150 | 1150 | * @param string $note The note to add |
1151 | 1151 | * |
1152 | - * @return void |
|
1152 | + * @return false|null |
|
1153 | 1153 | */ |
1154 | 1154 | public function add_note( $note = false ) { |
1155 | 1155 | // Bail if no note specified |
@@ -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; |
@@ -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; |