@@ -282,7 +282,7 @@ |
||
282 | 282 | /** |
283 | 283 | * Process edit entry form save |
284 | 284 | * |
285 | - * @param array $gv_data The View data. |
|
285 | + * @param GravityView_View_Data $gv_data The View data. |
|
286 | 286 | */ |
287 | 287 | private function process_save( $gv_data ) { |
288 | 288 |
@@ -795,6 +795,7 @@ |
||
795 | 795 | * Retrieve the entries for the current view and request. |
796 | 796 | * |
797 | 797 | * @param \GV\Request The request. Unused for now. |
798 | + * @param Request $request |
|
798 | 799 | * |
799 | 800 | * @return \GV\Entry_Collection The entries. |
800 | 801 | */ |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * Return array of fields' id and label, for a given Form ID |
271 | 271 | * |
272 | 272 | * @access public |
273 | - * @param string|array $form_id (default: '') or $form object |
|
273 | + * @param string|array $form (default: '') or $form object |
|
274 | 274 | * @param bool $add_default_properties |
275 | 275 | * @param bool $include_parent_field |
276 | 276 | * @return array |
@@ -1012,7 +1012,7 @@ discard block |
||
1012 | 1012 | * |
1013 | 1013 | * @param array $form Gravity Forms form array |
1014 | 1014 | * @param string $field_id ID of the field. If an input, full input ID (like `1.3`) |
1015 | - * @param string|array $field_value Raw value of the field. |
|
1015 | + * @param string $field_value Raw value of the field. |
|
1016 | 1016 | * @return string |
1017 | 1017 | */ |
1018 | 1018 | public static function get_field_label( $form = array(), $field_id = '', $field_value = '' ) { |
@@ -1515,7 +1515,7 @@ discard block |
||
1515 | 1515 | * |
1516 | 1516 | * Do the same than parse_str without max_input_vars limitation: |
1517 | 1517 | * Parses $string as if it were the query string passed via a URL and sets variables in the current scope. |
1518 | - * @param $string string string to parse (not altered like in the original parse_str(), use the second parameter!) |
|
1518 | + * @param string $string string string to parse (not altered like in the original parse_str(), use the second parameter!) |
|
1519 | 1519 | * @param $result array If the second parameter is present, variables are stored in this variable as array elements |
1520 | 1520 | * @return bool true or false if $string is an empty string |
1521 | 1521 | * @since 1.5.3 |
@@ -1750,9 +1750,9 @@ discard block |
||
1750 | 1750 | * @param string $message Message body (required) |
1751 | 1751 | * @param string $from_name Displayed name of the sender |
1752 | 1752 | * @param string $message_format If "html", sent text as `text/html`. Otherwise, `text/plain`. Default: "html". |
1753 | - * @param string|array $attachments Optional. Files to attach. {@see wp_mail()} for usage. Default: "". |
|
1753 | + * @param string $attachments Optional. Files to attach. {@see wp_mail()} for usage. Default: "". |
|
1754 | 1754 | * @param array|false $entry Gravity Forms entry array, related to the email. Default: false. |
1755 | - * @param array|false $notification Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false. |
|
1755 | + * @param boolean $notification Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false. |
|
1756 | 1756 | */ |
1757 | 1757 | public static function send_email( $from, $to, $bcc, $reply_to, $subject, $message, $from_name = '', $message_format = 'html', $attachments = '', $entry = false, $notification = false ) { |
1758 | 1758 |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | /** |
244 | 244 | * Add admin script to the no-conflict scripts whitelist |
245 | 245 | * @param array $allowed Scripts allowed in no-conflict mode |
246 | - * @return array Scripts allowed in no-conflict mode, plus the search widget script |
|
246 | + * @return string[] Scripts allowed in no-conflict mode, plus the search widget script |
|
247 | 247 | */ |
248 | 248 | public function register_no_conflict( $allowed ) { |
249 | 249 | $allowed[] = 'gravityview_searchwidget_admin'; |
@@ -709,7 +709,6 @@ discard block |
||
709 | 709 | * Dropin for the legacy flat filters when \GF_Query is available. |
710 | 710 | * |
711 | 711 | * @param \GF_Query $query The current query object reference |
712 | - * @param \GV\View $this The current view object |
|
713 | 712 | * @param \GV\Request $request The request object |
714 | 713 | */ |
715 | 714 | public function gf_query_filter( &$query, $view, $request ) { |
@@ -1199,7 +1198,7 @@ discard block |
||
1199 | 1198 | /** |
1200 | 1199 | * Get the label for a search form field |
1201 | 1200 | * @param array $field Field setting as sent by the GV configuration - has `field`, `input` (input type), and `label` keys |
1202 | - * @param array $form_field Form field data, as fetched by `gravityview_get_field()` |
|
1201 | + * @param GF_Field|null $form_field Form field data, as fetched by `gravityview_get_field()` |
|
1203 | 1202 | * @return string Label for the search form |
1204 | 1203 | */ |
1205 | 1204 | private static function get_field_label( $field, $form_field = array() ) { |
@@ -1364,7 +1363,7 @@ discard block |
||
1364 | 1363 | /** |
1365 | 1364 | * Require the datepicker script for the frontend GV script |
1366 | 1365 | * @param array $js_dependencies Array of existing required scripts for the fe-views.js script |
1367 | - * @return array Array required scripts, with `jquery-ui-datepicker` added |
|
1366 | + * @return string[] Array required scripts, with `jquery-ui-datepicker` added |
|
1368 | 1367 | */ |
1369 | 1368 | public function add_datepicker_js_dependency( $js_dependencies ) { |
1370 | 1369 | |
@@ -1376,7 +1375,7 @@ discard block |
||
1376 | 1375 | /** |
1377 | 1376 | * Modify the array passed to wp_localize_script() |
1378 | 1377 | * |
1379 | - * @param array $js_localization The data padded to the Javascript file |
|
1378 | + * @param array $localizations The data padded to the Javascript file |
|
1380 | 1379 | * @param array $view_data View data array with View settings |
1381 | 1380 | * |
1382 | 1381 | * @return array |