@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @since 2.9.2 |
65 | 65 | * |
66 | - * @param $component |
|
66 | + * @param string $component |
|
67 | 67 | */ |
68 | 68 | private function load_components( $component ) { |
69 | 69 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param array $args Existing reserved args |
110 | 110 | * |
111 | - * @return array |
|
111 | + * @return string[] |
|
112 | 112 | */ |
113 | 113 | public function add_reserved_arg( $args ) { |
114 | 114 | |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * @uses GFAPI::delete_entry() |
441 | 441 | * @uses GFAPI::update_entry_property() |
442 | 442 | * |
443 | - * @return WP_Error|string "deleted" or "trashed" if successful, WP_Error if GFAPI::delete_entry() or updating entry failed. |
|
443 | + * @return string "deleted" or "trashed" if successful, WP_Error if GFAPI::delete_entry() or updating entry failed. |
|
444 | 444 | */ |
445 | 445 | private function delete_or_trash_entry( $entry ) { |
446 | 446 | |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | * |
608 | 608 | * @since 1.5.1 |
609 | 609 | * @param array $entry Gravity Forms entry array |
610 | - * @return boolean|WP_Error True: can edit form. WP_Error: nope. |
|
610 | + * @return string True: can edit form. WP_Error: nope. |
|
611 | 611 | */ |
612 | 612 | function user_can_delete_entry( $entry = array(), $view_id = null ) { |
613 | 613 | |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | * |
649 | 649 | * @param array $entry Gravity Forms entry array |
650 | 650 | * @param array $field Field settings (optional) |
651 | - * @param int|\GV\View $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
651 | + * @param integer $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
652 | 652 | * @return bool |
653 | 653 | */ |
654 | 654 | public static function check_user_cap_delete_entry( $entry, $field = array(), $view = 0 ) { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @param array $args Existing reserved args |
81 | 81 | * |
82 | - * @return array |
|
82 | + * @return string[] |
|
83 | 83 | */ |
84 | 84 | public function add_reserved_arg( $args ) { |
85 | 85 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @param array $fields Array of field types not editable by users |
153 | 153 | * |
154 | - * @return array |
|
154 | + * @return string[] |
|
155 | 155 | */ |
156 | 156 | public function _filter_sortable_fields( $fields ) { |
157 | 157 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @param array $file_paths List of template paths ordered |
171 | 171 | * |
172 | - * @return array File paths, with duplicate field path added at index 117 |
|
172 | + * @return string[] File paths, with duplicate field path added at index 117 |
|
173 | 173 | */ |
174 | 174 | public function add_template_path( $file_paths ) { |
175 | 175 | |
@@ -275,7 +275,6 @@ discard block |
||
275 | 275 | * @since 2.5 |
276 | 276 | * |
277 | 277 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
278 | - * @param string $field_type Type of field options to render (`field` or `widget`) |
|
279 | 278 | * @param string $template_id Table slug |
280 | 279 | * @param float|string $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
281 | 280 | * @param string $context What context are we in? Example: `single` or `directory` |
@@ -64,6 +64,9 @@ discard block |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | |
67 | + /** |
|
68 | + * @param string $component |
|
69 | + */ |
|
67 | 70 | private function load_components( $component ) { |
68 | 71 | |
69 | 72 | $dir = trailingslashit( self::$file ); |
@@ -104,7 +107,7 @@ discard block |
||
104 | 107 | * |
105 | 108 | * @param array $args Existing reserved args |
106 | 109 | * |
107 | - * @return array |
|
110 | + * @return string[] |
|
108 | 111 | */ |
109 | 112 | public function add_reserved_arg( $args ) { |
110 | 113 | |
@@ -200,7 +203,7 @@ discard block |
||
200 | 203 | * "You can edit this post from the post page" fields, for example. |
201 | 204 | * |
202 | 205 | * @param $entry array Gravity Forms entry object |
203 | - * @param $view_id int GravityView view id |
|
206 | + * @param integer $view_id int GravityView view id |
|
204 | 207 | * @param $post_id int GravityView Post ID where View may be embedded {@since 1.9.2} |
205 | 208 | * @param string|array $field_values Parameters to pass in to the Edit Entry form to prefill data. Uses the same format as Gravity Forms "Allow field to be populated dynamically" {@since 1.9.2} {@see https://www.gravityhelp.com/documentation/article/allow-field-to-be-populated-dynamically/ } |
206 | 209 | * @return string |
@@ -303,7 +306,7 @@ discard block |
||
303 | 306 | * Needs to be used combined with GravityView_Edit_Entry::user_can_edit_entry for maximum security!! |
304 | 307 | * |
305 | 308 | * @param array $entry Gravity Forms entry array |
306 | - * @param \GV\View|int $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0 |
|
309 | + * @param integer $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0 |
|
307 | 310 | * @return bool |
308 | 311 | */ |
309 | 312 | public static function check_user_cap_edit_entry( $entry, $view = 0 ) { |