@@ -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; |
@@ -143,6 +143,7 @@ |
||
| 143 | 143 | /** |
| 144 | 144 | * @deprecated |
| 145 | 145 | * @see \GV\View_Collection::get() |
| 146 | + * @param integer|null $view_id |
|
| 146 | 147 | */ |
| 147 | 148 | function get_view( $view_id, $atts = NULL ) { |
| 148 | 149 | if ( ! $view = $this->views->get( $view_id ) ) { |
@@ -87,13 +87,13 @@ |
||
| 87 | 87 | * @since 2.0 Added $template_context parameter |
| 88 | 88 | * @since 2.7.2 Added $view_id parameter |
| 89 | 89 | * |
| 90 | - * @param array|GV\Entry[] $entries |
|
| 90 | + * @param GV\Entry[] $entries |
|
| 91 | 91 | * @param int $post_id |
| 92 | 92 | * @param array $form |
| 93 | 93 | * @param string $link_format |
| 94 | 94 | * @param string $after_link |
| 95 | 95 | * @param \GV\Template_Context $template_context The context |
| 96 | - * @param int|null $view_id View to link to when displaying on a page with multiple Views |
|
| 96 | + * @param integer $view_id View to link to when displaying on a page with multiple Views |
|
| 97 | 97 | */ |
| 98 | 98 | function __construct( $entries = array(), $post_id = 0, $form = array(), $link_format = '', $after_link = '', $context = '', $template_context = null, $view_id = 0 ) { |
| 99 | 99 | $this->entries = $entries; |
@@ -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 | |