@@ -285,7 +285,7 @@ |
||
285 | 285 | 'type' => $field->type, |
286 | 286 | ); |
287 | 287 | |
288 | - $this->array_content[ $field->id ] = apply_filters( 'frm_field_shortcodes_for_default_html_email', $array, $field ); |
|
288 | + $this->array_content[$field->id] = apply_filters( 'frm_field_shortcodes_for_default_html_email', $array, $field ); |
|
289 | 289 | } |
290 | 290 | |
291 | 291 | /** |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | continue; |
327 | 327 | } |
328 | 328 | |
329 | - $this->maybe_convert_migrated_size( $widgets[ $k ]['size'] ); |
|
329 | + $this->maybe_convert_migrated_size( $widgets[$k]['size'] ); |
|
330 | 330 | } |
331 | 331 | update_option( 'widget_frm_show_form', $widgets ); |
332 | 332 | } |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | if ( ! is_array( $widget ) || ! isset( $widget['size'] ) ) { |
423 | 423 | continue; |
424 | 424 | } |
425 | - $this->convert_character_to_px( $widgets[ $k ]['size'] ); |
|
425 | + $this->convert_character_to_px( $widgets[$k]['size'] ); |
|
426 | 426 | } |
427 | 427 | update_option( 'widget_frm_show_form', $widgets ); |
428 | 428 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function set_upgrader( &$upgrader ) { |
23 | 23 | if ( is_object( $upgrader ) ) { |
24 | - $this->upgrader =& $upgrader; |
|
24 | + $this->upgrader = & $upgrader; |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'sep' => ', ', |
40 | 40 | 'html' => false, |
41 | 41 | ); |
42 | - $atts = wp_parse_args( $atts, $defaults ); |
|
42 | + $atts = wp_parse_args( $atts, $defaults ); |
|
43 | 43 | |
44 | 44 | if ( $atts['html'] ) { |
45 | 45 | $atts['sep'] = ' '; |
@@ -61,9 +61,9 @@ discard block |
||
61 | 61 | |
62 | 62 | // validate the url format |
63 | 63 | if ( ! empty( $value ) && ! preg_match( '/^http(s)?:\/\/(?:localhost|(?:[\da-z\.-]+\.[\da-z\.-]+))/i', $value ) ) { |
64 | - $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' ); |
|
64 | + $errors['field' . $args['id']] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' ); |
|
65 | 65 | } elseif ( $this->field->required == '1' && empty( $value ) ) { |
66 | - $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'blank' ); |
|
66 | + $errors['field' . $args['id']] = FrmFieldsHelper::get_error_msg( $this->field, 'blank' ); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | return $errors; |
@@ -59,8 +59,8 @@ |
||
59 | 59 | protected function init_saved_value( $entry ) { |
60 | 60 | if ( $this->field->type === 'html' ) { |
61 | 61 | $this->saved_value = $this->field->description; |
62 | - } elseif ( isset( $entry->metas[ $this->field->id ] ) ) { |
|
63 | - $this->saved_value = $entry->metas[ $this->field->id ]; |
|
62 | + } elseif ( isset( $entry->metas[$this->field->id] ) ) { |
|
63 | + $this->saved_value = $entry->metas[$this->field->id]; |
|
64 | 64 | } else { |
65 | 65 | $this->saved_value = ''; |
66 | 66 | } |
@@ -235,7 +235,7 @@ |
||
235 | 235 | if ( is_array( $upsell ) ) { |
236 | 236 | foreach ( $upsell as $k => $plugin ) { |
237 | 237 | if ( strpos( $plugin['slug'], 'wpforms' ) !== false ) { |
238 | - unset( $upsell[ $k ] ); |
|
238 | + unset( $upsell[$k] ); |
|
239 | 239 | } |
240 | 240 | } |
241 | 241 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | $data_keys = array_keys( $data ); |
7 | 7 | $params = array(); |
8 | 8 | foreach ( $data_keys as $key ) { |
9 | - $params[ 'data-' . $key ] = $data[ $key ]; |
|
9 | + $params['data-' . $key] = $data[$key]; |
|
10 | 10 | } |
11 | 11 | $params['class'] = 'frm_show_upgrade frm_noallow'; |
12 | 12 | $params['href'] = '#'; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | // Remove 'Styling Template' from titles. |
51 | 51 | foreach ( $api_info as $id => $template ) { |
52 | 52 | if ( isset( $template['name'] ) ) { |
53 | - $api_info[ $id ]['name'] = preg_replace( '/(\sStyle|Styling)?(\sTemplate)?$/', '', $template['name'] ); |
|
53 | + $api_info[$id]['name'] = preg_replace( '/(\sStyle|Styling)?(\sTemplate)?$/', '', $template['name'] ); |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'text-color' => $style->post_content['text_color'], |
41 | 41 | 'submit-bg-color' => $style->post_content['submit_bg_color'], |
42 | 42 | ); |
43 | - $index = 0; |
|
43 | + $index = 0; |
|
44 | 44 | foreach ( $colors as $css_var_name => $color ) { |
45 | 45 | if ( 0 !== strpos( $color, 'rgb' ) ) { |
46 | 46 | $color = '#' . $color; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'style' => 'background-color: var(--' . $css_var_name . ')', |
52 | 52 | ); |
53 | 53 | |
54 | - ++$index; |
|
54 | + ++ $index; |
|
55 | 55 | ?> |
56 | 56 | <div <?php FrmAppHelper::array_to_html_params( $circle_params, true ); ?>></div> |
57 | 57 | <?php |