@@ -176,7 +176,7 @@ |
||
176 | 176 | * @param array $instance Settings for the current widget |
177 | 177 | * @param string $form_id Form ID int, as string |
178 | 178 | * |
179 | - * @return array|GV\Entry[] $entries Multidimensional array of Gravity Forms entries or GravityView Entry objects |
|
179 | + * @return GV\Entry[] $entries Multidimensional array of Gravity Forms entries or GravityView Entry objects |
|
180 | 180 | */ |
181 | 181 | private function get_entries( $instance, $form_id ) { |
182 | 182 |
@@ -47,7 +47,6 @@ |
||
47 | 47 | * @param string $atts |
48 | 48 | * @param string $css_class |
49 | 49 | * @param string $anchor_text |
50 | - * @param string $link_text |
|
51 | 50 | * |
52 | 51 | * @return string If no article information exists, original tooltip. Otherwise, modified! |
53 | 52 | */ |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param string $name The key name (will be prefixed). |
53 | 53 | * @param mixed $default The default value if not found (Default: null) |
54 | 54 | * |
55 | - * @return mixed The value or $default if not found. |
|
55 | + * @return string The value or $default if not found. |
|
56 | 56 | */ |
57 | 57 | public static function _SERVER( $name, $default = null ) { |
58 | 58 | return self::get( $_SERVER, $name, $default ); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @param mixed $value The value to return from the closure. |
128 | 128 | * |
129 | - * @return Closure The closure with the $value bound. |
|
129 | + * @return \Closure The closure with the $value bound. |
|
130 | 130 | */ |
131 | 131 | public static function _return( $value ) { |
132 | 132 | return function() use ( $value ) { return $value; }; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * |
74 | 74 | * @param array $allowlist Array of widgets to show before a search is performed, if the setting is enabled. |
75 | 75 | * |
76 | - * @return array |
|
76 | + * @return string[] |
|
77 | 77 | */ |
78 | 78 | function add_to_allowlist( $allowlist ) { |
79 | 79 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | * @uses api_request() |
98 | 98 | * |
99 | 99 | * @param array $_transient_data Update array build by WordPress. |
100 | - * @return array Modified update array with custom plugin data. |
|
100 | + * @return stdClass Modified update array with custom plugin data. |
|
101 | 101 | */ |
102 | 102 | public function check_update( $_transient_data ) { |
103 | 103 |
@@ -510,6 +510,9 @@ discard block |
||
510 | 510 | $this->settings->set( $settings ); |
511 | 511 | } |
512 | 512 | |
513 | + /** |
|
514 | + * @param boolean $echo |
|
515 | + */ |
|
513 | 516 | public function settings_edd_license_activation( $field, $echo ) { |
514 | 517 | |
515 | 518 | $script_debug = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; |
@@ -617,7 +620,6 @@ discard block |
||
617 | 620 | * Check the GravityView license information |
618 | 621 | * |
619 | 622 | * @since 1.19.3 |
620 | - * @param bool $force Whether to force checking license, even if AJAX |
|
621 | 623 | * |
622 | 624 | * @return void |
623 | 625 | */ |
@@ -140,7 +140,7 @@ |
||
140 | 140 | * |
141 | 141 | * @param array $items Styles to exclude from no-conflict |
142 | 142 | * |
143 | - * @return array |
|
143 | + * @return string[] |
|
144 | 144 | */ |
145 | 145 | public function register_no_conflict( $items ) { |
146 | 146 |
@@ -278,7 +278,7 @@ |
||
278 | 278 | * Capture bulk actions - gf_entries table |
279 | 279 | * |
280 | 280 | * @uses GravityView_frontend::get_search_criteria() Convert the $_POST search request into a properly formatted request. |
281 | - * @return void|boolean |
|
281 | + * @return false|null |
|
282 | 282 | */ |
283 | 283 | public function process_bulk_action() { |
284 | 284 |
@@ -232,7 +232,6 @@ discard block |
||
232 | 232 | * @deprecated Use \GV\Field_Template::render() or the more low-level \GV\Field::get_value() |
233 | 233 | * |
234 | 234 | * @param array $entry |
235 | - * @param array $field |
|
236 | 235 | * @return null|string |
237 | 236 | */ |
238 | 237 | public static function field_value( $entry, $field_settings, $format = 'html' ) { |
@@ -851,6 +850,9 @@ discard block |
||
851 | 850 | return $value; |
852 | 851 | } |
853 | 852 | |
853 | +/** |
|
854 | + * @param GV\Template_Context $context |
|
855 | + */ |
|
854 | 856 | function gv_directory_link( $post = NULL, $add_pagination = true, $context = null ) { |
855 | 857 | return GravityView_API::directory_link( $post, $add_pagination, $context ); |
856 | 858 | } |
@@ -1359,6 +1361,7 @@ discard block |
||
1359 | 1361 | * @param array $passed_args Associative array with field data. `field` and `form` are required. |
1360 | 1362 | * @since 2.0 |
1361 | 1363 | * @param \GV\Template_Context The template context. |
1364 | + * @param GV\Template_Context $context |
|
1362 | 1365 | * @return string Field output. If empty value and hide empty is true, return empty. |
1363 | 1366 | */ |
1364 | 1367 | function gravityview_field_output( $passed_args, $context = null ) { |