@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * @param \GV\View $view The view we're looking at. |
| 77 | 77 | * @param string $path The path of the offending template. |
| 78 | 78 | * |
| 79 | - * @return \Callable A closure used in the filter. |
|
| 79 | + * @return \Closure A closure used in the filter. |
|
| 80 | 80 | */ |
| 81 | 81 | public function legacy_template_warning( $view, $path ) { |
| 82 | 82 | return function() use ( $view, $path ) { |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | * Why? See https://github.com/gravityview/GravityView/issues/1024 |
| 102 | 102 | * |
| 103 | 103 | * @param \GV\Field_Template $template The template instance. |
| 104 | - * @return callable The callback bound to `get_template_part`. See `\GV\Field_Template::__construct` |
|
| 104 | + * @return \Closure The callback bound to `get_template_part`. See `\GV\Field_Template::__construct` |
|
| 105 | 105 | */ |
| 106 | 106 | public static function add_id_specific_templates( $template ) { |
| 107 | 107 | |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | /** |
| 247 | 247 | * Add admin script to the no-conflict scripts whitelist |
| 248 | 248 | * @param array $allowed Scripts allowed in no-conflict mode |
| 249 | - * @return array Scripts allowed in no-conflict mode, plus the search widget script |
|
| 249 | + * @return string[] Scripts allowed in no-conflict mode, plus the search widget script |
|
| 250 | 250 | */ |
| 251 | 251 | public function register_no_conflict( $allowed ) { |
| 252 | 252 | $allowed[] = 'gravityview_searchwidget_admin'; |
@@ -420,6 +420,7 @@ discard block |
||
| 420 | 420 | * Display hidden fields to add support for sites using Default permalink structure |
| 421 | 421 | * |
| 422 | 422 | * @since 1.8 |
| 423 | + * @param GravityView_Widget_Search $object |
|
| 423 | 424 | * @return array Search fields, modified if not using permalinks |
| 424 | 425 | */ |
| 425 | 426 | public function add_no_permalink_fields( $search_fields, $object, $widget_args = array() ) { |
@@ -729,7 +730,6 @@ discard block |
||
| 729 | 730 | * Dropin for the legacy flat filters when \GF_Query is available. |
| 730 | 731 | * |
| 731 | 732 | * @param \GF_Query $query The current query object reference |
| 732 | - * @param \GV\View $this The current view object |
|
| 733 | 733 | * @param \GV\Request $request The request object |
| 734 | 734 | */ |
| 735 | 735 | public function gf_query_filter( &$query, $view, $request ) { |
@@ -1428,7 +1428,7 @@ discard block |
||
| 1428 | 1428 | /** |
| 1429 | 1429 | * Get the label for a search form field |
| 1430 | 1430 | * @param array $field Field setting as sent by the GV configuration - has `field`, `input` (input type), and `label` keys |
| 1431 | - * @param array $form_field Form field data, as fetched by `gravityview_get_field()` |
|
| 1431 | + * @param GF_Field|null $form_field Form field data, as fetched by `gravityview_get_field()` |
|
| 1432 | 1432 | * @return string Label for the search form |
| 1433 | 1433 | */ |
| 1434 | 1434 | private static function get_field_label( $field, $form_field = array() ) { |
@@ -1486,7 +1486,7 @@ discard block |
||
| 1486 | 1486 | * @param array $field |
| 1487 | 1487 | * @param \GV\Context $context |
| 1488 | 1488 | * |
| 1489 | - * @return array |
|
| 1489 | + * @return GV\View |
|
| 1490 | 1490 | */ |
| 1491 | 1491 | private function get_search_filter_details( $field, $context ) { |
| 1492 | 1492 | |
@@ -1634,7 +1634,7 @@ discard block |
||
| 1634 | 1634 | /** |
| 1635 | 1635 | * Require the datepicker script for the frontend GV script |
| 1636 | 1636 | * @param array $js_dependencies Array of existing required scripts for the fe-views.js script |
| 1637 | - * @return array Array required scripts, with `jquery-ui-datepicker` added |
|
| 1637 | + * @return string[] Array required scripts, with `jquery-ui-datepicker` added |
|
| 1638 | 1638 | */ |
| 1639 | 1639 | public function add_datepicker_js_dependency( $js_dependencies ) { |
| 1640 | 1640 | |
@@ -1646,7 +1646,7 @@ discard block |
||
| 1646 | 1646 | /** |
| 1647 | 1647 | * Modify the array passed to wp_localize_script() |
| 1648 | 1648 | * |
| 1649 | - * @param array $js_localization The data padded to the Javascript file |
|
| 1649 | + * @param array $localizations The data padded to the Javascript file |
|
| 1650 | 1650 | * @param array $view_data View data array with View settings |
| 1651 | 1651 | * |
| 1652 | 1652 | * @return array |
@@ -1826,7 +1826,7 @@ discard block |
||
| 1826 | 1826 | * |
| 1827 | 1827 | * @param array $get Where to look for the operator. |
| 1828 | 1828 | * @param string $key The filter key to look for. |
| 1829 | - * @param array $allowed The allowed operators (whitelist). |
|
| 1829 | + * @param string[] $allowed The allowed operators (whitelist). |
|
| 1830 | 1830 | * @param string $default The default operator. |
| 1831 | 1831 | * |
| 1832 | 1832 | * @return string The operator. |
@@ -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(); |
@@ -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 ) { |
@@ -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; |
@@ -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 ); |
@@ -183,7 +186,7 @@ discard block |
||
| 183 | 186 | * "You can edit this post from the post page" fields, for example. |
| 184 | 187 | * |
| 185 | 188 | * @param $entry array Gravity Forms entry object |
| 186 | - * @param $view_id int GravityView view id |
|
| 189 | + * @param integer $view_id int GravityView view id |
|
| 187 | 190 | * @param $post_id int GravityView Post ID where View may be embedded {@since 1.9.2} |
| 188 | 191 | * @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/ } |
| 189 | 192 | * @return string |
@@ -286,7 +289,7 @@ discard block |
||
| 286 | 289 | * Needs to be used combined with GravityView_Edit_Entry::user_can_edit_entry for maximum security!! |
| 287 | 290 | * |
| 288 | 291 | * @param array $entry Gravity Forms entry array |
| 289 | - * @param \GV\View|int $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0 |
|
| 292 | + * @param integer $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0 |
|
| 290 | 293 | * @return bool |
| 291 | 294 | */ |
| 292 | 295 | public static function check_user_cap_edit_entry( $entry, $view = 0 ) { |