@@ -219,6 +219,7 @@ discard block |
||
219 | 219 | |
220 | 220 | /** |
221 | 221 | * @since 3.0 |
222 | + * @return string |
|
222 | 223 | */ |
223 | 224 | public static function get_field_link_icon( $field_type ) { |
224 | 225 | if ( is_array( $field_type ) && isset( $field_type['icon'] ) ) { |
@@ -698,6 +699,9 @@ discard block |
||
698 | 699 | $reset_fields = true; |
699 | 700 | } |
700 | 701 | |
702 | + /** |
|
703 | + * @return string |
|
704 | + */ |
|
701 | 705 | public static function replace_shortcodes( $html, $form, $title = false, $description = false, $values = array() ) { |
702 | 706 | $codes = array( |
703 | 707 | 'form_name' => $title, |
@@ -858,7 +862,7 @@ discard block |
||
858 | 862 | } |
859 | 863 | |
860 | 864 | /** |
861 | - * @param object|string|boolean $form |
|
865 | + * @param string|boolean $form |
|
862 | 866 | * |
863 | 867 | * @return string |
864 | 868 | */ |
@@ -1018,6 +1022,9 @@ discard block |
||
1018 | 1022 | return $link; |
1019 | 1023 | } |
1020 | 1024 | |
1025 | + /** |
|
1026 | + * @return integer |
|
1027 | + */ |
|
1021 | 1028 | public static function edit_form_link_label( $data ) { |
1022 | 1029 | $name = self::get_form_name_from_data( $data ); |
1023 | 1030 | if ( ! $name ) { |
@@ -1444,7 +1451,7 @@ discard block |
||
1444 | 1451 | * |
1445 | 1452 | * @param array $values The $_POST array, which contains the values submitted in a form. |
1446 | 1453 | * |
1447 | - * @return bool|string A warning message about unsafe params or false. |
|
1454 | + * @return false|string A warning message about unsafe params or false. |
|
1448 | 1455 | */ |
1449 | 1456 | private static function check_redirect_url_for_unsafe_params( $values ) { |
1450 | 1457 | if ( ! isset( $values['options'] ) ) { |
@@ -1492,7 +1499,7 @@ discard block |
||
1492 | 1499 | * |
1493 | 1500 | * @param array $unsafe_params_in_redirect Array of params from the redirect URL whose names are reserved words. |
1494 | 1501 | * |
1495 | - * @return bool|string A string with an unsafe param message or false. |
|
1502 | + * @return false|string A string with an unsafe param message or false. |
|
1496 | 1503 | */ |
1497 | 1504 | private static function create_unsafe_param_warning( $unsafe_params_in_redirect ) { |
1498 | 1505 | $count = count( $unsafe_params_in_redirect ); |
@@ -1523,7 +1530,7 @@ discard block |
||
1523 | 1530 | * |
1524 | 1531 | * @since 4.04 |
1525 | 1532 | * |
1526 | - * @return array Array of WordPress reserved words. |
|
1533 | + * @return string[] Array of WordPress reserved words. |
|
1527 | 1534 | */ |
1528 | 1535 | public static function reserved_words() { |
1529 | 1536 | return array( |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $s_query['it.form_id'] = $form_id; |
26 | 26 | $join_form_in_query = false; |
27 | 27 | } else { |
28 | - $s_query[] = array( |
|
28 | + $s_query[] = array( |
|
29 | 29 | 'or' => 1, |
30 | 30 | 'parent_form_id' => null, |
31 | 31 | 'parent_form_id <' => 1, |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | if ( strpos( $orderby, 'meta' ) !== false ) { |
58 | 58 | $order_field_type = FrmField::get_type( str_replace( 'meta_', '', $orderby ) ); |
59 | - $orderby .= in_array( $order_field_type, array( 'number', 'scale', 'star' ) ) ? '+0' : ''; |
|
59 | + $orderby .= in_array( $order_field_type, array( 'number', 'scale', 'star' ) ) ? '+0' : ''; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | $order = self::get_param( |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | |
190 | 190 | $r = "<tr id='item-action-{$item->id}'$style>"; |
191 | 191 | |
192 | - list( $columns, $hidden, , $primary ) = $this->get_column_info(); |
|
192 | + list( $columns, $hidden,, $primary ) = $this->get_column_info(); |
|
193 | 193 | $action_col = false; |
194 | 194 | $action_columns = $this->get_action_columns(); |
195 | 195 |