Completed
Push — develop ( e73eb4...52a281 )
by Gennady
16:37
created
includes/widgets/search-widget/class-search-widget.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	/**
249 249
 	 * Add admin script to the no-conflict scripts whitelist
250 250
 	 * @param array $allowed Scripts allowed in no-conflict mode
251
-	 * @return array Scripts allowed in no-conflict mode, plus the search widget script
251
+	 * @return string[] Scripts allowed in no-conflict mode, plus the search widget script
252 252
 	 */
253 253
 	public function register_no_conflict( $allowed ) {
254 254
 		$allowed[] = 'gravityview_searchwidget_admin';
@@ -729,7 +729,6 @@  discard block
 block discarded – undo
729 729
 	 * Dropin for the legacy flat filters when \GF_Query is available.
730 730
 	 *
731 731
 	 * @param \GF_Query $query The current query object reference
732
-	 * @param \GV\View $this The current view object
733 732
 	 * @param \GV\Request $request The request object
734 733
 	 */
735 734
 	public function gf_query_filter( &$query, $view, $request ) {
@@ -1410,7 +1409,7 @@  discard block
 block discarded – undo
1410 1409
 	/**
1411 1410
 	 * Get the label for a search form field
1412 1411
 	 * @param  array $field      Field setting as sent by the GV configuration - has `field`, `input` (input type), and `label` keys
1413
-	 * @param  array $form_field Form field data, as fetched by `gravityview_get_field()`
1412
+	 * @param  GF_Field|null $form_field Form field data, as fetched by `gravityview_get_field()`
1414 1413
 	 * @return string             Label for the search form
1415 1414
 	 */
1416 1415
 	private static function get_field_label( $field, $form_field = array() ) {
@@ -1594,7 +1593,7 @@  discard block
 block discarded – undo
1594 1593
 	/**
1595 1594
 	 * Require the datepicker script for the frontend GV script
1596 1595
 	 * @param array $js_dependencies Array of existing required scripts for the fe-views.js script
1597
-	 * @return array Array required scripts, with `jquery-ui-datepicker` added
1596
+	 * @return string[] Array required scripts, with `jquery-ui-datepicker` added
1598 1597
 	 */
1599 1598
 	public function add_datepicker_js_dependency( $js_dependencies ) {
1600 1599
 
@@ -1606,7 +1605,7 @@  discard block
 block discarded – undo
1606 1605
 	/**
1607 1606
 	 * Modify the array passed to wp_localize_script()
1608 1607
 	 *
1609
-	 * @param array $js_localization The data padded to the Javascript file
1608
+	 * @param array $localizations The data padded to the Javascript file
1610 1609
 	 * @param array $view_data View data array with View settings
1611 1610
 	 *
1612 1611
 	 * @return array
@@ -1786,7 +1785,7 @@  discard block
 block discarded – undo
1786 1785
 	 *
1787 1786
 	 * @param array  $get     Where to look for the operator.
1788 1787
 	 * @param string $key     The filter key to look for.
1789
-	 * @param array  $allowed The allowed operators (whitelist).
1788
+	 * @param string[]  $allowed The allowed operators (whitelist).
1790 1789
 	 * @param string $default The default operator.
1791 1790
 	 *
1792 1791
 	 * @return string The operator.
Please login to merge, or discard this patch.