Completed
Pull Request — master (#2513)
by
unknown
47s
created
classes/views/frm-fields/back-end/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
 						);
198 198
 
199 199
 						foreach ( $default_value_type['data'] as $data_key => $data_value ) {
200
-							$toggle_args['input_html'][ 'data-' . $data_key ] = $data_value . ( substr( $data_value, -1 ) === '-' ? $field['id'] : '' );
200
+							$toggle_args['input_html']['data-' . $data_key] = $data_value . ( substr( $data_value, -1 ) === '-' ? $field['id'] : '' );
201 201
 						}
202 202
 
203 203
 						?>
Please login to merge, or discard this patch.
classes/controllers/FrmSettingsController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 				$section['function'] = $original;
174 174
 			}
175 175
 
176
-			$sections[ $key ] = $section;
176
+			$sections[$key] = $section;
177 177
 		}//end foreach
178 178
 
179 179
 		return $sections;
@@ -193,8 +193,8 @@  discard block
 block discarded – undo
193 193
 
194 194
 		foreach ( $sections as $key => $section ) {
195 195
 			if ( in_array( $key, $payment_section_keys, true ) ) {
196
-				self::$removed_payments_sections[ $key ] = $section;
197
-				unset( $sections[ $key ] );
196
+				self::$removed_payments_sections[$key] = $section;
197
+				unset( $sections[$key] );
198 198
 			}
199 199
 		}
200 200
 
@@ -226,11 +226,11 @@  discard block
 block discarded – undo
226 226
 
227 227
 		$section  = FrmAppHelper::get_post_param( 'tab', '', 'sanitize_text_field' );
228 228
 		$sections = self::get_settings_tabs();
