Completed
Pull Request — master (#2478)
by
unknown
52s
created
classes/controllers/FrmSettingsController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 				$section['function'] = $original;
185 185
 			}
186 186
 
187
-			$sections[ $key ] = $section;
187
+			$sections[$key] = $section;
188 188
 		}//end foreach
189 189
 
190 190
 		return $sections;
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
 
205 205
 		foreach ( $sections as $key => $section ) {
206 206
 			if ( in_array( $key, $payment_section_keys, true ) ) {
207
-				self::$removed_payments_sections[ $key ] = $section;
208
-				unset( $sections[ $key ] );
207
+				self::$removed_payments_sections[$key] = $section;
208
+				unset( $sections[$key] );
209 209
 			}
210 210
 		}
211 211
 
@@ -237,11 +237,11 @@  discard block
 block discarded – undo
237 237
 
238 238
 		$section  = FrmAppHelper::get_post_param( 'tab', '', 'sanitize_text_field' );
239 239
 		$sections = self::get_settings_tabs();
240
-		if ( ! isset( $sections[ $section ] ) ) {
240
+		if ( ! isset( $sections[$section] ) ) {
241 241
 			wp_die();
242 242
 		}
243 243
 
244
-		$section = $sections[ $section ];
244
+		$section = $sections[$section];
245 245
 
246 246
 		if ( isset( $section['class'] ) ) {
247 247
 			call_user_func( array( $section['class'], $section['function'] ) );
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
 	public static function fake_color_picker( $color ) {
490 490
 		?>
491 491
 		<div class="wp-picker-container">
492
-			<button type="button" class="button wp-color-result" aria-expanded="false" style="background-color:<?php echo esc_attr( $color); ?>;">
492
+			<button type="button" class="button wp-color-result" aria-expanded="false" style="background-color:<?php echo esc_attr( $color ); ?>;">
493 493
 				<span class="wp-color-result-text" style="color:#a7aaad;"><?php esc_html_e( 'Select Color', 'formidable' ); ?></span>
494 494
 			</button>
495 495
 		</div>
Please login to merge, or discard this patch.
classes/controllers/FrmEmailStylesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
 		}
218 218
 
219 219
 		$styles = self::get_email_styles();
220
-		if ( ! isset( $styles[ $style_key ] ) ) {
220
+		if ( ! isset( $styles[$style_key] ) ) {
221 221
 			die( esc_html( $not_exist_msg ) );
222 222
 		}
223 223
 
Please login to merge, or discard this patch.