@@ -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. |