Completed
Pull Request — master (#2513)
by
unknown
46s
created
classes/views/frm-fields/front-end/radio-field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 		if ( isset( $shortcode_atts ) && isset( $shortcode_atts['opt'] ) && $shortcode_atts['opt'] !== $opt_key ) {
25 25
 			continue;
26 26
 		}
27
-		$choice_limit_reached = $field_choices_limit_reached_statuses[ $opt_key ] ?? false;
27
+		$choice_limit_reached = $field_choices_limit_reached_statuses[$opt_key] ?? false;
28 28
 		if ( FrmFieldsHelper::should_hide_field_choice( $choice_limit_reached, $field['form_id'] ) ) {
29 29
 			continue;
30 30
 		}
Please login to merge, or discard this patch.
classes/views/frm-fields/front-end/checkbox-field.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 		if ( isset( $shortcode_atts ) && isset( $shortcode_atts['opt'] ) && $shortcode_atts['opt'] !== $opt_key ) {
26 26
 			continue;
27 27
 		}
28
-		$choice_limit_reached = $field_choices_limit_reached_statuses[ $opt_key ] ?? false;
28
+		$choice_limit_reached = $field_choices_limit_reached_statuses[$opt_key] ?? false;
29 29
 		if ( FrmFieldsHelper::should_hide_field_choice( $choice_limit_reached, $field['form_id'] ) ) {
30 30
 			continue;
31 31
 		}
@@ -107,6 +107,6 @@  discard block
 block discarded – undo
107 107
 
108 108
 		?></div>
109 109
 <?php
110
-		++$option_index;
110
+		++ $option_index;
111 111
 	}//end foreach
112 112
 }//end if
Please login to merge, or discard this patch.
classes/helpers/FrmFieldsHelper.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 			if ( in_array( $type, array( 'data', 'lookup' ), true ) ) {
45 45
 				$values['field_options']['data_type'] = $setting;
46 46
 			} else {
47
-				$values['field_options'][ $setting ] = 1;
47
+				$values['field_options'][$setting] = 1;
48 48
 			}
49 49
 		}
50 50
 
@@ -206,10 +206,10 @@  discard block
 block discarded – undo
206 206
 		}
207 207
 
208 208
 		foreach ( $defaults as $opt => $default ) {
209
-			$values[ $opt ] = $field->field_options[ $opt ] ?? $default;
209
+			$values[$opt] = $field->field_options[$opt] ?? $default;
210 210
 
211 211
 			if ( $check_post ) {
212
-				self::get_posted_field_setting( $opt . '_' . $field->id, $values[ $opt ] );
212
+				self::get_posted_field_setting( $opt . '_' . $field->id, $values[$opt] );
213 213
 			}
214 214
 		}
215 215
 	}
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 			return self::$context_is_safe_to_load_field_options_from_request_data;
227 227
 		}
228 228
 
