@@ -84,21 +84,21 @@ discard block |
||
84 | 84 | $default_settings = $this->get_defaults(); |
85 | 85 | |
86 | 86 | foreach ( $default_settings as $setting => $default ) { |
87 | - if ( ! isset( $new_instance['post_content'][ $setting ] ) ) { |
|
88 | - $new_instance['post_content'][ $setting ] = $default; |
|
87 | + if ( ! isset( $new_instance['post_content'][$setting] ) ) { |
|
88 | + $new_instance['post_content'][$setting] = $default; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | if ( $this->is_color( $setting ) ) { |
92 | - $color_val = $new_instance['post_content'][ $setting ]; |
|
92 | + $color_val = $new_instance['post_content'][$setting]; |
|
93 | 93 | if ( $color_val !== '' && 0 === strpos( $color_val, 'rgb' ) ) { |
94 | 94 | // maybe sanitize if invalid rgba value is entered |
95 | 95 | $this->maybe_sanitize_rgba_value( $color_val ); |
96 | 96 | } |
97 | - $new_instance['post_content'][ $setting ] = str_replace( '#', '', $color_val ); |
|
98 | - } elseif ( in_array( $setting, array( 'submit_style', 'important_style', 'auto_width' ), true ) && ! isset( $new_instance['post_content'][ $setting ] ) ) { |
|
99 | - $new_instance['post_content'][ $setting ] = 0; |
|
97 | + $new_instance['post_content'][$setting] = str_replace( '#', '', $color_val ); |
|
98 | + } elseif ( in_array( $setting, array( 'submit_style', 'important_style', 'auto_width' ), true ) && ! isset( $new_instance['post_content'][$setting] ) ) { |
|
99 | + $new_instance['post_content'][$setting] = 0; |
|
100 | 100 | } elseif ( $setting === 'font' ) { |
101 | - $new_instance['post_content'][ $setting ] = $this->force_balanced_quotation( $new_instance['post_content'][ $setting ] ); |
|
101 | + $new_instance['post_content'][$setting] = $this->force_balanced_quotation( $new_instance['post_content'][$setting] ); |
|
102 | 102 | } |
103 | 103 | } |
104 | 104 | |
@@ -211,10 +211,10 @@ discard block |
||
211 | 211 | $valid_keys = array_keys( $defaults ); |
212 | 212 | $sanitized_settings = array(); |
213 | 213 | foreach ( $valid_keys as $key ) { |
214 | - if ( isset( $settings[ $key ] ) ) { |
|
215 | - $sanitized_settings[ $key ] = sanitize_textarea_field( $settings[ $key ] ); |
|
214 | + if ( isset( $settings[$key] ) ) { |
|
215 | + $sanitized_settings[$key] = sanitize_textarea_field( $settings[$key] ); |
|
216 | 216 | } else { |
217 | - $sanitized_settings[ $key ] = $defaults[ $key ]; |
|
217 | + $sanitized_settings[$key] = $defaults[$key]; |
|
218 | 218 | } |
219 | 219 | } |
220 | 220 | return $sanitized_settings; |
@@ -381,13 +381,13 @@ discard block |
||
381 | 381 | $style->post_content = $this->override_defaults( $style->post_content ); |
382 | 382 | $style->post_content = wp_parse_args( $style->post_content, $default_values ); |
383 | 383 | |
384 | - $styles[ $style->ID ] = $style; |
|
384 | + $styles[$style->ID] = $style; |
|
385 | 385 | } |
386 | 386 | |
387 | 387 | if ( ! $default_style ) { |
388 | 388 | $default_style = reset( $styles ); |
389 | 389 | |
390 | - $styles[ $default_style->ID ]->menu_order = 1; |
|
390 | + $styles[$default_style->ID]->menu_order = 1; |
|
391 | 391 | } |
392 | 392 | |
393 | 393 | return $styles; |
@@ -67,7 +67,8 @@ |
||
67 | 67 | $new_instance = (array) $new_instance; |
68 | 68 | $this->id = $new_instance['ID']; |
69 | 69 | |
70 | - if ( $id != $this->id || ! $_POST || ! isset( $_POST['frm_style_setting'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
70 | + if ( $id != $this->id || ! $_POST || ! isset( $_POST['frm_style_setting'] ) ) { |
|
71 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
71 | 72 | // Don't continue if not saving this style. |
72 | 73 | continue; |
73 | 74 | } |
@@ -285,7 +285,8 @@ |
||
285 | 285 | public static function get_settings_for_output( $style ) { |
286 | 286 | if ( self::previewing_style() ) { |
287 | 287 | $frm_style = new FrmStyle(); |
288 | - if ( isset( $_POST['frm_style_setting'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
288 | + if ( isset( $_POST['frm_style_setting'] ) ) { |
|
289 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing |
|
289 | 290 | |
290 | 291 | // Sanitizing is done later. |
291 | 292 | $posted = wp_unslash( $_POST['frm_style_setting'] ); //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | '-' => 'down', |
136 | 136 | '+' => 'up', |
137 | 137 | ); |
138 | - $class = 'frm_arrow' . $arrow[ $icon ]; |
|
138 | + $class = 'frm_arrow' . $arrow[$icon]; |
|
139 | 139 | } else { |
140 | 140 | //frm_minus1_icon |
141 | 141 | $key = str_replace( 'p', '', $key ); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | '-' => 'minus', |
144 | 144 | '+' => 'plus', |
145 | 145 | ); |
146 | - $class = 'frm_' . $plus[ $icon ]; |
|
146 | + $class = 'frm_' . $plus[$icon]; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | if ( $key ) { |
@@ -169,8 +169,8 @@ discard block |
||
169 | 169 | ?> |
170 | 170 | <div class="btn-group" id="frm_<?php echo esc_attr( $name ); ?>_select"> |
171 | 171 | <button class="multiselect dropdown-toggle btn btn-default" data-toggle="dropdown" type="button"> |
172 | - <?php FrmAppHelper::icon_by_class( 'frmfont ' . self::icon_key_to_class( $style->post_content[ $name ], '+', $type ) ); ?> |
|
173 | - <?php FrmAppHelper::icon_by_class( 'frmfont ' . self::icon_key_to_class( $style->post_content[ $name ], '-', $type ) ); ?> |
|
172 | + <?php FrmAppHelper::icon_by_class( 'frmfont ' . self::icon_key_to_class( $style->post_content[$name], '+', $type ) ); ?> |
|
173 | + <?php FrmAppHelper::icon_by_class( 'frmfont ' . self::icon_key_to_class( $style->post_content[$name], '-', $type ) ); ?> |
|
174 | 174 | <b class="caret"></b> |
175 | 175 | </button> |
176 | 176 | <ul class="multiselect-container frm-dropdown-menu"> |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | <li <?php echo ( $style->post_content['collapse_icon'] == $key ) ? 'class="active"' : ''; ?>> |
179 | 179 | <a href="javascript:void(0);"> |
180 | 180 | <label> |
181 | - <input type="radio" value="<?php echo esc_attr( $key ); ?>" name="<?php echo esc_attr( $frm_style->get_field_name( $name ) ); ?>" <?php checked( $style->post_content[ $name ], $key ); ?> /> |
|
181 | + <input type="radio" value="<?php echo esc_attr( $key ); ?>" name="<?php echo esc_attr( $frm_style->get_field_name( $name ) ); ?>" <?php checked( $style->post_content[$name], $key ); ?> /> |
|
182 | 182 | <span> |
183 | 183 | <?php |
184 | 184 | FrmAppHelper::icon_by_class( 'frmfont ' . self::icon_key_to_class( $key, '+', $type ) ); |
@@ -271,15 +271,15 @@ discard block |
||
271 | 271 | $vars = array_diff( $vars, $remove ); |
272 | 272 | |
273 | 273 | foreach ( $vars as $var ) { |
274 | - if ( ! isset( $settings[ $var ] ) ) { |
|
274 | + if ( ! isset( $settings[$var] ) ) { |
|
275 | 275 | continue; |
276 | 276 | } |
277 | - if ( ! isset( $defaults[ $var ] ) ) { |
|
278 | - $defaults[ $var ] = ''; |
|
277 | + if ( ! isset( $defaults[$var] ) ) { |
|
278 | + $defaults[$var] = ''; |
|
279 | 279 | } |
280 | - $show = empty( $defaults ) || ( $settings[ $var ] !== '' && $settings[ $var ] !== $defaults[ $var ] ); |
|
280 | + $show = empty( $defaults ) || ( $settings[$var] !== '' && $settings[$var] !== $defaults[$var] ); |
|
281 | 281 | if ( $show ) { |
282 | - echo '--' . esc_html( str_replace( '_', '-', $var ) ) . ':' . ( $var === 'font' ? FrmAppHelper::kses( $settings[ $var ] ) : esc_html( $settings[ $var ] ) ) . ';'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
|
282 | + echo '--' . esc_html( str_replace( '_', '-', $var ) ) . ':' . ( $var === 'font' ? FrmAppHelper::kses( $settings[$var] ) : esc_html( $settings[$var] ) ) . ';'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
|
283 | 283 | } |
284 | 284 | } |
285 | 285 | } |
@@ -328,8 +328,8 @@ discard block |
||
328 | 328 | |
329 | 329 | $checkbox_opts = array( 'important_style', 'auto_width', 'submit_style', 'collapse_icon', 'center_form' ); |
330 | 330 | foreach ( $checkbox_opts as $opt ) { |
331 | - if ( ! isset( $settings[ $opt ] ) ) { |
|
332 | - $settings[ $opt ] = 0; |
|
331 | + if ( ! isset( $settings[$opt] ) ) { |
|
332 | + $settings[$opt] = 0; |
|
333 | 333 | } |
334 | 334 | } |
335 | 335 | |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | $css = ''; |
358 | 358 | } |
359 | 359 | foreach ( $opts as $opt ) { |
360 | - self::get_color_output( $css, $settings[ $opt ] ); |
|
360 | + self::get_color_output( $css, $settings[$opt] ); |
|
361 | 361 | } |
362 | 362 | } |
363 | 363 | } |
@@ -168,7 +168,7 @@ |
||
168 | 168 | return; |
169 | 169 | } |
170 | 170 | |
171 | - unset( $dependencies[ $index ] ); |
|
171 | + unset( $dependencies[$index] ); |
|
172 | 172 | $dependencies = array_values( $dependencies ); |
173 | 173 | |
174 | 174 | $styles->registered['wp-admin']->deps = $dependencies; |
@@ -349,12 +349,12 @@ |
||
349 | 349 | array_walk( |
350 | 350 | $styles, |
351 | 351 | /** |
352 | - * Echo a style card for a single style in the $styles array. |
|
353 | - * |
|
354 | - * @param WP_Post $style |
|
355 | - * @param int $count Used for pagination. |
|
356 | - * @return void |
|
357 | - */ |
|
352 | + * Echo a style card for a single style in the $styles array. |
|
353 | + * |
|
354 | + * @param WP_Post $style |
|
355 | + * @param int $count Used for pagination. |
|
356 | + * @return void |
|
357 | + */ |
|
358 | 358 | function( $style ) use ( &$count ) { |
359 | 359 | $hidden = $count > ( self::PAGE_SIZE - 1 ); |
360 | 360 | $this->echo_style_card( $style, $hidden ); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * @param bool $hidden |
81 | 81 | * @return array |
82 | 82 | */ |
83 | - private function get_params_for_style_card( $style, $hidden = false ) { |
|
83 | + private function get_params_for_style_card( $style, $hidden = false ) { |
|
84 | 84 | if ( ! empty( $style->post_content['position'] ) ) { |
85 | 85 | $label_position = $style->post_content['position']; |
86 | 86 | } else { |
@@ -130,11 +130,11 @@ discard block |
||
130 | 130 | private static function has_dark_background( $style ) { |
131 | 131 | $key = 'fieldset_bg_color'; |
132 | 132 | |
133 | - if ( empty( $style->post_content[ $key ] ) ) { |
|
133 | + if ( empty( $style->post_content[$key] ) ) { |
|
134 | 134 | return false; |
135 | 135 | } |
136 | 136 | |
137 | - $color = $style->post_content[ $key ]; |
|
137 | + $color = $style->post_content[$key]; |
|
138 | 138 | |
139 | 139 | if ( 0 === strpos( $color, 'rgba' ) ) { |
140 | 140 | preg_match_all( "/([\\d.]+)/", $color, $matches ); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | ), |
205 | 205 | '/style-templates/' . $style['slug'] |
206 | 206 | ); |
207 | - $params['data-requires'] = FrmFormsHelper::get_plan_required( $style ); |
|
207 | + $params['data-requires'] = FrmFormsHelper::get_plan_required( $style ); |
|
208 | 208 | return $params; |
209 | 209 | }; |
210 | 210 | } else { |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | continue; |
262 | 262 | } |
263 | 263 | |
264 | - $value = $style->post_content[ $key ]; |
|
264 | + $value = $style->post_content[$key]; |
|
265 | 265 | |
266 | 266 | if ( in_array( $key, $color_settings, true ) && $value && '#' !== $value[0] && false === strpos( $value, 'rgb' ) ) { |
267 | 267 | $value = '#' . $value; |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | function( $style ) use ( &$count ) { |
409 | 409 | $hidden = $count > ( self::PAGE_SIZE - 1 ); |
410 | 410 | $this->echo_style_card( $style, $hidden ); |
411 | - ++$count; |
|
411 | + ++ $count; |
|
412 | 412 | } |
413 | 413 | ); |
414 | 414 |
@@ -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 |
@@ -132,8 +132,8 @@ discard block |
||
132 | 132 | $field_val = ''; |
133 | 133 | if ( is_object( $this->field ) ) { |
134 | 134 | $field_val = $this->field->{$column}; |
135 | - } elseif ( is_array( $this->field ) && isset( $this->field[ $column ] ) ) { |
|
136 | - $field_val = $this->field[ $column ]; |
|
135 | + } elseif ( is_array( $this->field ) && isset( $this->field[$column] ) ) { |
|
136 | + $field_val = $this->field[$column]; |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | return $field_val; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | if ( is_object( $this->field ) ) { |
148 | 148 | $this->field->{$column} = $value; |
149 | 149 | } elseif ( is_array( $this->field ) ) { |
150 | - $this->field[ $column ] = $value; |
|
150 | + $this->field[$column] = $value; |
|
151 | 151 | } |
152 | 152 | } |
153 | 153 | |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | printf( |
528 | 528 | /* translators: %s: Field type */ |
529 | 529 | esc_html__( '%s Options', 'formidable' ), |
530 | - esc_html( $all_field_types[ $args['display']['type'] ]['name'] ) |
|
530 | + esc_html( $all_field_types[$args['display']['type']]['name'] ) |
|
531 | 531 | ); |
532 | 532 | FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon', array( 'aria-hidden' => 'true' ) ); |
533 | 533 | ?> |
@@ -650,8 +650,8 @@ discard block |
||
650 | 650 | $fields = FrmField::field_selection(); |
651 | 651 | $fields = array_merge( $fields, FrmField::pro_field_selection() ); |
652 | 652 | |
653 | - if ( isset( $fields[ $this->type ] ) ) { |
|
654 | - $name = is_array( $fields[ $this->type ] ) ? $fields[ $this->type ]['name'] : $fields[ $this->type ]; |
|
653 | + if ( isset( $fields[$this->type] ) ) { |
|
654 | + $name = is_array( $fields[$this->type] ) ? $fields[$this->type]['name'] : $fields[$this->type]; |
|
655 | 655 | } |
656 | 656 | |
657 | 657 | return $name; |
@@ -662,7 +662,7 @@ discard block |
||
662 | 662 | } |
663 | 663 | |
664 | 664 | public function get_default_field_options() { |
665 | - $opts = array( |
|
665 | + $opts = array( |
|
666 | 666 | 'size' => '', |
667 | 667 | 'max' => '', |
668 | 668 | 'label' => '', |
@@ -1004,7 +1004,7 @@ discard block |
||
1004 | 1004 | } |
1005 | 1005 | } else { |
1006 | 1006 | $args['save_array'] = $this->is_readonly_array(); |
1007 | - $hidden .= $this->show_single_hidden( $selected_value, $args ); |
|
1007 | + $hidden .= $this->show_single_hidden( $selected_value, $args ); |
|
1008 | 1008 | } |
1009 | 1009 | |
1010 | 1010 | return $hidden; |
@@ -1013,7 +1013,7 @@ discard block |
||
1013 | 1013 | protected function show_single_hidden( $selected, $args ) { |
1014 | 1014 | if ( $args['save_array'] ) { |
1015 | 1015 | $args['field_name'] .= '[]'; |
1016 | - $id = ''; |
|
1016 | + $id = ''; |
|
1017 | 1017 | } else { |
1018 | 1018 | $id = ' id="' . esc_attr( $args['html_id'] ) . '"'; |
1019 | 1019 | } |
@@ -1029,8 +1029,8 @@ discard block |
||
1029 | 1029 | $selected = $values['field_value']; |
1030 | 1030 | |
1031 | 1031 | if ( isset( $values['combo_name'] ) ) { |
1032 | - $options = $options[ $values['combo_name'] ]; |
|
1033 | - $selected = ( is_array( $selected ) && isset( $selected[ $values['combo_name'] ] ) ) ? $selected[ $values['combo_name'] ] : ''; |
|
1032 | + $options = $options[$values['combo_name']]; |
|
1033 | + $selected = ( is_array( $selected ) && isset( $selected[$values['combo_name']] ) ) ? $selected[$values['combo_name']] : ''; |
|
1034 | 1034 | } |
1035 | 1035 | |
1036 | 1036 | $input = $this->select_tag( $values ); |
@@ -1081,7 +1081,7 @@ discard block |
||
1081 | 1081 | } |
1082 | 1082 | |
1083 | 1083 | protected function fill_display_field_values( $args = array() ) { |
1084 | - $defaults = array( |
|
1084 | + $defaults = array( |
|
1085 | 1085 | 'field_name' => 'item_meta[' . $this->get_field_column( 'id' ) . ']', |
1086 | 1086 | 'field_id' => $this->get_field_column( 'id' ), |
1087 | 1087 | 'field_plus_id' => '', |
@@ -1134,7 +1134,7 @@ discard block |
||
1134 | 1134 | } |
1135 | 1135 | } |
1136 | 1136 | |
1137 | - if ( isset( $args['errors'][ 'field' . $args['field_id'] ] ) && ! $custom_error_fields ) { |
|
1137 | + if ( isset( $args['errors']['field' . $args['field_id']] ) && ! $custom_error_fields ) { |
|
1138 | 1138 | if ( $error_comes_first ) { |
1139 | 1139 | array_unshift( $describedby, 'frm_error_' . $args['html_id'] ); |
1140 | 1140 | } else { |
@@ -1213,11 +1213,11 @@ discard block |
||
1213 | 1213 | |
1214 | 1214 | $field_id = $this->get_field_column( 'id' ); |
1215 | 1215 | if ( ! array_key_exists( $field_id, $frm_validated_unique_values ) ) { |
1216 | - $frm_validated_unique_values[ $field_id ] = array(); |
|
1216 | + $frm_validated_unique_values[$field_id] = array(); |
|
1217 | 1217 | return false; |
1218 | 1218 | } |
1219 | 1219 | |
1220 | - $already_validated_this_value = in_array( $value, $frm_validated_unique_values[ $field_id ], true ); |
|
1220 | + $already_validated_this_value = in_array( $value, $frm_validated_unique_values[$field_id], true ); |
|
1221 | 1221 | return $already_validated_this_value; |
1222 | 1222 | } |
1223 | 1223 | |
@@ -1242,7 +1242,7 @@ discard block |
||
1242 | 1242 | private function value_validated_as_unique( $value ) { |
1243 | 1243 | global $frm_validated_unique_values; |
1244 | 1244 | $field_id = $this->get_field_column( 'id' ); |
1245 | - $frm_validated_unique_values[ $field_id ][] = $value; |
|
1245 | + $frm_validated_unique_values[$field_id][] = $value; |
|
1246 | 1246 | } |
1247 | 1247 | |
1248 | 1248 | public function get_value_to_save( $value, $atts ) { |
@@ -1274,8 +1274,8 @@ discard block |
||
1274 | 1274 | $value = $this->prepare_display_value( $value, $atts ); |
1275 | 1275 | |
1276 | 1276 | if ( is_array( $value ) ) { |
1277 | - if ( isset( $atts['show'] ) && $atts['show'] && isset( $value[ $atts['show'] ] ) ) { |
|
1278 | - $value = $value[ $atts['show'] ]; |
|
1277 | + if ( isset( $atts['show'] ) && $atts['show'] && isset( $value[$atts['show']] ) ) { |
|
1278 | + $value = $value[$atts['show']]; |
|
1279 | 1279 | } elseif ( ! isset( $atts['return_array'] ) || ! $atts['return_array'] ) { |
1280 | 1280 | $sep = isset( $atts['sep'] ) ? $atts['sep'] : ', '; |
1281 | 1281 | $value = implode( $sep, $value ); |
@@ -1344,8 +1344,8 @@ discard block |
||
1344 | 1344 | $saved_entries = $atts['ids']; |
1345 | 1345 | $new_value = array(); |
1346 | 1346 | foreach ( (array) $value as $old_child_id ) { |
1347 | - if ( isset( $saved_entries[ $old_child_id ] ) ) { |
|
1348 | - $new_value[] = $saved_entries[ $old_child_id ]; |
|
1347 | + if ( isset( $saved_entries[$old_child_id] ) ) { |
|
1348 | + $new_value[] = $saved_entries[$old_child_id]; |
|
1349 | 1349 | } |
1350 | 1350 | } |
1351 | 1351 |
@@ -26,7 +26,8 @@ |
||
26 | 26 | public static function toggle( $id, $name, $args ) { |
27 | 27 | wp_enqueue_script( 'formidable_settings' ); |
28 | 28 | return FrmAppHelper::clip( |
29 | - function() use ( $id, $name, $args ) { // @phpstan-ignore-line |
|
29 | + function() use ( $id, $name, $args ) { |
|
30 | +// @phpstan-ignore-line |
|
30 | 31 | require FrmAppHelper::plugin_path() . '/classes/views/shared/toggle.php'; |
31 | 32 | }, |
32 | 33 | isset( $args['echo'] ) ? $args['echo'] : false |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | 'text-color' => $style->post_content['text_color'], |
40 | 40 | 'submit-bg-color' => $style->post_content['submit_bg_color'], |
41 | 41 | ); |
42 | - $index = 0; |
|
43 | - foreach( $colors as $css_var_name => $color ) { |
|
42 | + $index = 0; |
|
43 | + foreach ( $colors as $css_var_name => $color ) { |
|
44 | 44 | if ( 0 !== strpos( $color, 'rgb' ) ) { |
45 | 45 | $color = '#' . $color; |
46 | 46 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'style' => 'background-color: var(--' . $css_var_name . ')', |
51 | 51 | ); |
52 | 52 | |
53 | - ++$index; |
|
53 | + ++ $index; |
|
54 | 54 | ?> |
55 | 55 | <div <?php FrmAppHelper::array_to_html_params( $circle_params, true ); ?>></div> |
56 | 56 | <?php |