229
-		if ( ! isset( $sections[ $section ] ) ) {
229
+		if ( ! isset( $sections[$section] ) ) {
230 230
 			wp_die();
231 231
 		}
232 232
 
233
-		$section = $sections[ $section ];
233
+		$section = $sections[$section];
234 234
 
235 235
 		if ( isset( $section['class'] ) ) {
236 236
 			call_user_func( array( $section['class'], $section['function'] ) );
Please login to merge, or discard this patch.
classes/views/frm-fields/back-end/html-content.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 		<?php esc_html_e( 'Content', 'formidable' ); ?>
9 9
 	</label>
10 10
 	<?php
11
-	$e_args  = array(
11
+	$e_args = array(
12 12
 		'textarea_name' => 'field_options[description_' . absint( $field['id'] ) . ']',
13 13
 		'textarea_rows' => 7,
14 14
 	);
Please login to merge, or discard this patch.
classes/views/test-mode/pagination-buttons.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 $number_of_pages_to_show = 4;
14 14
 ?>
15 15
 <div id="frm_test_mode_pagination">
16
-	<?php for ( $i = 1; $i <= $number_of_pages_to_show; $i++ ) : ?>
16
+	<?php for ( $i = 1; $i <= $number_of_pages_to_show; $i ++ ) : ?>
17 17
 		<input type="button" class="frm_noallow <?php echo $i === 1 ? 'frm_test_mode_active_page' : ''; ?>" value="<?php echo esc_attr( $i ); ?>"/>
18 18
 	<?php endfor; ?>
19 19
 </div>
Please login to merge, or discard this patch.
classes/controllers/FrmTestModeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 */
64 64
 	private static function get_testing_mode_container() {
65 65
 		return FrmAppHelper::clip(
66
-			function () {
66
+			function() {
67 67
 				self::render_testing_mode_container();
68 68
 			}
69 69
 		);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 			'data-requires' => 'Business',
114 114
 			'style'         => 'margin-left: auto;',
115 115
 		);
116
-		$ai_install_span_attrs                = array(
116
+		$ai_install_span_attrs = array(
117 117
 			'data-upgrade'  => __( 'Autofilled forms with AI', 'formidable' ),
118 118
 			'data-content'  => 'ai-autofill',
119 119
 			'data-medium'   => 'test-mode',
Please login to merge, or discard this patch.
stripe/helpers/FrmStrpLiteUrlParamHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 	 * @return array|false
27 27
 	 */
28 28
 	public static function get_details_for_form( $form_id ) {
29
-		if ( ! isset( self::$details_by_form_id[ $form_id ] ) ) {
29
+		if ( ! isset( self::$details_by_form_id[$form_id] ) ) {
30 30
 			self::set_details_for_form( (int) $form_id );
31 31
 		}
32
-		return self::$details_by_form_id[ $form_id ] ?? false;
32
+		return self::$details_by_form_id[$form_id] ?? false;
33 33
 	}
34 34
 
35 35
 	/**
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 			return;
91 91
 		}
92 92
 
93
-		self::$details_by_form_id[ $form_id ] = array(
93
+		self::$details_by_form_id[$form_id] = array(
94 94
 			'entry'   => $entry,
95 95
 			'intent'  => $intent,
96 96
 			'payment' => $payment,
Please login to merge, or discard this patch.
classes/views/frm-fields/back-end/combo-field/sub-field-options.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
 				?>
41 41
 				<p class="frm6 frm_form_field">
42 42
 					<label class="frm_description" for="<?php echo esc_attr( $input_id ); ?>">
43
-						<?php echo esc_html( $labels[ $option ] ); ?>
43
+						<?php echo esc_html( $labels[$option] ); ?>
44 44
 					</label>
45 45
 					<span class="frm-with-right-icon">
46 46
 						<input
47 47
 							type="text"
48 48
 							name="<?php echo esc_attr( $input_name ); ?>"
49 49
 							id="<?php echo esc_attr( $input_id ); ?>"
50
-							value="<?php echo esc_attr( $default_value[ $sub_field['name'] ] ?? '' ); ?>"
50
+							value="<?php echo esc_attr( $default_value[$sub_field['name']] ?? '' ); ?>"
51 51
 							data-changeme="field_<?php echo esc_attr( $field_key . '_' . $sub_field['name'] ); ?>"
52 52
 							data-changeatt="value"
53 53
 						/>
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
 				?>
74 74
 				<p class="frm6 frm_form_field">
75 75
 					<label class="frm_description" for="<?php echo esc_attr( $input_id ); ?>">
76
-						<?php echo esc_html( $labels[ $option ] ); ?>
76
+						<?php echo esc_html( $labels[$option] ); ?>
77 77
 					</label>
78 78
 					<input
79 79
 						type="text"
80 80
 						name="<?php echo esc_attr( $input_name ); ?>"
81 81
 						id="<?php echo esc_attr( $input_id ); ?>"
82
-						value="<?php echo esc_attr( $input_value[ $sub_field['name'] ] ?? '' ); ?>"
82
+						value="<?php echo esc_attr( $input_value[$sub_field['name']] ?? '' ); ?>"
83 83
 						data-changeme="field_<?php echo esc_attr( $field_key . '_' . $sub_field['name'] ); ?>"
84 84
 						data-changeatt="<?php echo esc_attr( $option ); ?>"
85 85
 					/>
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 				?>
96 96
 				<p class="frm_form_field frm-flex-col">
97 97
 					<label class="frm_description" for="<?php echo esc_attr( $input_id ); ?>">
98
-						<?php echo esc_html( $labels[ $option ] ); ?>
98
+						<?php echo esc_html( $labels[$option] ); ?>
99 99
 					</label>
100 100
 					<textarea
101 101
 						name="<?php echo esc_attr( $input_name ); ?>"
Please login to merge, or discard this patch.
classes/factories/FrmFieldFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
 			FrmFieldGdprHelper::FIELD_TYPE => FrmFieldGdprHelper::get_gdpr_field_class( $field_type ),
113 113
 		);
114 114
 
115
-		$class = $type_classes[ $field_type ] ?? '';
115
+		$class = $type_classes[$field_type] ?? '';
116 116
 
117 117
 		return apply_filters( 'frm_get_field_type_class', $class, $field_type );
118 118
 	}
Please login to merge, or discard this patch.
classes/models/fields/FrmFieldUserID.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	protected function get_field_value( $args ) {
59 59
 		$user_ID      = get_current_user_id();
60 60
 		$user_ID      = ( $user_ID ? $user_ID : '' );
61
-		$posted_value = ( FrmAppHelper::is_admin() && $_POST && isset( $_POST['item_meta'][ $this->field['id'] ] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
61
+		$posted_value = ( FrmAppHelper::is_admin() && $_POST && isset( $_POST['item_meta'][$this->field['id']] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
62 62
 		$action       = ( $args['action'] ?? $args['form_action'] ?? '' );
63 63
 		$updating     = $action === 'update';
64 64
 		return is_numeric( $this->field['value'] ) || $posted_value || $updating ? $this->field['value'] : $user_ID;
Please login to merge, or discard this patch.