@@ -18,7 +18,6 @@ |
||
18 | 18 | /** |
19 | 19 | * Process and output the [gventry] shortcode. |
20 | 20 | * |
21 | - * @param array $passed_atts The attributes passed. |
|
22 | 21 | * @param string $content The content inside the shortcode. |
23 | 22 | * @param string $tag The shortcode tag. |
24 | 23 | * |
@@ -18,7 +18,6 @@ |
||
18 | 18 | /** |
19 | 19 | * Process and output the [gvfield] shortcode. |
20 | 20 | * |
21 | - * @param array $passed_atts The attributes passed. |
|
22 | 21 | * @param string $content The content inside the shortcode. |
23 | 22 | * @param string $tag The shortcode tag. |
24 | 23 | * |
@@ -393,7 +393,7 @@ |
||
393 | 393 | * @internal |
394 | 394 | * @since 2.0 |
395 | 395 | * |
396 | - * @return \GV\Widget|null The widget implementation from configuration or none. |
|
396 | + * @return Widget The widget implementation from configuration or none. |
|
397 | 397 | */ |
398 | 398 | public static function from_configuration( $configuration ) { |
399 | 399 | $registered_widgets = self::registered(); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @param array $file_paths List of template paths ordered |
89 | 89 | * |
90 | - * @return array File paths, with duplicate field path added at index 117 |
|
90 | + * @return string[] File paths, with duplicate field path added at index 117 |
|
91 | 91 | */ |
92 | 92 | public function add_template_path( $file_paths ) { |
93 | 93 | |
@@ -193,7 +193,6 @@ discard block |
||
193 | 193 | * @since 2.5 |
194 | 194 | * |
195 | 195 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
196 | - * @param string $field_type Type of field options to render (`field` or `widget`) |
|
197 | 196 | * @param string $template_id Table slug |
198 | 197 | * @param float|string $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
199 | 198 | * @param string $context What context are we in? Example: `single` or `directory` |
@@ -222,7 +222,6 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @since 1.5.1 |
224 | 224 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
225 | - * @param string $field_type Type of field options to render (`field` or `widget`) |
|
226 | 225 | * @param string $template_id Table slug |
227 | 226 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
228 | 227 | * @param string $context What context are we in? Example: `single` or `directory` |
@@ -651,7 +650,7 @@ discard block |
||
651 | 650 | * |
652 | 651 | * @param array $entry Gravity Forms entry array |
653 | 652 | * @param array $field Field settings (optional) |
654 | - * @param int|\GV\View $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
653 | + * @param integer $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
655 | 654 | * @return bool |
656 | 655 | */ |
657 | 656 | public static function check_user_cap_delete_entry( $entry, $field = array(), $view = 0 ) { |
@@ -262,6 +262,8 @@ |
||
262 | 262 | /** |
263 | 263 | * Process the attributes passed to the shortcode. Make sure they're valid |
264 | 264 | * |
265 | + * @param string $content |
|
266 | + * @param string $tag |
|
265 | 267 | * @return array Array of attributes parsed for the shortcode |
266 | 268 | */ |
267 | 269 | private function parse_atts( $atts, $content, $tag ) { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @see GVCommon::get_form_fields() |
59 | 59 | * @access public |
60 | - * @param string|array $form_id (default: '') or $form object |
|
60 | + * @param string|array $form (default: '') or $form object |
|
61 | 61 | * @return array |
62 | 62 | */ |
63 | 63 | function gravityview_get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) { |
@@ -219,7 +219,6 @@ discard block |
||
219 | 219 | * |
220 | 220 | * @see GravityView_Template::template_id |
221 | 221 | * |
222 | - * @param int $view_id The ID of the View to get the layout of |
|
223 | 222 | * |
224 | 223 | * @return string GravityView_Template::template_id value. Empty string if not. |
225 | 224 | */ |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | * |
358 | 358 | * @param array $file_paths List of template paths ordered |
359 | 359 | * |
360 | - * @return array File paths with `./` and `./partials/` paths added |
|
360 | + * @return string[] File paths with `./` and `./partials/` paths added |
|
361 | 361 | */ |
362 | 362 | public function add_template_path( $file_paths ) { |
363 | 363 | |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | * @param array $entry |
550 | 550 | * @param array $data Note details array |
551 | 551 | * |
552 | - * @return int|WP_Error |
|
552 | + * @return integer |
|
553 | 553 | */ |
554 | 554 | private function add_note( $entry, $data ) { |
555 | 555 | global $current_user, $wpdb; |
@@ -84,6 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * Return the query class for this View. |
86 | 86 | * |
87 | + * @param View $view |
|
87 | 88 | * @return string The class name. |
88 | 89 | */ |
89 | 90 | public function get_query_class( $view ) { |
@@ -575,10 +576,8 @@ discard block |
||
575 | 576 | /** |
576 | 577 | * Get a \GV\Field by Form and Field ID for this data source. |
577 | 578 | * |
578 | - * @param \GV\GF_Form $form The Gravity Form form ID. |
|
579 | - * @param int $field_id The Gravity Form field ID for the $form_id. |
|
580 | 579 | * |
581 | - * @return \GV\Field|null The requested field or null if not found. |
|
580 | + * @return null|GF_Field The requested field or null if not found. |
|
582 | 581 | */ |
583 | 582 | public static function get_field( /** varargs */ ) { |
584 | 583 | $args = func_get_args(); |