229
-		$function = function () {
229
+		$function = function() {
230 230
 			if ( ! FrmAppHelper::is_admin_page() ) {
231 231
 				return false;
232 232
 			}
@@ -338,12 +338,12 @@  discard block
 block discarded – undo
338 338
 	 * @return void
339 339
 	 */
340 340
 	private static function get_posted_field_setting( $setting, &$value ) {
341
-		if ( ! isset( $_POST['field_options'][ $setting ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
341
+		if ( ! isset( $_POST['field_options'][$setting] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
342 342
 			return;
343 343
 		}
344 344
 
345 345
 		if ( strpos( $setting, 'html' ) !== false ) {
346
-			$value = wp_unslash( $_POST['field_options'][ $setting ] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing
346
+			$value = wp_unslash( $_POST['field_options'][$setting] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing
347 347
 
348 348
 			// Conditionally strip script tags if the user sending $_POST data is not allowed to use unfiltered HTML.
349 349
 			if ( ! FrmAppHelper::allow_unfiltered_html() ) {
@@ -351,9 +351,9 @@  discard block
 block discarded – undo
351 351
 			}
352 352
 		} elseif ( strpos( $setting, 'format_' ) === 0 ) {
353 353
 			// TODO: Remove stripslashes on output, and use on input only.
354
-			$value = sanitize_text_field( $_POST['field_options'][ $setting ] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.NonceVerification.Missing
354
+			$value = sanitize_text_field( $_POST['field_options'][$setting] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.NonceVerification.Missing
355 355
 		} else {
356
-			$value = wp_unslash( $_POST['field_options'][ $setting ] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing
356
+			$value = wp_unslash( $_POST['field_options'][$setting] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing
357 357
 			FrmAppHelper::sanitize_value( 'wp_kses_post', $value );
358 358
 		}
359 359
 	}
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 		$values['default_value'] = FrmAppHelper::maybe_json_encode( $field->default_value );
437 437
 
438 438
 		foreach ( array( 'name', 'description', 'type', 'field_order', 'field_options', 'required' ) as $col ) {
439
-			$values[ $col ] = $field->{$col};
439
+			$values[$col] = $field->{$col};
440 440
 		}
441 441
 	}
442 442
 
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 		$defaults = apply_filters( 'frm_default_field_validation_messages', $defaults, $field );
483 483
 
484 484
 		$msg = FrmField::get_option( $field, $error );
485
-		$msg = empty( $msg ) ? $defaults[ $error ]['part'] : $msg;
485
+		$msg = empty( $msg ) ? $defaults[$error]['part'] : $msg;
486 486
 		$msg = do_shortcode( $msg );
487 487
 
488 488
 		$msg = self::maybe_replace_substrings_with_field_name( $msg, $error, $field );
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
 			'inside_class' => 'inside',
807 807
 			'dismiss-icon' => true,
808 808
 		);
809
-		$args     = array_merge( $defaults, $args );
809
+		$args = array_merge( $defaults, $args );
810 810
 
811 811
 		include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/inline-modal.php';
812 812
 	}
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
 				continue;
1091 1091
 			}
1092 1092
 
1093
-			$atts = FrmShortcodeHelper::get_shortcode_attribute_array( $shortcodes[3][ $short_key ] );
1093
+			$atts = FrmShortcodeHelper::get_shortcode_attribute_array( $shortcodes[3][$short_key] );
1094 1094
 			$tag  = FrmShortcodeHelper::get_shortcode_tag( $shortcodes, $short_key );
1095 1095
 
1096 1096
 			$atts['entry'] = $entry;
@@ -1100,7 +1100,7 @@  discard block
 block discarded – undo
1100 1100
 			if ( $replace_with !== null ) {
1101 1101
 				$replace_with = self::trigger_shortcode_atts( $replace_with, $atts );
1102 1102
 				self::sanitize_embedded_shortcodes( compact( 'entry' ), $replace_with );
1103
-				$content = str_replace( $shortcodes[0][ $short_key ], $replace_with, $content );
1103
+				$content = str_replace( $shortcodes[0][$short_key], $replace_with, $content );
1104 1104
 			}
1105 1105
 
1106 1106
 			unset( $atts, $replace_with );
@@ -1118,7 +1118,7 @@  discard block
 block discarded – undo
1118 1118
 		$supported_atts = array( 'remove_accents', 'sanitize', 'sanitize_url' );
1119 1119
 		$included_atts  = array_intersect( $supported_atts, array_keys( $atts ) );
1120 1120
 		foreach ( $included_atts as $included_att ) {
1121
-			if ( '0' === $atts[ $included_att ] ) {
1121
+			if ( '0' === $atts[$included_att] ) {
1122 1122
 				// Skip any option that uses 0 so sanitize_url=0 does not encode.
1123 1123
 				continue;
1124 1124
 			}
@@ -1196,8 +1196,8 @@  discard block
 block discarded – undo
1196 1196
 
1197 1197
 		$dynamic_default = array( 'admin_email', 'siteurl', 'frmurl', 'sitename', 'get', 'default-email', 'default-from-email' );
1198 1198
 
1199
-		if ( isset( $shortcode_values[ $atts['tag'] ] ) ) {
1200
-			$replace_with = $shortcode_values[ $atts['tag'] ];
1199
+		if ( isset( $shortcode_values[$atts['tag']] ) ) {
1200
+			$replace_with = $shortcode_values[$atts['tag']];
1201 1201
 		} elseif ( in_array( $atts['tag'], $dynamic_default, true ) ) {
1202 1202
 			$replace_with = self::dynamic_default_values( $atts['tag'], $atts );
1203 1203
 		} elseif ( $clean_tag === 'user_agent' ) {
@@ -1443,8 +1443,8 @@  discard block
 block discarded – undo
1443 1443
 			self::field_types_for_input( $single_input, $field_selection, $field_types );
1444 1444
 		} elseif ( in_array( $type, $multiple_input, true ) ) {
1445 1445
 			self::field_types_for_input( $multiple_input, $field_selection, $field_types );
1446
-		} elseif ( isset( $field_selection[ $type ] ) ) {
1447
-			$field_types[ $type ] = $field_selection[ $type ];
1446
+		} elseif ( isset( $field_selection[$type] ) ) {
1447
+			$field_types[$type] = $field_selection[$type];
1448 1448
 		}
1449 1449
 
1450 1450
 		$field_types = apply_filters( 'frm_switch_field_types', $field_types, compact( 'type', 'field_selection' ) );
@@ -1488,7 +1488,7 @@  discard block
 block discarded – undo
1488 1488
 		foreach ( $inputs as $input ) {
1489 1489
 			// This may not be set if a field type was removed using the frm_available_fields or frm_pro_available_fields filters.
1490 1490
 			if ( array_key_exists( $input, $fields ) ) {
1491
-				$field_types[ $input ] = $fields[ $input ];
1491
+				$field_types[$input] = $fields[$input];
1492 1492
 			}
1493 1493
 			unset( $input );
1494 1494
 		}
@@ -1523,7 +1523,7 @@  discard block
 block discarded – undo
1523 1523
 			'parent'  => false,
1524 1524
 			'pointer' => false,
1525 1525
 		);
1526
-		$args     = wp_parse_args( $args, $defaults );
1526
+		$args = wp_parse_args( $args, $defaults );
1527 1527
 
1528 1528
 		$opt_key   = $args['opt_key'];
1529 1529
 		$field     = $args['field'];
@@ -1539,25 +1539,25 @@  discard block
 block discarded – undo
1539 1539
 
1540 1540
 		// Check posted vals before checking saved values
1541 1541
 		// For fields inside repeating sections - note, don't check if $pointer is true because it will often be zero
1542
-		if ( $parent && isset( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
1542
+		if ( $parent && isset( $_POST['item_meta'][$parent][$pointer]['other'][$field['id']] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
1543 1543
 			if ( FrmField::is_field_with_multiple_values( $field ) ) {
1544 1544
 				// phpcs:ignore WordPress.Security.NonceVerification.Missing
1545
-				$other_val = isset( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ][ $opt_key ] ) ? sanitize_text_field( wp_unslash( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ][ $opt_key ] ) ) : '';
1545
+				$other_val = isset( $_POST['item_meta'][$parent][$pointer]['other'][$field['id']][$opt_key] ) ? sanitize_text_field( wp_unslash( $_POST['item_meta'][$parent][$pointer]['other'][$field['id']][$opt_key] ) ) : '';
1546 1546
 			} else {
1547
-				$other_val = sanitize_text_field( wp_unslash( $_POST['item_meta'][ $parent ][ $pointer ]['other'][ $field['id'] ] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
1547
+				$other_val = sanitize_text_field( wp_unslash( $_POST['item_meta'][$parent][$pointer]['other'][$field['id']] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
1548 1548
 			}
1549 1549
 
1550 1550
 			return $other_val;
1551 1551
 		}
1552 1552
 
1553
-		if ( isset( $field['id'] ) && isset( $_POST['item_meta']['other'][ $field['id'] ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
1553
+		if ( isset( $field['id'] ) && isset( $_POST['item_meta']['other'][$field['id']] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
1554 1554
 			// For normal fields
1555 1555
 
1556 1556
 			if ( FrmField::is_field_with_multiple_values( $field ) ) {
1557 1557
 				// phpcs:ignore WordPress.Security.NonceVerification.Missing
1558
-				$other_val = isset( $_POST['item_meta']['other'][ $field['id'] ][ $opt_key ] ) ? sanitize_text_field( wp_unslash( $_POST['item_meta']['other'][ $field['id'] ][ $opt_key ] ) ) : '';
1558
+				$other_val = isset( $_POST['item_meta']['other'][$field['id']][$opt_key] ) ? sanitize_text_field( wp_unslash( $_POST['item_meta']['other'][$field['id']][$opt_key] ) ) : '';
1559 1559
 			} else {
1560
-				$other_val = sanitize_text_field( wp_unslash( $_POST['item_meta']['other'][ $field['id'] ] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
1560
+				$other_val = sanitize_text_field( wp_unslash( $_POST['item_meta']['other'][$field['id']] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
1561 1561
 			}
1562 1562
 
1563 1563
 			return $other_val;
@@ -1567,8 +1567,8 @@  discard block
 block discarded – undo
1567 1567
 		if ( $field['type'] === 'checkbox' && is_array( $field['value'] ) ) {
1568 1568
 			// Check if there is an "other" val in saved value and make sure the
1569 1569
 			// "other" val is not equal to the Other checkbox option
1570
-			if ( isset( $field['value'][ $opt_key ] ) && $field['options'][ $opt_key ] != $field['value'][ $opt_key ] ) {
1571
-				$other_val = $field['value'][ $opt_key ];
1570
+			if ( isset( $field['value'][$opt_key] ) && $field['options'][$opt_key] != $field['value'][$opt_key] ) {
1571
+				$other_val = $field['value'][$opt_key];
1572 1572
 			}
1573 1573
 		} else {
1574 1574
 			/**
@@ -1580,8 +1580,8 @@  discard block
 block discarded – undo
1580 1580
 				// Multi-select dropdowns - key is not preserved
1581 1581
 				if ( is_array( $field['value'] ) ) {
1582 1582
 					$o_key = array_search( $temp_val, $field['value'] );
1583
-					if ( isset( $field['value'][ $o_key ] ) ) {
1584
-						unset( $field['value'][ $o_key ], $o_key );
1583
+					if ( isset( $field['value'][$o_key] ) ) {
1584
+						unset( $field['value'][$o_key], $o_key );
1585 1585
 					}
1586 1586
 				} elseif ( $temp_val == $field['value'] ) {
1587 1587
 					// For radio and regular dropdowns
@@ -1806,11 +1806,11 @@  discard block
 block discarded – undo
1806 1806
 			foreach ( $val as $k => $v ) {
1807 1807
 				if ( is_string( $v ) ) {
1808 1808
 					if ( 'custom_html' === $k ) {
1809
-						$val[ $k ] = self::switch_ids_except_strings( $replace, $replace_with, array( '[if description]', '[description]', '[/if description]' ), $v );
1809
+						$val[$k] = self::switch_ids_except_strings( $replace, $replace_with, array( '[if description]', '[description]', '[/if description]' ), $v );
1810 1810
 						unset( $k, $v );
1811 1811
 						continue;
1812 1812
 					}
1813
-					$val[ $k ] = str_replace( $replace, $replace_with, $v );
1813
+					$val[$k] = str_replace( $replace, $replace_with, $v );
1814 1814
 					unset( $k, $v );
1815 1815
 				}
1816 1816
 			}
@@ -1839,8 +1839,8 @@  discard block
 block discarded – undo
1839 1839
 			if ( false === $index ) {
1840 1840
 				continue;
1841 1841
 			}
1842
-			unset( $replace[ $index ] );
1843
-			unset( $replace_with[ $index ] );
1842
+			unset( $replace[$index] );
1843
+			unset( $replace_with[$index] );
1844 1844
 		}
1845 1845
 		$value = str_replace( $replace, $replace_with, $value );
1846 1846
 		return $value;
@@ -2198,7 +2198,7 @@  discard block
 block discarded – undo
2198 2198
 			$countries['class'] = 'frm-countries-opts';
2199 2199
 		}
2200 2200
 
2201
-		$prepop[ __( 'Countries', 'formidable' ) ] = $countries;
2201
+		$prepop[__( 'Countries', 'formidable' )] = $countries;
2202 2202
 
2203 2203
 		// State abv.
2204 2204
 		$states    = self::get_us_states();
@@ -2208,7 +2208,7 @@  discard block
 block discarded – undo
2208 2208
 			$state_abv['class'] = 'frm-state-abv-opts';
2209 2209
 		}
2210 2210
 
2211
-		$prepop[ __( 'U.S. State Abbreviations', 'formidable' ) ] = $state_abv;
2211
+		$prepop[__( 'U.S. State Abbreviations', 'formidable' )] = $state_abv;
2212 2212
 
2213 2213
 		// States.
2214 2214
 		$states = array_values( $states );
@@ -2217,7 +2217,7 @@  discard block
 block discarded – undo
2217 2217
 			$states['class'] = 'frm-states-opts';
2218 2218
 		}
2219 2219
 
2220
-		$prepop[ __( 'U.S. States', 'formidable' ) ] = $states;
2220
+		$prepop[__( 'U.S. States', 'formidable' )] = $states;
2221 2221
 		unset( $state_abv, $states );
2222 2222
 
2223 2223
 		// Age.
@@ -2235,7 +2235,7 @@  discard block
 block discarded – undo
2235 2235
 			$ages['class'] = 'frm-age-opts';
2236 2236
 		}
2237 2237
 
2238
-		$prepop[ __( 'Age', 'formidable' ) ] = $ages;
2238
+		$prepop[__( 'Age', 'formidable' )] = $ages;
2239 2239
 
2240 2240
 		// Satisfaction.
2241 2241
 		$satisfaction = array(
@@ -2250,7 +2250,7 @@  discard block
 block discarded – undo
2250 2250
 			$satisfaction['class'] = 'frm-satisfaction-opts';
2251 2251
 		}
2252 2252
 
2253
-		$prepop[ __( 'Satisfaction', 'formidable' ) ] = $satisfaction;
2253
+		$prepop[__( 'Satisfaction', 'formidable' )] = $satisfaction;
2254 2254
 
2255 2255
 		// Importance.
2256 2256
 		$importance = array(
@@ -2265,7 +2265,7 @@  discard block
 block discarded – undo
2265 2265
 			$importance['class'] = 'frm-importance-opts';
2266 2266
 		}
2267 2267
 
2268
-		$prepop[ __( 'Importance', 'formidable' ) ] = $importance;
2268
+		$prepop[__( 'Importance', 'formidable' )] = $importance;
2269 2269
 
2270 2270
 		// Agreement.
2271 2271
 		$agreement = array(
@@ -2280,7 +2280,7 @@  discard block
 block discarded – undo
2280 2280
 			$agreement['class'] = 'frm-agreement-opts';
2281 2281
 		}
2282 2282
 
2283
-		$prepop[ __( 'Agreement', 'formidable' ) ] = $agreement;
2283
+		$prepop[__( 'Agreement', 'formidable' )] = $agreement;
2284 2284
 
2285 2285
 		// Likely.
2286 2286
 		$likely = array(
@@ -2295,7 +2295,7 @@  discard block
 block discarded – undo
2295 2295
 			$likely['class'] = 'frm-likely-opts';
2296 2296
 		}
2297 2297
 
2298
-		$prepop[ __( 'Likely', 'formidable' ) ] = $likely;
2298
+		$prepop[__( 'Likely', 'formidable' )] = $likely;
2299 2299
 
2300 2300
 		$prepop = apply_filters( 'frm_bulk_field_choices', $prepop );
2301 2301
 	}
@@ -2524,16 +2524,16 @@  discard block
 block discarded – undo
2524 2524
 	 */
2525 2525
 	private static function fill_image_setting_options( $options, &$args ) {
2526 2526
 		foreach ( $options as $key => $option ) {
2527
-			$args['options'][ $key ] = $option;
2527
+			$args['options'][$key] = $option;
2528 2528
 
2529 2529
 			if ( ! empty( $option['addon'] ) ) {
2530
-				$args['options'][ $key ]['custom_attrs'] = self::fill_image_setting_addon_link( $option );
2530
+				$args['options'][$key]['custom_attrs'] = self::fill_image_setting_addon_link( $option );
2531 2531
 			}
2532 2532
 
2533
-			unset( $args['options'][ $key ]['addon'] );
2533
+			unset( $args['options'][$key]['addon'] );
2534 2534
 			$fill = array( 'upgrade', 'message', 'content' );
2535 2535
 			foreach ( $fill as $f ) {
2536
-				unset( $args['options'][ $key ][ $f ], $f );
2536
+				unset( $args['options'][$key][$f], $f );
2537 2537
 			}
2538 2538
 		}
2539 2539
 	}
@@ -2556,8 +2556,8 @@  discard block
 block discarded – undo
2556 2556
 
2557 2557
 		$fill = array( 'upgrade', 'message', 'content' );
2558 2558
 		foreach ( $fill as $f ) {
2559
-			if ( isset( $option[ $f ] ) ) {
2560
-				$custom_attrs[ 'data-' . $f ] = $option[ $f ];
2559
+			if ( isset( $option[$f] ) ) {
2560
+				$custom_attrs['data-' . $f] = $option[$f];
2561 2561
 			}
2562 2562
 		}
2563 2563
 
@@ -2623,7 +2623,7 @@  discard block
 block discarded – undo
2623 2623
 
2624 2624
 		return array_filter(
2625 2625
 			$rows,
2626
-			function ( $row ) {
2626
+			function( $row ) {
2627 2627
 				FrmAppHelper::unserialize_or_decode( $row->field_options );
2628 2628
 				return is_array( $row->field_options ) && ! empty( $row->field_options['draft'] );
2629 2629
 			}
@@ -2688,7 +2688,7 @@  discard block
 block discarded – undo
2688 2688
 		if ( empty( $attributes['data-fid'] ) ) {
2689 2689
 			unset( $data['plugin-status'] );
2690 2690
 			foreach ( $data as $key => $value ) {
2691
-				$attributes[ 'data-' . $key ] = $value;
2691
+				$attributes['data-' . $key] = $value;
2692 2692
 			}
2693 2693
 		}
2694 2694
 
Please login to merge, or discard this patch.
classes/views/frm-fields/front-end/dropdown-field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	}
53 53
 
54 54
 	foreach ( $field['options'] as $opt_key => $opt ) {
55
-		$choice_limit_reached = $field_choices_limit_reached_statuses[ $opt_key ] ?? false;
55
+		$choice_limit_reached = $field_choices_limit_reached_statuses[$opt_key] ?? false;
56 56
 		if ( FrmFieldsHelper::should_hide_field_choice( $choice_limit_reached, $field['form_id'] ) ) {
57 57
 			continue;
58 58
 		}
Please login to merge, or discard this patch.